tony

Forum Replies Created

Viewing 15 replies - 6,271 through 6,285 (of 7,981 total)
  • Author
    Replies
  • in reply to: setcolumns() issues #85493
    tony
    Keymaster

    Hello

    Also be a sure to include

    in reply to: Remove all editing and selections #85492
    tony
    Keymaster

    Hello,

    You can design your custom function where you include something like this

    save/ or cancel Cell

    save/ or restore Row

    finaly resetSelection

    Regards

    Tony

    in reply to: passing cell content as parameters #85491
    tony
    Keymaster

    Hello,

    Since you use the subGridRowExpanded as of documentation:

    This event is raised when the subgrid is enabled and is executed when the user clicks on the plus icon of the grid. Can be used to put custom data in the subgrid.

    • pID is the unique id of the div element where we can put contents when subgrid is enabled,
    • id is the id of the row

    If you have the id then you can $(“#mygrid”).getRowData( id ) – this retun all the values from the current clicked row and before constructing the grid you can pass what you want from this array

    Regards

    in reply to: Getting the value when using edittype: “select” #85489
    tony
    Keymaster

    Hello,

    Since this is many time discussed and there seems really to be aproblem with this – here some explanation. Suppose we have

    value: {'key1:value1;key2:value2'}

    (note that since 3.4 this can be a editoptions:{value:{key1:'value1',key2:'value2'}}

    Note the json representation

    1. If we are in edit mode (formedit, inlineedit cell edit) and have a select control, the true “value” that is posted to the server is the key value and not the value, but after saving we display the value. If you do not have any spacial calculations in this case is nothing to do.

    2. The problem that I do not understand is when you need the key value? During wich proccess or user interaction?

    3. The most common error here is that you think OK during editing I will use getRowData method to do something. This is explained so many time here. This is bad. You will receive in this case the html input control.

    4. I recommend to use your own methods to get the value of this control during editing. How to do that? I think it is easy. Every control when we are in edit mode has a uniquie id which is combination of the following:

    For Inline edit : rowid+”_”+name – where name is name from colModel, and rowid is the current edited row with id = rowid

    For Cell editing : iRow+”_”+name where name is name from colModel and iRow is the index of the row (not rowid).

    For Form edit: name – where name is the name form colModel

    I hope that this will help a little.

    Best Regards

    Tony

    in reply to: header and columns not aligned #85487
    tony
    Keymaster

    Hello,

    Just for test – could you please set explicit on every column the property width?

    Thanks.

    Tony

    in reply to: edittype:’select’ & selected #85486
    tony
    Keymaster

    Hello,

    Really do not understand.

    Regards

    Tony

    in reply to: empty fields in getDataIds #85485
    tony
    Keymaster

    Hello,

    Thanks. It is a bug. Will be fixed. Soon will be new bug fix release.

    Best Regards

    Tony

    in reply to: passing cell content as parameters #85483
    tony
    Keymaster

    Hello,

    I think there must be better explanation of your problem

    Regards

    Tony

    in reply to: Style Conflict with jQuery UI elements #85482
    tony
    Keymaster

    Hello,

    I'm close to UI Theme roller.

    Regards

    Tony

    tony
    Keymaster

    Hello,

    You can easy make a button

    in reply to: jqGrid column headers missing in window.Print() output #85480
    tony
    Keymaster

    Hello,

    Check the media atribute

    in reply to: lastSel is not defined #85478
    tony
    Keymaster

    Hello,

    Initially you should set lastSel to some value.

    Regatds

    Tony

    in reply to: no data displayed #85477
    tony
    Keymaster

    Hello,

    Could you please send me the grid configuration and generated xml file. Will try to simulate this.

    Regards

    Tony

    in reply to: Dynamic colmodel #85476
    tony
    Keymaster

    Hello,

    You can use the new gridImport method. See the news for 3.4 release.

    Regards

    Tony

    in reply to: Help with hidecol() method #85475
    tony
    Keymaster

    Hello,

    This should work, but I sugest to cal this not in afterInsertRow, since this is executed every time you add row. If possible please use gridComplete event for this purpose.

    Regards

    Tony

Viewing 15 replies - 6,271 through 6,285 (of 7,981 total)

Stay connected with us in your favorite flavor!