maraki

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • in reply to: Grid Data reload #84192
    maraki
    Participant

    Dear Tony I found the solution

    Just before I create the grid I use

    JQuery(“mygrid”).Gridunload();

    and everything works fine thank you for your help

    in reply to: Grid Data reload #84191
    maraki
    Participant

    Thank you Tony for your help!

    Unfortunately it still gives me error.

    I can't make it work so I think I am not going to use it.

    I don't now where to put

    $(”#tabledata1″).setGridParam({datatype:'local'}).

    trigger(”reloadGrid”); in my code.

    Thank you for everything!

    in reply to: Grid Data reload #84184
    maraki
    Participant

    Sorry,

    I get a message for javascript error :

    object doesn't support this property or methos.

    I guess this is caused by

    $(”#tabledata1″).setGridParam({datatype:'xmlstring',datastr:mystr}).

    triggrer(”reloadGrid”);

    because only when I add it to my page I get the error.

    Is there some other way to empty the grid each time i puss the button and then fill it?

    in reply to: Grid Data reload #84181
    maraki
    Participant

    function doUpdatedata()
    {
    if(xmlHttpdata.readyState==4)
    {
    if (xmlHttpdata.status == 200) {

    var xmlDocdata =xmlHttpdata.responseXML.xml;
    var newmystr = xmlDocdata.toString();
    var mystr = xmlDocdata.toString();

    //mystr is my xml string

    Here I construct the grid……..

    }}

    I posted above all my code…

    in reply to: Grid Data reload #84172
    maraki
    Participant

    Thank you Tony,

    Please see my code below. Where should I reload the grid?

    var xmlHttpdata;
    function getMessagedata()
    {
    //in this panel I have the

    document.getElementById(“PanelTable1”).style.display = “inline”;
    var persontxt = document.getElementById(“txtasf”).value;
    if(window.ActiveXObject)
    {
    xmlHttpdata=new ActiveXObject(“Microsoft.XMLHTTP”);
    }
    else if (window.XmlHttpRequest)
    {

    xmlHttpdata=new XMLHttpRequest();
    }
    //call my WebService
    xmlHttpdata.open(“get”, “http://……?txtname=” + persontxt + “”,true);
    xmlHttpdata.onreadystatechange=doUpdatedata;
    xmlHttpdata.send(); return false;
    }
    function doUpdatedata()
    {
    if(xmlHttpdata.readyState==4)
    {
    if (xmlHttpdata.status == 200) {
    //document.getElementById(“lblHTMLOutput”).innerHTML = “”;
    var xmlDocdata =xmlHttpdata.responseXML.xml;
    var newmystr = xmlDocdata.toString();
    var mystr = xmlDocdata.toString();
    //alert(mystr);

    $(document).ready(function(){
    $(“#tabledata1”).jqGrid({

Viewing 5 replies - 1 through 5 (of 5 total)

Stay connected with us in your favorite flavor!