Hello,
the column sort in the grid not work very well, and i ask me if it's possible to disable..
thank a lot
Hi Alex1234,
In the client scripts for when the form loads add the following jscript:
$telerik.$(".rgHeader").find("a").attr('onclick','').unbind('click'); $telerik.$(".rgHeader").find("a").attr('title',''); $telerik.$(".rgHeader").find("a").attr('href','javascript:void(0);'); $telerik.$(".rgHeader").find("a").css('cursor','default');
This will unbind the problematic sorting functionality from the grid.
Please be aware that this functionality is NOT supported by OpenText so it may not work on a future release and I've tested this in 9.1.2.3 only.
Best regards,
Paul.
please be aware the ":" should be the symbol - for some reason the editor won't let me type this!
thanks a lot
In the MBPM 9.2.1 with your source code, not work correctly.. the colum is not disable
the code that i try to use in the client script when form load is :
$telerik.$(".rgHeader").find("grid_name").attr('onclick','').unbind('click'); $telerik.$(".rgHeader").find("grid_name").attr('title',''); $telerik.$(".rgHeader").find("grid_name").attr('href','javascript_;void(0);'); $telerik.$(".rgHeader").find("grid_name").css('cursor','default');
I've just been able to test this in 9.2.0 and it looks like the DOM has changed across versions.
$telerik.$("#Grid1").find(".rgHeader").find("a").attr('onclick','').unbind('click'); $telerik.$("#Grid1").find(".rgHeader").find("a").attr('title',''); $telerik.$("#Grid1").find(".rgHeader").find("a").attr('href','javascript:void(0);');
"Grid1" being the name of the grid on the form...
This change should be a warning as it shows how un-predictable the updates to the web client can be and therefore why it's not a support "function" so please use with caution or at least encapsulate within a central library function so that when you update MBPM if a code update is needed you only need to make it in one place.
I've just noticed that this snippet is the same as what I had originally posted (except that it targets one individual grid - not all of them on the form (like the first example). Looking closer at your example you have the jQuery in the wrong order?
I've just been able to confirm this works on 9.2.1 too.
Paul