Hi,
I'm currently having a strange issue with my grid.
When i filter/sort my grid and then try to use one button in the footer command item the server side click event is not firing, but if i click it again it work fine. The problem is only with the footer and immediatly after filtering/sorting it.
The button in the header commanditem who is created the same way work fine no mather if i filter, sort or something like that.
This is a server side Grid. All my grid structure is created at page init. The command item section contain an itemtemplate where we create only controls needed for our page, but the controls are created outside the itemtemplate and then pass to the constructor like this :
Thank you for your help,
Guillaume
I'm currently having a strange issue with my grid.
When i filter/sort my grid and then try to use one button in the footer command item the server side click event is not firing, but if i click it again it work fine. The problem is only with the footer and immediatly after filtering/sorting it.
The button in the header commanditem who is created the same way work fine no mather if i filter, sort or something like that.
This is a server side Grid. All my grid structure is created at page init. The command item section contain an itemtemplate where we create only controls needed for our page, but the controls are created outside the itemtemplate and then pass to the constructor like this :
public
class
CommandItemTemplate : ITemplate
{
private
readonly
CommandItems m_CommandItems;
public
CommandItemTemplate (CommandItems commandItems)
{
m_CommandItems = commandItems;
}
public
void
InstantiateIn(Control container)
{
//ContentPanel is an aspPanel which contains every control created on the page Init
if
(container.BindingContainer.BindingContainer
is
GridTFoot && m_CommandItems.Footer !=
null
)
{
container.Controls.Add(m_CommandItems.Footer.ContentPanel);
}
else
if
(container.BindingContainer.BindingContainer
is
GridTHead && m_CommandItems.Header !=
null
)
{
container.Controls.Add(m_CommandItems.Header.ContentPanel);
}
}
}
Thank you for your help,
Guillaume