OlegK

Forum Replies Created

Viewing 15 replies - 601 through 615 (of 968 total)
  • Author
    Replies
  • in reply to: Google or Microsoft Ajax CDN #96825
    OlegK
    Participant

    Hi!

    What is CDN you can read in http://en.wikipedia.org/wiki/Content_Delivery_Network
    http://ajax.aspnetcdn.com/ajax…..4.4.min.js
    http://ajax.aspnetcdn.com/ajax…..-ui.min.js

    Then the clients from somewhere in the world which loads you pages will load the files probably more quickly. It can be also that they has a cached copy of the files already on his computers and the loading will be done from the local cache.

    If you need jQuery, jQuery UI and jqGrid for some web sites from your internal web server (on intranet of your organization) the usage of CDNs from the Internet can be or not be a good idea depand from the usage of proxy server in your internal network.

    On the other side you can load the same files from the Goodle CDN (see http://code.google.com/apis/libraries/devguide.html#jquery
    https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
    http://ajax.microsoft.com/ajax…..4.4.min.js

    in the order which I also use. I personaly can not compare the perforance of loading jQuery and jQuery UI from different points of the word and just use as the URLs which started with http://ajax.googleapis.com/ajax/libs/.

    I have no idea how to place some additional JavaScript library on one from the CDNs. Probably a politic play a role here. If Tony be able to place jqGrid on one from CDNs I will imediately use it.

    Best regards
    Oleg

    in reply to: templates for columns in colModel #96822
    OlegK
    Participant

    Hello Tony,

    thank you for you answer.

    I want only explain why I suggested about having both per column template

    in reply to: editRow/saveRow/jgrid_array questions #96817
    OlegK
    Participant

    Hi wakelt,

    the problem with full working examples is that the code will consist not only from the client jqGrid code, but from the server code written in one technology and assessing one type of database also with one technology. I personally not use PHP and MySQL. I use more Windows and Microsoft .NET technologies. If I find a Java code it will help me not really. Some code can be written very close to XML. If other need JSON the code must be also adapted.

    If I use for example .NET on the server side I have many choices. The most important are: ASP.NET MVC, WFC service or ASMX web service. The access to the Microsoft SQL Server could be using LINQ to SQL, Entity Framework, with SqlDataAdapter or SqlCommand and SqlDataReader. You can implement ASP.NET MVC, WFC service as RESTful services or not. I can continue. What I want to say is there are too many design choices which you have to made. All there will follow to different server code in many possible languages.

    It is a main reason why it is difficult to find the whole code example which you can use.

    If you use .NET, C# and some from above listed technologies I could post you some links where you will find the corresponding working code.

    Best regards
    Oleg

    in reply to: Reload of grid data does not work for grids with #96815
    OlegK
    Participant

    You welcome chillifire,

    By the way I'm also not so young

    in reply to: Reload of grid data does not work for grids with #96812
    OlegK
    Participant

    Hello chillifire,

    It seems to me that the reason of the problems which you has is the usage of the line

    jQuery("#listSales").setGridParam({datatype:'local'});

    or the lines

    jQuery("#listSales").setGridParam({datatype:'local'});
    var allData = jQuery("#listSales").getGridParam('data');

    after the jQuery(“#listSales”).trigger(“reloadGrid”). The problem is that the loading of the JSON data from the server work

    in reply to: editRow/saveRow/jgrid_array questions #96811
    OlegK
    Participant

    Hello wk,

    the second GET request after the POST to editurl will be done probebly because you use form editing with the default edit parameter reloadAfterSubmit:true. If you change it to reloadAfterSubmit:false.

    I don't really understand what do you mean under “URL i

    in reply to: editRow/saveRow/jgrid_array questions #96807
    OlegK
    Participant

    Yes! All which you ask for is possible. Look at the postData parameter and this

    in reply to: Using function, in place of editurl? #96806
    OlegK
    Participant

    From the performance side the best choice will be to has a WCF service published in the same web side. You can find the example here. The second choice will be an ASMX web service (see here). All this solutions you can easy integrate as a part of the ASP.NET Web Form site. It will work for pure HTML pages also. To edit jqGrid data see this. This one

    in reply to: Using function, in place of editurl? #96804
    OlegK
    Participant

    I don't recommend you to use datatype as function if it is not really required. In very old version of jqGrid (more as one year old) was less support for different options of ajax requests. Since at least more then one year you can use new options (see here

    in reply to: Local Data and pagination #96803
    OlegK
    Participant

    Hello Glen,

    probably you included not all jqGrid modules which you needed. Look at the code here which shows how I would do what you need.

    Best regards
    Oleg

    in reply to: How to do default sorting when grid first time load #96802
    OlegK
    Participant

    Hello dm,

    the information that you use loadonce:true parameter is very important. In general you should send the data from the server in the sorted order. It you don't do this you can reload the grid, but because of usage of

    OlegK
    Participant

    You can use datatype:'local', then no request to the server will be done (see here for more information). If you sometime will need to request and display the server data you can change the datatype to 'json' or 'xml' (depend on the server) and force grid reloading.

    Best regards
    Oleg

    OlegK
    Participant

    Hello Klaus,

    some questions stay opened for me

    1. How you load information in jqGrid initially? The variable newTableSettings seems me a little strange and set more questions as
    OlegK
    Participant

    Hello Klaus,

    It would be much better if you posted the code of the grid definition including your custom formatter and some test data returned from the server. It could clear many things.

    I suppose, that you not just upgrade from 3.6.5 to 3.8.1, but tried to use some new possibilities like local sorting or local paging. Probably you included loadonce:true in your code. If you want to use local sorting, local paging or local data filtering/searching you should understand how it work. In old versions of the jqGrid only formatted HTML data are saved as a part of jqGrid. With introducing of the local sorting, paging and sorting an additional data parameter will be used in jqGrid. In the internal

    OlegK
    Participant

    I suppose that without the code example of your JavaScript code, full HTML code with the list of all JavaScript files which you load, information about versions which you use (versions of jqGrid, jQuery, jQuery UI and so on) and the test data (in JSON or XML format) nobody are able to help you. Only after having this information one can give you some tips for the performance improvement.

    Moreover I am sure that your real requirement is a little other. No person can really able to read 1000 rows of the multi-column contain at ones. No monitor can show the 1000 rows at once, so the scrolling of data will be done either by the web browser or by jqGrid itself. So the usage of at least client side data paging can be used without changing of your requirements. Moreover the usage of client side data filtering for example with respact of Toolbar Searching

Viewing 15 replies - 601 through 615 (of 968 total)

Stay connected with us in your favorite flavor!