﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Fri, 04 Dec 2009 04:02:08 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Andi.&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;I will let you know any other question is there once after i integrate the move next feature.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Thu, 03 Dec 2009 04:31:35 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Madhavan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry to make you worry, but we inspected the issue and it appears to be code issue, and it is not a bug. The right way to call the function is to pass the real WebGrid ID, which can be obtained after accessing to the Grid Object.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here's the sample codes:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function loadMore() {

    

        var grid = ISGetObject("WebGrid1");

        wgLoadMore(grid.Id);

}
&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope it can help and let me know if you have any more questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Wed, 02 Dec 2009 22:11:17 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Madhavan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I completely understand your situation. I will keep follow up to our developer to give a solution as soon as possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Wed, 02 Dec 2009 01:29:19 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt;It is a very urgent feature for our Customer Roland.&lt;/p&gt;
&lt;p&gt;Please Provide the solution ASAP.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Tue, 01 Dec 2009 03:25:31 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Madhavan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; I have replicated your issue and having a same one. I have send&amp;nbsp;this issue&amp;nbsp;to our&amp;nbsp;developer to investigate it. I am so sorry, but if there is a new news from our developer, I will inform you as soon as possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Mon, 30 Nov 2009 07:51:14 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To be More Precise,&lt;/p&gt;
&lt;p&gt;I created a sample File System Project which contains testctrl.ascx where grid and buttons has been placed.&lt;/p&gt;
&lt;p&gt;In the Load.aspx page i loaded the Testctrl.ascx page.&lt;/p&gt;
&lt;p&gt;After loading Click the button RefreshGrid and this will refresh only the grid.&lt;/p&gt;
&lt;p&gt;After clicking LoadMore button ,the entire page gets loaded once again.&lt;/p&gt;
&lt;p&gt;Please advice.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan &lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Mon, 30 Nov 2009 02:12:47 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt;We are having problem in attaining this in our scenario.&lt;/p&gt;
&lt;p&gt;We are having a Usercontrol ascx page which contains the grid.&lt;/p&gt;
&lt;p&gt;We are loading this Usercontrol through the webcontrol.&lt;/p&gt;
&lt;p&gt;Webcontrol is loading through the Panel.&lt;/p&gt;
&lt;p&gt;In the Page Oninit method we are adding our webcontrol to the panel.&lt;/p&gt;
&lt;p&gt;I put a button in my Usercontrol ascx page and called the function &lt;span style="font-size: 13px"&gt;
wgLoadMore(&lt;/span&gt;&lt;/p&gt;
wgLoadMore(&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;'WebGrid1'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); On click of the button it is loading the entire page again.&lt;/span&gt;

&lt;p&gt;But in the same button if i call grid.Refresh() and all it is fine.It is refreshing only the data.&lt;/p&gt;
&lt;p&gt;Please advice.&lt;/p&gt;
&lt;p&gt;It is urgent.&lt;/p&gt;
&lt;p&gt;The attached file will give you a glimpse of our scenario.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Sun, 29 Nov 2009 23:08:01 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Madhavan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to do so, first, you will need to get the index row of the selected object, then, from that, if the current row index is on the total &lt;/span&gt;&lt;span style="font-size: 9pt"&gt;loaded rows, we need to load more data by "wgLoadMore('WebGrid1') to retrieve the next selected data. After we load more data then we can go to the 7th &lt;/span&gt;&lt;span style="font-size: 9pt"&gt;or next record of database.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There are attached codes that I made in Java Script using 2 buttons to go on the next and previous selected data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Move Next Previous Record with VirtualLoadMode enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Move-Next-Previous-Record-with-VirtualLoadMode-enabled/</link><pubDate>Fri, 27 Nov 2009 03:55:11 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi ALL,&lt;/p&gt;
&lt;p&gt;We are working on the requirement of moving next and previous record on click of button.&lt;/p&gt;
&lt;p&gt;But We have enabled VirtualLoadMode.&lt;/p&gt;
&lt;p&gt;Say we have virtualpagesize is 6 and totally there are 30 records.&lt;/p&gt;
&lt;p&gt;Say when the grid loads it will load with 6 of 30.&lt;/p&gt;
&lt;p&gt;Say I am in 6th Record and I want to go 7th record on click of MoveNext button.&lt;/p&gt;
&lt;p&gt;How we can achieve this?&lt;/p&gt;
&lt;p&gt;We are using the following code for MoveNext and MovePrevious.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please advice,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;MoveNext:&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; grid = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebGrid1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; selectedObject = grid.GetSelectedObject(); &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (selectedObject != &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) &lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; selectedRow = selectedObject.ToRowObject(); &lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; nextRow = selectedRow.GetNextRow(); &lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;(nextRow !=&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) &lt;p&gt;nextRow.Select();&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MovePrevious:&lt;/p&gt;&lt;span style="font-size: 13px"&gt;
&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; grid = ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebGrid1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); 

&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; selectedObject = grid.GetSelectedObject(); 

&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (selectedObject != &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) 

&lt;p&gt;{&lt;/p&gt;
&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; selectedRow = selectedObject.ToRowObject(); &lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;// return WebGridRow object &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;
&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; previousRow = selectedRow.GetPreviousRow(); &lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;// get previous row object &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;
&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;(previousRow !=&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) 

&lt;p&gt;previousRow.Select();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item></channel></rss>