[CLOSED] Getting Selected row values from Codebehind.

  1. #1

    [CLOSED] Getting Selected row values from Codebehind.

    Hi i m using Ext.net V2.0

    i m developing a user control using Gridpanel. that user control will be used by all the developers in our application.

    i m stuck in fallowing scenario.

    GridPanel will show all the records from Databases (already done), for example lets say gridpanel is showing list of all Items in the store. now the user will select any item from the list and there will be few buttons outside the gridpanel/user control (on the page itself and not included in usercontrol as the number and functionality will change) like view, edit, print, delete ect. now after user clicking any of these buttons, i should be able to get row or value of any column (unique key) to the server side (code behind). so that i can again go to the database for editing or deleting that particular record.

    i know this can be done using buttons in gridpanel with direct events. but i want it in such a way that, on click of the button i'll call a method/function from usercontrol class which will return me selected row or value of particular cell in the selected row.

    Thanks in advance.

    i've attached screenshot of my old application, where i do it this way..

    Click image for larger version. 

Name:	GRID.png 
Views:	43 
Size:	56.4 KB 
ID:	6263
    Last edited by Daniil; May 30, 2013 at 4:15 AM. Reason: [CLOSED]
  2. #2
    Hi @hemantpatil,

    A GridPanel doesn't submit values of selected rows automatically, it submits only its indexes and ids.

    So, if you need all the values of selected rows, in any way, you will have to submit it.
    https://examples2.ext.net/#/GridPane...itting_Values/

    I mean that there is no way to get all the values of selected rows if they were not submitted to server.

    So, the task is to organize submitting of the selected rows.

Similar Threads

  1. Replies: 11
    Last Post: Jul 27, 2012, 2:22 PM
  2. How to get values from grid panel selected row
    By mehmood in forum 1.x Help
    Replies: 9
    Last Post: Apr 11, 2012, 12:09 PM
  3. Get CheckboxGridPanel selected rows values ?
    By Mohammad in forum 1.x Help
    Replies: 1
    Last Post: Nov 01, 2011, 7:11 AM
  4. Linked Combos - Set selected values
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Jul 29, 2009, 11:04 AM
  5. [CLOSED] Getting selected row and values in Grid
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: May 28, 2009, 8:04 AM

Tags for this Thread

Posting Permissions