tony

Forum Replies Created

Viewing 15 replies - 7,921 through 7,935 (of 7,979 total)
  • Author
    Replies
  • in reply to: A request :) #82007
    tony
    Keymaster

    Hi,
    Do not forget – FF3 is in beta. I can not provide a support for FF3 until final.
    There is a problem in FF3 with check boxes and other thinks.
    By example in FF3 you can not change the width and height of the check boxes.

    Regards
    Tony

    in reply to: How to defer grid load #82006
    tony
    Keymaster

    You can use the following trick.
    Initially set the data type to : clientSide – i.e. – datatype: clientSide – the grid is loaded and nothing more, since the grid expect local data.
    If some conditions are changed you can do:
    ….
    jQuery(“#mygrid”).setDataType(“xml”); // or json
    jQuery(“#mygrid”).setUrl(url);

    jQuery(“#mygrid”).trigger(“reloadGrid”);

    Regards
    Tony

    in reply to: Access JSON Data On Load Callback #82002
    tony
    Keymaster

    Hi,

    Thank you very much for this addition. As I tell you before I will include additional module with user contributed methods and this will be added too. 🙂

    Thank you again

    Regards
    Tony

    in reply to: How to defer grid load #82001
    tony
    Keymaster

    It is really difficult to me to understand what you try to do.
    What is happen when you make this call?
    Is the data loaded?

    Maybe you should set a page too – something like

    jQuery(“#griddata”).setPage(1l);

    Please explain what is happen?
    If you use FF you can look what is the returned data from server

    Regards
    Tony

    in reply to: Alternative edittypes #81994
    tony
    Keymaster

    I think that this is good idea, but will be done in the next release.

    Regards
    Tony

    in reply to: Lock Columns #81993
    tony
    Keymaster

    Hi Andre,

    At the moment this is not possible, but I hope that at the near future this can be achieved. It will be difficult to realize this since the data in grid is represented via table.

    Regards
    Tony

    in reply to: Access JSON Data On Load Callback #81992
    tony
    Keymaster

    One possible solution is to pass the request in loadComplete as parameter (should be changed into the code) . This way you can use what you want. But be a carefull – after this you shoult terminate the request manually – i.e.

    loadComplete : function(therequest) {

    // do what you want

    therequest = null;

    }

    Regards
    Tony

    in reply to: Unable to display JSON Data? #81991
    tony
    Keymaster

    Hi,

    You can look here
    http://trirand.com/jqgrid/docs/

    Section Data Types

    Sorry there are errors that should be corrected

    in reply to: saveRow on change event #81988
    tony
    Keymaster

    jqGrid saves only the entry row and not a particular cell on change.
    Here is my technique to do that:
    …
    onSelectRow: function(id) {
    if(id && id != lastsel){
    jQuery(’#list1′).restoreRow(lastsel);
    jQuery(’#list1′).editRow(id,true,myfunc);
    jastsel=id;
    }

    myfunc function(id)
    {
    jQuery(”#”+id+”_thecellname”).change( function() {
    $.ajax(..) // here is the code to save the cell
    …
    // if you have other cells you can chain them in jQuery
    }
    }

    in reply to: Dynamically change the model question #81987
    tony
    Keymaster

    Currently dynamically change of the model is not supported.
    One possible solution is to hide and show columns by condition, but not to change the model

    Regards
    Tony

    in reply to: Add image to the table header #81986
    tony
    Keymaster

    Hi Ricka123,

    I can not read the code. If you want to share you solution please write your code between code tag

    Thanks
    Regards
    Tony

    in reply to: Validation question #81984
    tony
    Keymaster

    Not sure but I notice that you call checksave twice one for save and second when edit. The error come from on edit and not on save. To work this i think one possible solution is:

    onSelectRow: function(id){
    if(id && id!==lastsel){
    jQuery('#rowpain').saveRow(lastsel,checksave);
    jQuery('#rowpain').editRow(id,true);
    lastsel=id;
    }
    }

    I.e call it only once when you save the row

    As for the validation plugin I think this can not be used.
    Validation plugin as I known works on forms. When edit here we do not have a form. But this make me think that there is no problem to include a form element here.

    Regards
    Tony

    in reply to: POST vs. GET #81981
    tony
    Keymaster

    Hi,
    I do not think so. The new grid have modular structure. I mean we have a basic grid and I have moduled the subgrid, inline editing and the new form editing. So I plan to add a new module – user contributed addons. Be sure Your will be the first.
    Thanks

    Tony

    in reply to: Generation link in Cell #81978
    tony
    Keymaster

    I think that the good way is to do that at server side – i.e. to add content like links, buttons and etc. at server side and attach them a click events

    Regards
    Tony

    in reply to: Add image to the table header #81977
    tony
    Keymaster

    Hi,
    You are right. I will think about this

    Regards
    Tony

Viewing 15 replies - 7,921 through 7,935 (of 7,979 total)

Stay connected with us in your favorite flavor!