[CLOSED] gridpanel row select client side
hi,
how can i select gridpanel rows clientside.My gridpanel has only one column, which has column datatype string. when i click the coolite button , one string is passed to the javascript function, that string one of the row value in gridpanel, and i want to select that gridpanel row. how can i select gridpanel rows based on the row values in client side.
Thanks in advance.
RE: [CLOSED] gridpanel row select client side
RE: [CLOSED] gridpanel row select client side
hi,
i am using
GridPanel1.selectRow(0,true);
GridPanel1.selectFirstRow();
GridPanel1.selectRecords(0,true)
These functions on client side. but it does not working.
what is the problem.
please explain.
RE: [CLOSED] gridpanel row select client side
please send a sample code for gridpanel clientside selection based on the row number and based on the json readerid value.
i need urgent.
RE: [CLOSED] gridpanel row select client side
Hi,
These are RowSelectionModel/CheckBoxSelectionModel functions (not GridPanel)
Code:
GridPanel1.getSelectionModel().selectRow(0,true);
</p>
GridPanel1.getSelectionModel().selectFirstRow();</p>
GridPanel1.getSelectionModel().selectRecords(0,true)</p>
RE: [CLOSED] gridpanel row select client side
Hi
I have one problem.
I have one grid panel.
Inside that grid panel i have some columns.
I need two selection model inside that grid. one colum is dedicated to downloading some files.
Another column having checkbox selection but when i use both of them together it cannot working.
But i need checkbox selection and download in each row.
i will send my grid panel code..plese help me to solve this problem.
Code:
<ext:GridPanel ID="gdpnlViewResource" runat="server"
StripeRows="true" StoreID="strResource"
BodyStyle="text-align:left;margin-bottam:10%;" Frame="true" Icon="information" Border="false" AutoExpandColumn="ResourceName">
<ColumnModel ID="ColumnModel2" runat="server" EnableViewState="true" >
<Columns >
<ext:RowNumbererColumn ColumnID="Index" Header="Index"></ext:RowNumbererColumn>
<ext:Column ColumnID="resourceID" DataIndex="resourceID" Hidden="true"></ext:Column>
<ext:Column ColumnID="ResourceDataID" DataIndex="ResourceDataID" Hidden="true"></ext:Column>
<ext:Column ColumnID="CustomerID" DataIndex="CustomerID" Hidden="true"></ext:Column>
<ext:Column ColumnID="ResumeID" DataIndex="ResumeID" Hidden="true"></ext:Column>
<ext:Column ColumnID="ResourceName" DataIndex="ResourceName" Header="Name"></ext:Column>
<ext:Column ColumnID="ResourceTypeName" DataIndex="ResourceTypeName" Header="Type"></ext:Column>
<ext:Column ColumnID="CustDisplayName" DataIndex="CustDisplayName" Header="Vendor"></ext:Column>
<ext:Column ColumnID="ExpectedToJoin" DataIndex="ExpectedToJoin" Header="Expected Join">
<Renderer Fn="Ext.util.Format.dateRenderer('d/M/y')" />
</ext:Column>
<ext:Column ColumnID="MMR" DataIndex="MMR" Header="MMR"></ext:Column>
<ext:Column ColumnID="JoinStatus" DataIndex="JoinStatus" Header="Status Of Join">
<Renderer Fn="pctChange" />
</ext:Column>
<ext:Column ColumnID="Download" DataIndex="Download" Header="Download" Fixed="true" Align="Center" MenuDisabled="true">
<Renderer Fn="function(v, p, record, rowIndex){}" />
<Renderer Fn="DownloadRender" />
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel />
<ext:CellSelectionModel>
<AjaxEvents>
<CellSelect OnEvent="cellSelect" Buffer="250">
</CellSelect>
</AjaxEvents>
</ext:CellSelectionModel>
</SelectionModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar2" runat="server" PageSize="10" Height="50" >
<Items>
</Items>
</ext:PagingToolBar>
</BottomBar>
<LoadMask ShowMask="true" />
<CustomConfig>
<ext:ConfigItem Name="width" Value="95%" Mode="Value" />
<ext:ConfigItem Name="hight" Value="95%" Mode="Value" />
</CustomConfig>
</ext:GridPanel>