Apr 20, 2010, 9:06 AM
HeaderColumn filter from codebehind
Hi,
I'm trying to accomplish creating a grid from an xml file. Succeeding quite well, but stuck with the creation of the preffered filter in the header column.
I've created the header, created the filter (textboxes), but the problem lies in the listener:
How can I create this from codebehind ?
Also..the width is still default...(so not 200px)
Martin
I'm trying to accomplish creating a grid from an xml file. Succeeding quite well, but stuck with the creation of the preffered filter in the header column.
I've created the header, created the filter (textboxes), but the problem lies in the listener:
How can I create this from codebehind ?
<ext:HeaderColumn Cls="x-small-editor">
<Component>
<ext:TextField ID="MerkTypeFilter" runat="server" EnableKeyEvents="true">
<Listeners>
<KeyUp Handler="applyFilter();" Buffer="250" />
</Listeners>
</ext:TextField>
</Component>
</ext:HeaderColumn>
I have this:
TextField textf = new TextField();
textf.ID = "MerkTypeFilter";
textf.EnableKeyEvents = true;
textf.AddListener("Keyup", "applyFilter()");
textf.Width = 200
But this doesn't work. Error: MerkTypeFilter is not defined in the "tfMerkType.on("keyup","applyFilter()")"Also..the width is still default...(so not 200px)
Martin