Using slider in a radgrid is perfect for a particular issue. I have it all working except one thing.
I have placed a radslider in the header of my radgrid and am attempting to use it as a "select all" for the radsliders in the rows of the associated column. OnClientValueChange I am iterating thru the griddataitems and trying to use findcontrol to get a refrence to the slider and set the value.
I keep coming back with null.
Am I approaching this wrong or does this control not render in a fashion that allows me to do this?
Here is my javascript function:
function SelectDate(sender, eventArgs)
{
var grid = $find("rgLoad").get_masterTableView();
var griditems =grid.get_dataItems();
for (var i=0; i<griditems.length; i++)
{
var slider = griditems[i].findControl("rslider");
if(!slider==null)
slider.set_value(sender.get_value());
}
}
Let me know if I need to provide more info.
I have placed a radslider in the header of my radgrid and am attempting to use it as a "select all" for the radsliders in the rows of the associated column. OnClientValueChange I am iterating thru the griddataitems and trying to use findcontrol to get a refrence to the slider and set the value.
I keep coming back with null.
Am I approaching this wrong or does this control not render in a fashion that allows me to do this?
Here is my javascript function:
function SelectDate(sender, eventArgs)
{
var grid = $find("rgLoad").get_masterTableView();
var griditems =grid.get_dataItems();
for (var i=0; i<griditems.length; i++)
{
var slider = griditems[i].findControl("rslider");
if(!slider==null)
slider.set_value(sender.get_value());
}
}
Let me know if I need to provide more info.