PDA

View Full Version : [CLOSED] Window + GridPanel



Zarzand
Nov 14, 2008, 11:43 AM
<Coolite:Window ID="wUploadFile" runat="server" Height="500px" Width="500px" Resizable="false" BodyStyle="padding: 6px; background-color: #fff;" Collapsible="false" Modal="true" Show&#111;nload="false" Center&#111;nload="true" Icon="Exclamation">
<Body>
<Coolite:FitLayout runat="server">
<Coolite:GridPanel ID="pnlUploadFile" StoreID="dtaUploadFile" StripeRows="true" Collapsible="true" runat="server">
<ColumnModel runat="server">
<Columns>
<Coolite:Column Header="File Name" DataIndex="FileName" Sortable="true">
</Coolite:Column>
<Coolite:Column Header="File Type" DataIndex="FileType" Sortable="true">
</Coolite:Column>
<Coolite:Column Header="File Path" DataIndex="FilePath" Sortable="true">
</Coolite:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<Coolite:CheckboxSelectionModel ID="chkFiles" runat="server" />
</SelectionModel>
</Coolite:GridPanel>
</Coolite:FitLayout>
</Body>
</Coolite:Window>

<Coolite:Store ID="dtaUploadFile" runat="server">
<Reader>
<Coolite:JsonReader>
<Fields>
<Coolite:RecordField Name="FileName" Type="Auto" />
<Coolite:RecordField Name="FileType" Type="Auto" />
<Coolite:RecordField Name="FilePath" Type="Auto" />
</Fields>
</Coolite:JsonReader>
</Reader>
</Coolite:Store>



I get a javascript error can anyone help me

Thank You.

geoffrey.mcgill
Nov 14, 2008, 11:47 AM
Can you move the <ext:Store> above the <ext:Window> control and then re-run your test. The Store must be rendered to the Page before the Control using the Store (ie. GridPanel).

Hope this helps.

Zarzand
Nov 14, 2008, 11:55 AM
Thanks allot Geoffrey that solved the error