[CLOSED] gridpanel row select client side

  1. #1

    [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.
  2. #2

    RE: [CLOSED] gridpanel row select client side

    Geoffrey McGill
    Founder & CEO
  3. #3

    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.
  4. #4

    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.
  5. #5

    RE: [CLOSED] gridpanel row select client side

    Hi,

    These are RowSelectionModel/CheckBoxSelectionModel functions (not GridPanel)

    
    
    GridPanel1.getSelectionModel().selectRow(0,true);
    </p>
    
    
    
    GridPanel1.getSelectionModel().selectFirstRow();</p>
    
    
    
    GridPanel1.getSelectionModel().selectRecords(0,true)</p>

    Vladimir Shcheglov
    Sr. Developer
  6. #6

    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.

    
    
    
    
    <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>

Similar Threads

  1. Replies: 1
    Last Post: May 11, 2012, 12:57 PM
  2. [CLOSED] MultiSelect "select all" from client side
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Sep 20, 2011, 12:04 PM
  3. Gridpanel = Get Selected Row Index - Client Side
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Sep 15, 2009, 11:23 PM
  4. GridPanel - enable on client side
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Apr 28, 2009, 8:48 PM
  5. [CLOSED] row select client side based on readerid
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 11, 2008, 11:24 AM

Posting Permissions