User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Gaurav,

     We cannot use that approach to retrieve the old and new value of a BatchUpdate WebGrid. What you might want to do is, as like my colleague mentioned about retrieve changes in WebGrid. Here is the snippet to do so:

protected void WebGrid1_BatchUpdate(object sender, ISNet.WebUI.WebGrid.BatchUpdateEventArgs e)
    {
        string newValue = WebGrid1.GetChanges()[0].Data[0].NewValue.ToString();
        string oldValue = WebGrid1.GetChanges()[0].Data[0].OldValue.ToString();
    }

     I hope it helps you . Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Vincenzo,

     Here is the snippet on how to fulfill your scenario:  

        function Button1_onclick() {

var webScheduler = ISGetObject("WebScheduler1"); var viewSettings = webScheduler.ViewSettings; alert("Date info" + viewSettings.SelectedDate + "\nView Mode is " + viewSettings.SelectedViewMode + "Mode"); }

     I triggered this event from a simple HTML button. Hope it can help you. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Adrian,

    Yes, we can define the hierarchical grid structure in client side, however that is only for the design. With defining the hierarchical grid in client side, we do not need to use WebGrid1.RetrieveHierarchicalStructure() anymore since we have manually set the structure of WebGrid.

    However, when we use strong type custom object, we will need to define the binding itself for the Hierarchical WebGrid in PreInitialize server side event. In there, we will set the object relations for the parent and child table.

    I attached you a similar sample that my colleague provided to you but in mine, I use a List<> custom object for the data. Please kindly take a look and provide us with the feedbacks. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: May 4, 2010 12:03 AM

Hi John,

     Yes, that is happened because we did not set the Height of the WebGrid and it is not meant to be used in this behavior("Not setting the height of WebGrid"). However, everything else looks fine when I tried to set the Height of WebGrid in pixel (I am using XHTML page). 

     I also attached you my sample file in this scenario which runs well with the above descriptions. I hope it helps. Thank you.

Best Regards,

Andi Santoso 

Hi Huzefa,

    I have tried your sample, and the result was fine in my end. I attached you my sample which basically almost same like yours but the different is, I summoned them from server side. As well as the image of screenshot of the result which has no JavaScript error persisted is included.

    I hope it helps. Thank you.

Best Regards,

Andi Santoso

Hi Shawn,

    Unfortunately, using WebValue List, the WebGrid itself has to be bound to DataSource, since on declaring the WebValue List we used DataValueField to connect to the WebGrid itself. So like I mentioned before, using unBound grid and WebValue List is simply conflicting with the nature of the databinding concept. So it is not meant to be used that way.

    I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso 

Hi Huzefa,

     To use common Library, you will need to ensure that your project is run on localhost, not in File System. If you are in localhost, then you can simply include the ISNet.dll, ISNet.WebUI.dll, ISNet.WebUI.WebInput.dll and ensure that the common library is set as a virtual directory in your IIS.

     Thank you.

Best Regards,

Andi Santoso

Hi Swan,

     After I discuss this with our Developer, it seems that since we are using unBound WebGrid, we cannot using WebValue List. WebValue List should be used in WebGrid with bound data source, if not, it's simply conflicting with the nature of the databinding concept. I hope it helps. Thank you.

Best Regards,

Andi Santoso

Posted: May 3, 2010 12:47 AM

Hi John,

     Here is the answer regarding your questions:

1. Yes, we cannot change the the "Name" in the WebGridColumn tag. The grid display correctly becuase in grid we do not use a function that required that name. When we use Chart, it might required for this Char to call some function such as "getElementbyName". Therefore, if we changed this, it might give us an unexpected error.

2. Yes, sorry for the inconvenience. This issue has been forwarded to our Developer team. Thank you for your feedback.

3. Unfortunately, we do not support this feature yet.

    I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso


Posted: May 2, 2010 11:57 PM

Hi John Bonin,

     Forgive me, however, I am not able to replicate the issue in my end. I have tried to removet he XHTML DocType and remove the height attribute. Although the WebGrid is shown in a short(see attachment) since we do not declare the height of WebGrid, it did not give me a crash in the browser. Perhaps, I am missing something and you could direct me by steps to replicate the issue.

     I hope it helps. Thank you.

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 4:48 AM.
Previous Next