Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6765383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:42:19+00:00 2026-05-26T14:42:19+00:00

I have the following code within my .aspx file <ext:GridPanel runat=server ID=GridPanel1 Height=450 Title=EmployeeList

  • 0

I have the following code within my .aspx file

<ext:GridPanel
            runat="server"
            ID="GridPanel1"
            Height="450"
            Title="EmployeeList"
            Width = "850"
            Header = "false"
            StyleSpec = "margin: 25px;"
            StripeRows="true"
            TrackMouseOver="true"
            Border="true" ClicksToEdit="2">
            <Store>
                <ext:Store ID="Store1" runat="server" DataSourceID="LinqDataSource1">
                    <Reader>
                        <ext:JsonReader IDProperty="id" >
                            <Fields>
                                <ext:RecordField Name="id" />
                                <ext:RecordField Name="shortcode" />
                                <ext:RecordField Name="lastname" />
                                <ext:RecordField Name="firstname" />
                                <ext:RecordField Name="roomnumber" />
                                <ext:RecordField Name="landline" />
                                <ext:RecordField Name="mobile" />
                                <ext:RecordField Name="mail" />
                                <ext:RecordField Name="position" />
                                <ext:RecordField Name="department" />
                            </Fields>
                        </ext:JsonReader>
                    </Reader>
                </ext:Store>
            </Store>
            <ColumnModel ID="ColumnModel1" runat="server" >
                <Columns>
                    <ext:Column DataIndex="id" Header="Index" Width="50"/>
                    <ext:Column DataIndex="shortcode" Header="Kuerzel" Align="Center" />
                    <ext:Column DataIndex="lastname" Header="Nachname"   />
                    <ext:Column DataIndex="firstname" Header="Vorname"  />
                    <ext:Column DataIndex="roomnumber" Header="Raumnummer" Align="Center" Width="50"/>
                    <ext:Column DataIndex="landline" Header="Durchwahl intern" Align="Center" Width="50"/>
                    <ext:Column DataIndex="mobile" Header="Durchwahl handy"  Align="Center" Width="50"/>
                    <ext:Column DataIndex="mail" Header="Mail"  />
                    <ext:Column DataIndex="position" Header="Funktion"  />
                    <ext:Column DataIndex="department" Header="Abteilung"  />
                </Columns>
            </ColumnModel>  
            <SelectionModel>
                <ext:RowSelectionModel ID="RowSelectionModel1" SingleSelect="true">

<%--                   <Listeners> 
                        <RowSelect Handler="#{EditPanel}.getForm().loadRecord(record);" /> 
                    </Listeners>--%>

                    <DirectEvents>
                        <RowSelect OnEvent="SaveCurrentSelection">
                            <ExtraParams>
                                <ext:Parameter Name="usID" Value="this.getSelected().id" Mode="Raw" />
                            </ExtraParams>
                        </RowSelect>
                    </DirectEvents>
                </ext:RowSelectionModel> 
            </SelectionModel>   
        <KeyMap>
            <ext:KeyBinding Ctrl="true">
                <Keys>
                    <ext:Key Code="Y" />
                </Keys>
                <Listeners>
                    <Event Handler="#{DirectMethods}.ShowSearchWindow();" />
                </Listeners>
            </ext:KeyBinding>
        </KeyMap>
        <DirectEvents>
            <RowDblClick OnEvent="SwitchToUserDetail">
                <ExtraParams>
                    <ext:Parameter Name="id" Value="this.selModel.getSelected().id" Mode="Raw"></ext:Parameter>
                </ExtraParams>
            </RowDblClick>
        </DirectEvents>     

        </ext:GridPanel>

Now I need to get the id field of the currently selected row as how I get it within my RowSelect Listener

<ext:Parameter Name="usID" Value="this.getSelected().id" Mode="Raw" />

But this time not within the SelectionModel. I need to get it here:

<DirectEvents>
  <RowDblClick OnEvent="SwitchToUserDetail">
    <ExtraParams>
        <ext:Parameter Name="id" Value="this.selModel.getSelected().id" Mode="Raw"></ext:Parameter>
    </ExtraParams>
  </RowDblClick>
 </DirectEvents>

Outside of the SelectionModel but inside the GridPanel.

I think the way is to get it here:

Value = "this.selModel.getSelected().id"

I need to get that here as I don’t want to do it inside the CodeBehind and as the Listener and DirectEvent does not work together in my SelectionModel

An answer will be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:42:20+00:00Added an answer on May 26, 2026 at 2:42 pm

    You can access field of record like this

    this.selModel.getSelected().data.shortcode

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following client side code in .aspx page within a datalist itemtemplate
I have the following code in an external JavaScript file that is called within
I have the following code within a stored procedure. WHERE WPP.ACCEPTED = 1 AND
In the following code, I have verified that connecting to a URL from within
I have the following code in a c# aspx page: <ItemTemplate> <a <% if(((Dictionary<string,
I have an aspx page title tag like the following : <title> XXXX-content page
I have the following code within the class. basically what i need is it
I have the following piece of JS code within a function that responds to
I have the following piece of JS code within a function that responds to
Working in VWD 2010 Express I have an aspx.vb file with the following connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.