Replies
Hello Spunny,
Inform me if you need additional assistance with this question.
Hello Spunny,
Currently there is no built-in property for row hiding and you can hide mainly grid columns – http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDataGrid_Hiding_a_Column.html
What you can do to overcome this is to use CSS classes and assign them to the needed rows like this (in “InitializeRow” event):
protected void WebDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
{
if (e.Row.Index == 2)
{
e.Row.CssClass = "hideRow"; // hide the row with index 2
}
}
<style type="text/css">
.hideRow
{
visibility:hidden;
display:none;
}
</style>
Unfortunately there is no “isHidden” Boolean property that can be used to check if row is hidden or not.
I hope that this approach will work in your scenario.
Hello Brian,
Look at the following forum thread and let me know if this is the functionality that you require – http://community.infragistics.com/forums/p/57603/293756.aspx#293756
Hello ssjostrom,
Inform me if you need additional assistance with this question.
Hello ssjostrom,
Normally the function for getting value of the cell is written in without capital letters:
cell.get_value();
Since the JavaScript is case sensitive language this can lead to the exception shown
You can put breakpoint before calling of this function and actually see the functions available for the cell object.
I hope that this will help in your situation.
Hello ssjostrom,
What you can do first is to create a new empty project and add a grid on it. You can then enable selection behavior for this grid and add the “RowSelectionChanged” client event trough Visual Studio 2005 designer (grid behaviors dialog from the Smart Tag – Add New Handler).
Then you should run this project and see if the exception will be present again.
If it is not, you should continue to add parts of your code and rerun the page until you get the same error message.
This is one of the possible ways to determine which part of the code is actually causing this exception.
Try this approach and inform me what the results are.
Hello ssjostrom,
Thank you for posting on Infragistics forum.
If you have placed the function in the page “<head>” element and inside the “<script>” tag and specified the name of the function correctly in the grid “Client Events”, then you should try to add “sender” and “eventArgs” parameters in the function and test this again:
function <function name>(sender, eventArgs){}
If this does not resolve the exception you can try to use the Visual Studio designer to create the function body and see if this behavior will be present again.
Inform me if this information is helpful in your scenario.