[CLOSED] Save ext:GridPanel.getState() in SQL Server database

  1. #1

    [CLOSED] Save ext:GridPanel.getState() in SQL Server database

    Hi

    I'm reading this thread http://forums.ext.net/showthread.php...ll=1#post79369 and I wish save the result of gridPanel.getState in my database.

    I create a webservice and call this with Ext.net.directRequest... works fine...

    But the array object returned to me is very large, with many columns and properties... there are some ext.net object to save this in database or convert this in xml?
    Last edited by Daniil; May 03, 2012 at 11:21 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, there is no such thing in Ext.NET.

    But, seems, I don't understand the problem.

    The simplest way would be saving a state as string.
    Ext.encode(App.GridPanel1.getState())
    When you can apply it this way.
    GridPanel1.Listeners.ViewReady.Handler = string.Format("this.applyState(Ext.decode({0}));", savedStateString);
    I have not tested it, but should work. Please report if you will face any problem.
  3. #3
    Hi Daniil!

    Ext.encode and Ext.decode is exactly what I need...

    Thanks a lot

Similar Threads

  1. [CLOSED] GridPanel Server-Side Save.
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 11, 2010, 3:31 PM
  2. Server side method to save Gridpanel
    By cpvaishya in forum 1.x Help
    Replies: 0
    Last Post: Jan 27, 2010, 1:09 AM
  3. [CLOSED] Save Gridpanel on server-side
    By egodoy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2009, 2:45 PM
  4. Save the GridPanel Server Side
    By egodoy in forum 1.x Help
    Replies: 0
    Last Post: May 27, 2009, 1:17 PM
  5. Save in database
    By flaviodamaia in forum 1.x Help
    Replies: 4
    Last Post: Nov 06, 2008, 7:16 AM

Posting Permissions