This is a migrated thread and some comments may be shown as answers.

Select Rows Client side, get selected datakeys server side

0 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nimesh
Top achievements
Rank 1
Nimesh asked on 05 Jul 2012, 02:31 PM
Hi all,
I have a Windows7 skinnedGrid that allows multi row select Client side so I dont have to reload the Grid data every time a row is selected server side. A radcontextmenu is set up with an option to "update Selected Rows". This fires the update command using client side mastertable.firecommand. I can confirm the updatecommand fires on the server side.

I want to then loop through all selected rows within the updatecommand event server side, get the datakeyvalue, update the corresponding records in the database, then reload the Grid with the new data. I cant seem to figure out a good way to do this. When I check the selected row count in the updatecommand event, it is zero. This tells me that server side is not aware of the client side selected rows. Any ideas? Again, I can't seem to find an article on server side awareness of client side selected rows.

Another minor issue is that I can style the selected row background using: 

div.RadGrid_Windows7 .RadGridSelectedItem  

color:black !important;  

background:none !important;  

background-color:#0080FF !important;  

}

But I cannot figure out how to style the row hover. From articles I have tried this:  

.GridRowOver_Windows7 

color:black !important;  

background:none !important;  

background-color:#0080FF !important;  

}

The client side to server side grab of selected rows datakeyvalues is more important to me however. Thanks in advance for any wisdom and know how you may provide!

Regards, Nimesh

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Nimesh
Top achievements
Rank 1
Share this question
or