hello Admin,
Thanks for your earlier support that helps in good time , i am stuck in a problem where i need to disable the paging and sorting client side ,right now i am doing paging and sorting client side and also binding the grid client side,Please help me with solution ASAP,
Thanks,
Thanks for your earlier support that helps in good time , i am stuck in a problem where i need to disable the paging and sorting client side ,right now i am doing paging and sorting client side and also binding the grid client side,Please help me with solution ASAP,
Thanks,
5 Answers, 1 is accepted
0
Hi Mandeep,
This functionality is not provided by RadGrid out-of-the-box but there are many ways to prevent these actions on the client - hide the controls performing them, handling the OnCommand event fired by them and canceling the default action, etc. The certain implementation to pick would depend on your own requirements. In what scenario do you need to disable these features?
Regards,
Tsvetina
the Telerik team
This functionality is not provided by RadGrid out-of-the-box but there are many ways to prevent these actions on the client - hide the controls performing them, handling the OnCommand event fired by them and canceling the default action, etc. The certain implementation to pick would depend on your own requirements. In what scenario do you need to disable these features?
Regards,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

Mandy
Top achievements
Rank 2
answered on 19 Oct 2010, 07:34 AM
Thanks for the reply,
in my scenario i have 100's of record in grid and i need paging and sorting client side and that works fine for me ,,but i am using the Radtree to filter one record so that when i click on one item on radTree it will only display me one record with all other details related to that particular record,
and it also works fine but when i go for some testing stuff and click on the sorting the column it display me all the record of grid and the state is lost so at that ime when i have only one record in grid after click on RadTree i need to disable the sorting client side,
i am successfully hide the paging stuff but still looking for the sorting issue,
Please help me with this asap,
Thanks
in my scenario i have 100's of record in grid and i need paging and sorting client side and that works fine for me ,,but i am using the Radtree to filter one record so that when i click on one item on radTree it will only display me one record with all other details related to that particular record,
and it also works fine but when i go for some testing stuff and click on the sorting the column it display me all the record of grid and the state is lost so at that ime when i have only one record in grid after click on RadTree i need to disable the sorting client side,
i am successfully hide the paging stuff but still looking for the sorting issue,
Please help me with this asap,
Thanks
0
Hello Mandeep,
If you mean that RadGrid is filtered and should not be sorted when you have a node of the TreeView expanded, what you can do is set a flag which by default is true indicating if the grid can be sorted and making it false in the OnNodeExpanded client-side event of the RadTreeView. Then you can wire the OnCommand event of RadGrid and if the commandName is Sort and the flag's value is false, cancel the event:
You only need to decide in what case the canSort flag should be set back to true again and then implement this using the relevant client-side event of RadTreeView.
All the best,
Tsvetina
the Telerik team
If you mean that RadGrid is filtered and should not be sorted when you have a node of the TreeView expanded, what you can do is set a flag which by default is true indicating if the grid can be sorted and making it false in the OnNodeExpanded client-side event of the RadTreeView. Then you can wire the OnCommand event of RadGrid and if the commandName is Sort and the flag's value is false, cancel the event:
var
canSort=
true
;
function
onNodeExpanded(sender, args){
canSort=
false
;
}
function
onCommand(sender, args){
if
(args.get_commandName()==
"Sort"
&& !canSort){
args.set_cancel(
true
);
}
}
You only need to decide in what case the canSort flag should be set back to true again and then implement this using the relevant client-side event of RadTreeView.
All the best,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

arrianesamante89
Top achievements
Rank 1
answered on 27 Oct 2010, 01:26 AM
thanks for having this information, pretty much informative!
0

Vijay kumar
Top achievements
Rank 1
answered on 31 Aug 2012, 01:20 PM
Hi Mandeep Singh ,
can u paste the code client side for sorting and paging to radgrid. please i searched so many sites but i didnt get the code any where..please help me...it would be great... thanks in advance
or send the code to my email id vijay.nelakurthi@gmail.com,
can u paste the code client side for sorting and paging to radgrid. please i searched so many sites but i didnt get the code any where..please help me...it would be great... thanks in advance
or send the code to my email id vijay.nelakurthi@gmail.com,