tony

Forum Replies Created

Viewing 15 replies - 811 through 825 (of 7,981 total)
  • Author
    Replies
  • in reply to: Make Add button on Navigation redirect to new page? #101627
    tony
    Keymaster

    Hello,

    Please use navbuttonAdd method and use your own code. You can disable in this case the add button (if you want to replace it)

    Here is a documentation

    Regards

    in reply to: need help please cell editing #101626
    tony
    Keymaster

    Hello,

    Ususlly if you refrech the grid and pref F5 you refrech the page and the grid is loaded with the new data.

    I sugestu you to check your server side code when you refresh the grid.

    Regards

    in reply to: gridImport #101625
    tony
    Keymaster

    Hello,

    1. The file is not in UTF-8 encoded – not sure if this is the problem, but when I opened in the exported json string there was a syntax error in onselectCell function. Please check this.

    Try not to use them in the export string and see if this is the problem.

    Regards

    in reply to: gridImport #101622
    tony
    Keymaster

    Hello,

    Can you please zip your final jsonstring ( which does not work) and send it to me to test it.

    Regards

    in reply to: ‘Virtual’ data mode #101621
    tony
    Keymaster

    Hello,

    Of course the way I posted this will not work. It was my mistake. Sorry.

    The way to do it is to define a variable and change the variable within the function.

    Here is a example

    Regards

    in reply to: ‘Virtual’ data mode #101619
    tony
    Keymaster

    Hello,

    I will say it other way- the names in colModel can not be changed dynamically.

    With other words if you want to change the name by condition you will need to unload and load the grid again with the new name in colModel.

    See docs for methods how unload the grid.

    Regards

    in reply to: ‘Virtual’ data mode #101617
    tony
    Keymaster

    Hello,

    Looking into the code I see there are some things which cause this not to work.

    In most cases simple solutions are best one.

    You can

    var myname = myNameFunction(obj);

    ..jqGrid({

    colModel : [

    { name : myname ,….},

    ],

    });

    where myNameFunction is the function defined from your post in colModel

    Regards

    in reply to: ‘Virtual’ data mode #101615
    tony
    Keymaster

    Hello,

    A simple source code will be greatly appretiated, we can not help in most cases if no test case is provided.

    I'm not sure if this can work, but maybe you will need to set a index property of this column in colModel.

    See docs

    Kind Regards

    in reply to: How to use EditUrl #101614
    tony
    Keymaster

    Hello,

    the editurl is actually a link toy your server side code where the parameters are accepted.

    You should write your own server side code to update the database.

    What is posted to the server you can read in this documentation

    See (What is posted to the server chapter).

    Also you can search the web. My first results give me this link

    Regards

    in reply to: Add paging dynamically. #101613
    tony
    Keymaster

    Hello,

    Please let us know how you do this succesfully.

    Thank you.

    Kind Regards

    in reply to: Add paging dynamically. #101611
    tony
    Keymaster

    Hello,

    By default pager can not be added dynamically.

    I see two possible solutions

    1. You will create the

    in reply to: Combine Ajax & Local Data #101610
    tony
    Keymaster

    Hello,

    Unfortunatley yes. The updatepager can be called this way.

    Regards

    in reply to: submit events don’t work (form edit) #101609
    tony
    Keymaster

    Hello,

    Ok. You will need to do more investigations and read carfully what I write you.This code workn perfectly:

    var mydata = [{

    in reply to: submit events don’t work (form edit) #101605
    tony
    Keymaster

    Hello,

    This is a remote request – i.e cross site. Such ajax request are not allowed by default.

    In order to do this you will need to set dataType of the edit options to jsonp.

    Search the web for tis case.

    Also in grid options set

    … jqGrid({

    ajaxEditOptions : { dataType: 'jsonp'},

    });

    Or make in your local server such dummy file

    Regards

    tony
    Keymaster

    Hello Oleg,

    See this commit

    Thanks. I hope this is the better solution. Should make the same change in viewGridRow

    Best Regards,

    Tony

Viewing 15 replies - 811 through 825 (of 7,981 total)

Stay connected with us in your favorite flavor!