Hi,
I need to highlight the row on mouse over . So i am planning to make the rows selected
on mouse over and make the rows unselected on mouse out. How can i do that in client side?
This selection and unselection should happen for both child brands also.
I have check the documentation where it is given to check for "get_gridView()" object
get_gridView()" object
which i am unable to get. Please help me.
Thanks and Regards,
Kiran
Hi Kiran,What is your code where you cannot find the grid view? you need to find the WebHierarchicalDataGrid to use that method.
Another option you might consider is something similar to this forum post. Here, Alex gives code to implement a highlight row behavior. This would probably do what you want.
regards,David Young
Hi David Young,
Thanks for immediatle reply. I saw the example explained there by Alex. Yes this is what i am expecting. But I am doing this in webdatagrid like following.
following is the sample aspx code. the font that is in bold is the code to concentrate.
Now my question is how can i do the same thing in WebHierarchicalDataGrid ?
as we are not having these events in the WebHierarchicalDataGrid . and we have bands row also,i mean child rows highlight.
Hi Kiran,I don't see why you shouldn't be able to do this in the WebHierarchicalDataGrid. It has those two events you are interested in- mouseOver and MouseOut. What you might have to do when you are clearing is get the selected rows collections and clear all of them.
var cols = webDataGrid.get_behaviors().get_selection().get_selectedRowsCollections();
for (var x = 0; x < cols.length; ++x)
cols[x].clear();
-Dave
Hi Dave,
Yes , the code I have written is working fine for even WebHierarchicalDataGrid.but after row is clicked and part of the page is refreshed the page is throwing error. The functionality is we refreshing chart above this grid on click of row. after this if mouse over then this error is throwing.. I want to attach the screen shot of the error but i am unable to. so i am attaching in media.
kiran
Hi Kiran,
Sorry for the long wait. I have submitted this binding problem as a bug internally. Its number is 37636. You should contact Developer Support so that they can attach your case to the bug. Then you can be contacted when the binding part is fixed. If the selection problem still exists afterward, that can also be submitted as another bug.
Can you please give me clarification on binding issue what we have discussed.
Hi ,
Thanks for reply .I am already using thos methods. My problem i have clearly mentioned in the following post "http://community.infragistics.com/forums/p/44495/246913.aspx#246913" .I am expecting a reply for that problem.
Thanks and regards,
Hello pkirankumar,
You can do that, just refer the following link how to select row in client side :
http://help.infragistics.com/NetAdvantage/ASPNET/2010.2?page=WebDataGrid_Row_Selection.html
Hope this helps
can you please let me know whether we can get this working with EnableDataViewSate setting to true.
Thanks and Regards