[CLOSED] Panel Grid Paging Not retaining it's state after reloading with updated data - dll version 0.8.2

  1. #1

    [CLOSED] Panel Grid Paging Not retaining it's state after reloading with updated data - dll version 0.8.2

    Hi,

    I have a grid panel which is having colums. On click of column of any row i am showing an icon in the column. Based on the icon i am updating some value in the database. Now the data is getting saved. After saving i am going to a differnt page on the grid by using the paging. then if i come back to same page by using paging control on the grid, i am loosing the icon which i have saved recently. The images are getting loaded based on the value from the data base.

    The loading part is working fine only after saving and do paging operations its loosing the icons. The Coolite DLL version i have used for this is 0.8.2

    I am not able to send sample application. since it has got lot of operations.

    Please, find the below attachments for the details of the issue.

    In the page load:
    Click image for larger version. 

Name:	image-1.JPG 
Views:	110 
Size:	40.7 KB 
ID:	1358
    Selected 2 more rows, it displays icon after selection
    Click image for larger version. 

Name:	image-2.JPG 
Views:	103 
Size:	40.4 KB 
ID:	1359
    Data saved?I am in first page of the grid
    Click image for larger version. 

Name:	image-3.JPG 
Views:	112 
Size:	40.1 KB 
ID:	1360
    Second page of the grid after paging?

    Click image for larger version. 

Name:	image-4.JPG 
Views:	116 
Size:	41.5 KB 
ID:	1361
    Came back to first page where I have saved data. I lost the data which I have saved even to the data base. Its still referring the old data.
    Click image for larger version. 

Name:	image-5.JPG 
Views:	103 
Size:	41.9 KB 
ID:	1362
    Thanks
    Last edited by geoffrey.mcgill; Jul 15, 2010 at 12:41 AM.
  2. #2
    Hi,

    How do you render that image? Can you post the renderer?

    I am not able to send sample application. since it has got lot of operations.
    Are you have no ability create simple example which renders that icon and based on same logic?
  3. #3
    The grid panel column and its renderer in aspx page.

    <ext:Column ColumnID="LunchcolumnItem" Header="Lunch" DataIndex="Lunchflag" Sortable="true"
    Width="45">
    <Renderer Fn="lunchloaddata" />
    </ext:Column>
    The javascript file which will return the icon based on the cell(record) selected.

    var lunchloaddata = function (record)
    {
     
    if (record=="1") 
    {
    return '<img class="lunch" style="cursor:pointer;" src="../App_Themes/Zangle/images/app/meal.bmp" />';
    }
    else 
    {
    return '';
    }
    Thanks
    Last edited by geoffrey.mcgill; Jul 15, 2010 at 12:40 AM. Reason: please use [code] tags
  4. #4
    Please wrap your code samples in [CODE] tags. And properly format them. Just dumping your code in a post makes it difficult to read.
    Last edited by geoffrey.mcgill; Jul 15, 2010 at 12:41 AM.
    Geoffrey McGill
    Founder
  5. #5
    Please, find the code which is in the below text attachment.

    Let me know if you have any issues in implementing it...
    Attached Files
  6. #6
    Hi,

    Unfortunately, the posted code is not enough. It seems that record doesn't contain required value ("1" in your case)
    We need to see ho do update record/, how do you rebind the store and how the store is configured.

    Please try to create test sample is based on your real page and reproduces the issue

    NOTE: Marked as [CLOSED] because no new information was provided.
    Last edited by geoffrey.mcgill; Jul 15, 2010 at 12:40 AM.

Similar Threads

  1. Fix Column Data Whiile Reloading the Grid
    By Rahul in forum 1.x Help
    Replies: 0
    Last Post: Mar 17, 2012, 5:42 AM
  2. Replies: 3
    Last Post: Dec 06, 2011, 6:40 AM
  3. Replies: 5
    Last Post: May 17, 2011, 9:10 AM
  4. Data updated in store with e.record.set() is not getting reflected in grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2010, 5:16 AM
  5. [CLOSED] Updated version of
    By Amorim in forum 1.x Help
    Replies: 4
    Last Post: Dec 12, 2008, 3:04 PM

Posting Permissions