User Profile & Activity

Riendy Setiadi Member
riendy@intersoftpt.com
Page
of 19
Posted: July 27, 2011 10:47 PM

Hi David,

Could you please let me know where the snippet code placed ?

If you want to add a link in WebGrid base on the cell value, I suggest you to add code on InitializeRow WebGrid event. Then you have to add HyperlinkDisplayText to define text which is shown and HyperlinkFormatString to define where will be navigated after you click the display text. For the example, please follow this code:

        WebGrid1.RootTable.Columns[1].HyperlinkDisplayText = " <img alt='" + "?id=" + e.Row.Cel      ls[0].Text + "' src='" + e.Row.Cells[1].Text + "'/>";
        
        WebGrid1.RootTable.Columns[1].HyperlinkFormatString = e.Row.Cells[0].Text + ".aspx";

Hope this helps.
Riendy


Posted: July 27, 2011 10:38 PM

Hi Dilshad,

Just like I told you before, onBarClick event is too fast to execute wgDoResize method. You need to set the time out for your method, because WebGrid need time to execute wgDoResize after it adjust the container. I just add this code on onBarClick event to your sample and it works well on my end.

 function WebPane1_OnBarClick() 
        {           
            window.setTimeout(function () { wgDoResize(true, true); }, 1);           
        }

Would you please let me know what error message did you get ?


Regards.

Riendy

Posted: July 27, 2011 6:34 AM

Hi Eric,

I have forwarded your issue to our development team. I will follow up them and let you for any updates. Anyway, have you read this article?

Regards.
Riendy

Posted: July 26, 2011 10:44 PM

Hi Dilshad,

Unfortunately, I was unable to replicate the issue. I Tried to use a WebGrid on WebNavPane, but it works well on my end. Is it possible for you to attach a simple sample which replicate this issue ?
Actually, you can use the same way to avoid the resizing. I think onBarClicked event is too fast to excute wgDoResize method. You can try to set time out for your method using this code :

window.setTimeout(function () { wgDoResize(true, true); }, 300);

 

Regards.
Riendy

Hi Udayan,

First of all, I am sorry for my mistake. You should not use SaveTablesStructureToXml and LoadTablesStructureToXml, you have to use SaveTablesStructure and LoadTablesStructure.

Let me assist you for a simple sample to save a table structure. After you bind the data into WebGrid, please add 2 buttons. Then add the codes bellow to each button.

   protected void Button1_Click(object sender, EventArgs e)
    {
           WebGrid1.SaveTablesStructure(Server.MapPath("SampleLayout.xml"));
           // you can also use another file (i.e .isl file)
// WebGrid1.SaveTablesStructure(Server.MapPath("SampleLayout.isl")); } protected void Button2_Click(object sender, EventArgs e) { WebGrid1.LoadTablesStructure(Server.MapPath("SampleLayout.xml")); //WebGrid1.LoadTablesStructure(Server.MapPath("SampleLayout.isl")); WebGrid1.RebindDataSource(); }


Regards.
Riendy



Posted: July 26, 2011 3:10 AM

Hi Dilshad,

Glad to hear that.
please do not hesitate to ask us if you have any question later. Have a nice day.


Best regards.
Riendy

Hi Udayan,

You did well to save the table structure of WebGrid. You can save the table structure as simple as that. But, if you want to show the WebGrid in to the saved structure, you have to load the structure. Then, if you want to show the data as well, you have to rebind the data. Please use this code to show your gridView into the saved state.

  gridView.LoadTablesStructureFromXml(Server.MapPath("layout.xml"));
  gridView.RebindDataSource();

 

Hope this helps.
Riendy

Posted: July 26, 2011 12:22 AM

Hello Dilshad,


I could replicate your issue on my end. Actually, it is not caused by the PostBack. The issue happens when you navigate to tab2 then tab1. WebGrid is not set into your current size. To avoid WebGrid resize inside WebTab, you can add the following code at OnAfterTabChanged event on WebTab clientSideEvent property:

wgDoResize(true, true);

This code will set your WebGrid into your current size as like as you've set.


Hope this helps.
Riendy




Posted: July 25, 2011 11:04 PM

Hello,

If there is a problem in documentation during the installation, you can installed the help CAB using the VS help management tools.
To add the documeantation manually, please follow this step :

  1. Please open Management help setting in help menu bar or press ctrl+alt+f1 for shortcut. 
  2. Then select Choose online or local help. Ensure that you choose I want to use local help.
  3. Next, in Help Library Manager, select Install content from disk.
  4. Navigate the location of help media to:
    C:\Program Files\Intersoft Solutions\Intersoft WebUI Studio 2011 R1\Help3\
  5. Choose the .msha file of control which you want to open. 
  6. Click add to control which you chose before. 
  7. Click update button to confirm the added. If the process interupted by a security alert, choose yes.

If there is no add in action column (step #6) which want to click, please remove content first using this step :

  1. In Help Library Manager, select Remove Content.
  2. Click Remove on Intersoft component documentation which you want to add.
  3. Then, Click on Remove button.
  4. After that, you can add the documentation manually.
You have to repeat this step for another unopenened documentation.


Hope this helps.
Riendy

Hello,

Thank you for your feed back to my email Jennifer.

As the result, this issue has been solved in WebCombo v5.0.7200.3


Best Regards.
Riendy

All times are GMT -5. The time now is 3:53 AM.
Previous Next