Get the view name of main grid using JScript
We got a requirement to Enable\disable ribbon button based on selected view.
We used JScript to disable the button by getting the selected view name.
Below is the script to get the selected view name of Main Grid
var viewName = “”;
if (crmGrid && crmGrid.control) {
viewName = crmGrid.control.get_viewTitle();
}
🙂
Comments (0)
Trackbacks (0)
Leave a comment
Trackback