Rober Rajiv
Top achievements
Rank 1
Rober Rajiv
asked on 25 Aug 2009, 10:38 AM
Hi,
If i try to select multiple rows in a grid by pressing Shift Key, OnSelectedIndexChanged event is not firing (However rows are getting selected). But this works properly with ctrl key. Can someone help me in this regard?
I am using "Telerik.Web.UI.dll" version: 2009.1.402.35
Regards,
Rajiv.
If i try to select multiple rows in a grid by pressing Shift Key, OnSelectedIndexChanged event is not firing (However rows are getting selected). But this works properly with ctrl key. Can someone help me in this regard?
I am using "Telerik.Web.UI.dll" version: 2009.1.402.35
Regards,
Rajiv.
4 Answers, 1 is accepted
0
Accepted
Hello Rober,
Using SHIFT + Click selects a range of items in RadGrid and postbacking for a range of selection is not supported. You will need to manually postback if you are using SHIFT.
Sincerely yours,
Veli
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Using SHIFT + Click selects a range of items in RadGrid and postbacking for a range of selection is not supported. You will need to manually postback if you are using SHIFT.
Sincerely yours,
Veli
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rober Rajiv
Top achievements
Rank 1
answered on 03 Sep 2009, 01:06 PM
Hi Veli,
Yes..i did it... But i have one problem if i try to select the rows manually using client side scripting
if (!grid.MasterTableView.Rows[i].Selected)
{
grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[i].Control,
false);
}
in the above code i grid.MasterTableView.Rows is null.
Note:-
I am using "Telerik.Web.UI.dll" version: 2009.1.402.35
Regards,
Rajiv.
0
Rober Rajiv
Top achievements
Rank 1
answered on 03 Sep 2009, 01:09 PM
Hi Veli,
For manual postback i used the following approach:
1. Had one hidden button.and in its click event, i have wirtten the needed server side code
2. if i select multiple rows using shift key, i invoke the hidden buttons click event
Is this the correct approcah to achieve this?
Regards,
Rajiv
For manual postback i used the following approach:
1. Had one hidden button.and in its click event, i have wirtten the needed server side code
2. if i select multiple rows using shift key, i invoke the hidden buttons click event
Is this the correct approcah to achieve this?
Regards,
Rajiv
0
Hi Rober,
Having a button is one possible option. You can also make an AjaxRequest to the server, or use the __doPostback method.
I hope one of these options help.
Kind regards,
Yavor
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Having a button is one possible option. You can also make an AjaxRequest to the server, or use the __doPostback method.
I hope one of these options help.
Kind regards,
Yavor
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.