User Profile & Activity

Bernard Xiang Member
Page
of 52
Posted: September 12, 2012 2:38 AM

Hi Udayan,

I can replicate your issue here. But for this issue, I've made my workaround to set the colgroup width after you do BatchUpdate. I also attach the sample here. Could you look for my code and tell me if there's some misconfiguration on my code? 

Or you use if(!IsPostBack), when you set the structure of WebGrid (if you don't want to get the WebGrid structure continously). Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Hi Girish,

From you code, I don't see any code that trigger Postback. If you have any server-side method behind maybe you can save the keyValue on HiddenField. The during InitializeRow check the cells and set selected property on row object as true value. If this problem still occurs, could you give me a simple sample that replicate this issue?


Regards,

Bernard

Posted: September 11, 2012 1:49 AM

Hi Udayan,

I couldn't replicate you issue in our local end. Could you let me know the steps and browser that you used to replicate this issue in our local end? Maybe to resolve this problem, you can set the width of the row OnBatchUpdateSuccess event from filterRow. But it will be more certain if I can replicate this issue in our local end so I can give you solution that might work in your project.


Regards,

Bernard

Posted: September 11, 2012 12:01 AM

Hi Udayan,

I'll make this scenario as feature request and I will tell you if I heard any news regarding this feature request.


Regards,

Bernard

Posted: September 10, 2012 4:43 AM

Hi Eric,

Sorry for my lack. I'm not really understood about the scenario that you mention above. However, you can add WebGrid programmatically to you WebTabby using this code:

protected void Page_Load(object sender, EventArgs
{
    WebGrid WebGrid1 = new WebGrid();
    WebGrid1.UseDefaultStyle = true;
    WebGrid1.Width = Unit.Pixel(400);
    WebGrid1.Height = Unit.Pixel(200);
    WebGrid1.InitializeDataSource += new DataSourceEventHandler(WebGrid1_InitializeDataSource);
    WebGrid1.PrepareDataBinding += new DataSourceEventHandler(WebGrid1_PrepareDataBinding);
    WebTab tab1 = new WebTab();
    WebTabItem theTab = new WebTabItem();
    theTab.Text = "Tab1";
    theTab.PageTemplate = new MyClass(WebGrid1);
    tab1.TabPages.Add(theTab);
    form1.Controls.Add(tab1);
}
public class MyClass : ITemplate
{
    WebGrid grid1 = null;
    public MyClass(WebGrid grid1)
    {
        this.grid1 = grid1;
    }
    public void InstantiateIn(System.Web.UI.Control container)
    {
        container.Controls.Add(grid1);
    }
}

You override ITemplate class in MyClass class then you add the method to add the WebGrid there. Could you explain more details about the requirement or scenario that you want to achieve above? Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Hi Girish,

From post above, this problem might be happen because WebGrid doesn't have any selected row (lost focus). To resolved this, you can select the row that you replaced before by using this code in client side:

function select() {
	var WebGrid1 = ISGetObject("WebGrid1");
	WebGrid1.RootTable.GetRow(index).Select(); //(int)index of the row that you have replaced
	return true;
}

If this problem still happen, could you give me a simple sample that can be executed in our local end so we can debug it here? Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Posted: September 9, 2012 9:34 PM

Hi Eric,

Is it fixed yet? Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Posted: September 6, 2012 9:39 PM

Hi Udayan,

Perhaps you can tell me the scenario that you want to achieve. What kind of printing result that you want to print? Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Posted: September 6, 2012 12:43 AM

Hi Gary,

Our latest product support Visual Studio 2012, that means you can use .NET Framework 4.5 for your project. I also try to use Entity Framework 5 in my project and it works well. 

For more information please visit: http://www.intersoftpt.com/vs2012/

Hope this helps.


Regards,

Bernard

Posted: September 4, 2012 11:55 PM
Hi Udayan,

To print WebGrid layout, you only can use print function at the browser. Currently, WebGrid doesn't have print functionality.

But if you want to print the content, you need to use export feature before you print.

Regards,
Bernard
All times are GMT -5. The time now is 2:23 AM.
Previous Next