Apr 27, 2010, 10:43 AM
Handler/Fn for column (code behind)
hi again :)
i have created gridpanel column in code behind
but column is not displaying any values (TraType is an object with Name property).
if i set this colum and handler in control.ascx like this:
it is working, while in code behinde it isnt :/
can somebody help me with this issue?
rgds
roszman
sorry fro my bad english and for not corectly displayed source code
i have created gridpanel column in code behind
Column traGridTraTypeCol = new Column();
traGridTraTypeCol.Header = "Typ";
traGridTraTypeCol.DataIndex = "TraType";
traGridTraTypeCol.Renderer.Handler = "return value.Name;";
but column is not displaying any values (TraType is an object with Name property).
if i set this colum and handler in control.ascx like this:
<ext:Column ColumnID="TraType" Header="Typ" Sortable="true" DataIndex="TraType" >
<Renderer Handler="return value.Name" />
</ext:Column>
it is working, while in code behinde it isnt :/
can somebody help me with this issue?
rgds
roszman
sorry fro my bad english and for not corectly displayed source code