How can I get the value of the field

  1. #1

    How can I get the value of the field

    It's my code .

    protected void btnSubmit_Click(object sender, EventArgs e)
            {
                Store records = GridPanel1.GetStore();//get the store of the GridPanel1
                ReaderCollection rc=  records.Reader;//get records in the store
               int i= rc.Count;
               DataReader dr = rc[0];//get the first record
               RecordFieldCollection rfc= dr.Fields;//get the fields in the record
               i = rfc.Count;
               RecordField rf = rfc[1];//get the 1st field
          rf.Mapping = rf.Name; //now ,How to get the value of the field. 
            }
    Now I can't get the value of the field. I think I have got the record with data.I check out the API ,BUt I can't find any method to use .
    Please Help me . It's urgent for me ~~~Thks
    Last edited by geoffrey.mcgill; Jun 24, 2011 at 4:37 PM. Reason: please use [CODE] tags
  2. #2
    What is your overall goal here? as in, what is your button hoping to do?

    You can get the value of an item in a store more easily on the client side by calling something like this in your js.

    var myValue = myStore.data.items[i].data.myFieldName
    You could then pass that to the server side for processing using something like:

    Ext.net.DirectMethods.myServerSideMethod(myValue);
    If you can elaborate a little on your goal it would be easier to suggest a suitable approach.

Similar Threads

  1. Ext.Net fileupload field
    By akwolf in forum 1.x Help
    Replies: 5
    Last Post: Jan 03, 2012, 11:39 PM
  2. Replies: 1
    Last Post: Oct 07, 2011, 8:34 AM
  3. Replies: 2
    Last Post: Sep 22, 2011, 11:46 AM
  4. Replies: 2
    Last Post: Aug 19, 2011, 1:36 PM
  5. Replies: 2
    Last Post: Feb 17, 2010, 9:47 AM

Tags for this Thread

Posting Permissions