This question is locked. New answers and comments are not allowed.
Hello,
We have a grid and the columns are build using client templates.
Here an example:
outside the grid I use a Combobox.
What I like to do is when I change the combobox Item.(that works ok) I want the column in my grid to have a new style.
And that for the whole grid.
What works is:
It sets the column correct.
But what we do is when ComboBox Item changed is:
We get new data. and rebind it.
I tried:
So after the rebind set the column.
But that didn't work.
The only thing changed is that I first get new data bind it and change a column.
What am i doing wrong here?
Regards,
Gerard
We have a grid and the columns are build using client templates.
Here an example:
.ClientTemplate("<input type='text' class='besteldaantal' name='BesteldAantal' onkeyup='ValidateInput(this,<#=VoorraadEenheden#>)' onclick='ShowProductDetails(<#= artikelID #>)' />");outside the grid I use a Combobox.
What I like to do is when I change the combobox Item.(that works ok) I want the column in my grid to have a new style.
And that for the whole grid.
What works is:
$('.besteldaantal').css('display', 'none'); But what we do is when ComboBox Item changed is:
var Vgrid = $Voorraadgrid.data('tGrid'); Vgrid.rebind();I tried:
var Vgrid = $Voorraadgrid.data('tGrid'); Vgrid.rebind(); $('.besteldaantal').css('display', 'none');So after the rebind set the column.
But that didn't work.
The only thing changed is that I first get new data bind it and change a column.
What am i doing wrong here?
Regards,
Gerard