User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Gaurav Desai,

      Yes, we do have a method to set the column to be a best fit width. We can use ResizeBestFit() in client side event.

      However, it will only work for one column at a time. That is why we will need to create a looping for every column to use this method. Here is the snippet to do so:

        function window::onload(){
              
              var WebGrid = ISGetObject("WebGrid1");
                                 
              for(var i = 0 ; i< WebGrid.GetRootTable().Columns.length;i++){
                    
                    WebGrid.GetRootTable().Columns[i].ResizeBestFit();
              
              }
              
        }

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

Best Regards,

Andi Santoso

Hi Xedem,

     For updating the GAC, you can go to "C:\Windows\assembly" and try to uninstall the "ISNet.dll, ISNet.WebUI.Design.dll, ISNet.WebUI.dll, ISNetWebUI.Editor.dll, ISNEt.WebUI.Editor.v4.dll, ISNet.WebUI.Resources.dll, and ISNet.WebUI.Silverlight.dll" by right click on those files and choose Uninstall. After that, you can drag those files again from hotfix to that particular folder again.

     After that, you can try to update the .dll files in your bin project folder by dragging all the WebGrid's .dll files from hotfix into your bin folder. If we copied all the .dll including the ISNet.WebUI.WebGrid.Resources.dll, we do not need to Register our SmartWebResources again, because, by Registering our SmartWebResources, basically it will generate the "ISNet.WebUI.WebGrid.Resources.dll" into our bin folder.

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

Best Regards,

Andi Santoso

Hi Shawn August,

     If we do want to use Wcf Service, we do need to use a client-binding in our WebGrid to bind the data. So, we cannot bind them in OnInitializeDataSource event. Here is the link to our Wcf Service data source documentation, "ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Windows Communication Foundation (WCF) Service.html".

     Also, we do have a running sample in our code sample. You can go to WebGrid samples and locate the ClientBinding_WcfService.aspx. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Raviraj Shimpi,

    Attached is a sample that I made using Update panel. In that sample, I have provided 2 buttons, one is doing a full post back and the other one is not. After I tried those two buttons, the WebGrid is still having a same style. Could you give me more details on your scenario? Or perhaps, you can modify my sample so that it will replicate the issue of yours. 

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

Best Regards,

Andi Santoso

Hi Xedem,

     This is weird. Usually, when we had a different version in GAC and our bin project folder, we cannot open the WebGrid's designer. In your case, could you kindly just replace all of the WebGrid components that are needed with the latest hotfix, also ensure to update your GAC as well and see if it might work.

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

Best Regards,

Andi Santoso

Posted: March 26, 2010 4:22 AM

Hi Madhavan,

     If you are using our SmartWebResources, unfortunately, we cannot change them manually. You will need to send us a full xml file in Chinese, then we will build them and include them in our SmartWebResources.

     If you are not using SmartWebResources for the TextSetting, you can add them manually into the "wglang_zn-CH.xml" and make sure that you have a right path to that .xml file. As I see through to the zn-CH.xml, we do not have the "Sort A to Z". What we have is <SortAsc>, for "Sort A to  Z", the tag would be <SortAscText>.

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

Best Regards,

Andi Santoso

Hi Shawn,

     Attached is a sample on how to create a hierarchical WebGrid using Linq. I am using Northwind.dbml as a data. After that, I am also using the outbound mode to create the link between those two table. I hope it can helps your scenario. Thank you and have a nice day.

P.s: Put the .dbml file in your app_code.

Best Regards,

Andi Santoso

Hi David Parkin,

      Glad to hear that it solves your problem. For your information, the LayoutSettings-allowFloatingText means that it will allow some text to float in the right side of the WebCombo control.

      Please do not hesitate to ask if you have any other questions. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi David Parkin,

     I attached you a new sample. In here, we can see that I set the text to "    Brad" and when we show the DropDown list, it will not trim spaces. In order to do so, we will need to set the EncodeOutput to true in WebCombo initialize layout on the server side.

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

Best Regards,

Andi Santoso

Hi David Parkin,

     First of all, thank you for using our Community Forum. For your issue, I was trying to use them in the text value with prefix of "&nbsp;", however, it works fine in my end. Perhaps, I am missing something. I also attached you my simple running sample of WebCombo, could you modify them so that the issue is persisted.

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

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 11:39 PM.
Previous Next