Aug 10, 2010, 6:29 PM
I can't read any row field using record.data on a GridPanel, can I get some help?
Hi guys, I have a simple GridPanel bound to a SqlDataSource control and I copied a grid from the samples to my code in order to render a Hyperlink on the cell, for some reason I simply can't access the current record data using any combination of:
record["field"]
record.field
record.data["field"]
Can I get some help?
Thanks
record["field"]
record.field
record.data["field"]
Can I get some help?
Thanks
<ext:GridPanel ID="gridSearch"
runat="server"
Title="Search Results"
Frame="true"
Width="685"
Height="330" StripeRows="True">
<Store>
<ext:Store ID="Store1" runat="server" RemoteSort="true" DataSourceID="getSearchResults">
<AutoLoadParams>
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="limit" Value="10" Mode="Raw" />
</AutoLoadParams>
<Reader>
<ext:JsonReader IDProperty="cID">
<Fields>
<ext:RecordField Name="Name" />
<ext:RecordField Name="Phone" />
<ext:RecordField Name="Address" />
</Fields>
</ext:JsonReader>
</Reader>
<SortInfo Field="Name" Direction="ASC" />
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="Name" Header="Name" DataIndex="Name">
<Renderer Handler="return '<b>' + record.data.Name + '</b>,' + record.data.Phone" />
</ext:Column>
<ext:Column DataIndex="Phone" Header="Phone" Width="110" />
<ext:Column DataIndex="Address" Header="Address" Width="170" />
</Columns>
</ColumnModel>
</ext:GridPanel>
Last edited by paul-2011; Aug 11, 2010 at 4:18 PM.
Reason: correct title