how to set ReaderId

  1. #1

    how to set ReaderId

    hi
    when i was using CheckboxSelectionModel it Gave me two fields :RecordID and RowIndex.but i think RecordId Is autogenerated and useless in serverside.is a solution for me to give my real Id(What is stored in databases) ?
    What I found by searching was setting ReaderId in Reader object of Store but what is code for do it in mvc?
    also i wrote this code but I see any change
             X.Store()
              .ID("myStore")
              .PageSize(10)
              .DataSource(Model)
              .Reader(X.JsonReader().IDProperty("Id") )
    and value of RecordId Was like this: "ext-29-3"
    Last edited by TAYMA; Feb 16, 2019 at 1:29 PM.
  2. #2
    Hello @TAYMA!

    You need the IDProperty setting as you displayed in your code snippet, but somewhere else -- in the data model definition.

    Take a look how it is used in this example: GridPanel > Data Presentation > Editor Field Mapping

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] [1.0] Store ReaderID property
    By methode in forum 1.x Premium Help
    Replies: 2
    Last Post: Nov 18, 2009, 1:23 PM
  2. [CLOSED] ReaderID in ArrayReader
    By tdracz in forum 1.x Premium Help
    Replies: 2
    Last Post: Nov 13, 2009, 3:15 PM
  3. Replies: 1
    Last Post: Jun 17, 2009, 4:47 PM
  4. GridPanel - Select Row Other than by ReaderID
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jun 05, 2009, 12:33 AM
  5. Replies: 2
    Last Post: Dec 22, 2008, 5:50 PM

Posting Permissions