User Profile & Activity

Bernard Xiang Member
Page
of 52
Posted: August 13, 2013 11:09 PM

Hi Michael,

I tried to replicate your issue here using the settings that you mentioned in your snippet code above. When I tried to export, I export the root table successfully. You can also tried to put this setting in our sample that packed in our installer about Self Referencing WebGrid. It also export the data perfectly. Is there any working sample that can replicate this issue in our local end? I also browse many possibilities that make this issue occurs, it seems there are not well formed tag inside your XML file. You should also check your web.config file regarding this matter. Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard

Posted: August 13, 2013 10:12 PM

Hi Nikola,

I have tried to replicate your issue here. Unfortunately, this matter doesn't happen in my sample. As you can see in my sample, this matter doesn't happen even if you multiply the WebCombo inside jQuery Dialog. If this matter still happen in your local end. Could you let me know any steps or simple sample that can replicate this issue in our local end? Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard

Posted: August 13, 2013 5:37 AM

Hi su su,

Actually, you couldn't use CellTemplate in ClientBinding. When using ClientBinding, it will render the row in client side. Although when you're using CellTemplate, it will render the control in server side which mean, it has different process with client rendering which doesn't use server side rendering. This is cause the problem with your WebGrid.

Actually, WebGrid has many possibilities to render the template inside some cell in ClientBinding. For example, you can get the cells in OnInitializeRow clientside event then you can get the element inside the row. This way you can achieve your cell template in client side. Hope this helps.

Regards,
Bernard

Posted: August 12, 2013 10:48 PM

Hi Nikola, 

I tried to replicate your issue here. Unfortunately, this matter doesn't happen in my sample. Could you let me know any steps or maybe you can change my sample to replicate this issue in you local end? I attach my sample here and I'm looking forward to your feedback. I will gladly help you to resolve this issue.

Regards,
Bernard

Hi Ajanthan Thurairatnam,

I can replicate your issue here by using asp:label as my CellTemplate. However, this matter happen because in that column there isn't DataMember attribute that will give infomartion to WebGrid to show filter option in filter row for that column. You can also define FilterEditType as SameAsEditType to change the edit type of filter cell for that column. Please let me know if there's another issue regarding this scenario. Hope this helps.

Regards,
Bernard

Posted: August 5, 2013 11:22 PM

Hi Meera Greenal,

I have replied your inquiry to your email via developer network. Please check your inbox or junk folder in your email. Looking forward to your response.

Regards,
Bernard

Posted: July 31, 2013 9:38 PM

Hi Yogoo,

Glad that you have found your problem. If you have any further question, please don't hesitate to ask us.

Regards,
Bernard

Posted: July 29, 2013 3:11 AM

Hi Yogoo,

I can replicate your issue in our local end. Unfortunately, when using WebService, you could use AdditionalSearchFields property inside WebCombo but you should filter the data inside WebService. You can input the filter expression in DataSourceSelectArguments. Here's the example:

[WebMethod]
public QueryResult GetCustomers(DataSourceSelectArguments selectArguments)
{
    NorthwindDataContext context = new NorthwindDataContext();
    context.DeferredLoadingEnabled = false;
    context.ObjectTrackingEnabled = false;
    string param;
    if(selectArguments.FilterExpression.Contains("like"))
    {
        param = selectArguments.FilterExpression.Split('\'')[1];
        selectArguments.FilterExpression = "([ContactName] like '" + param + "' or [Address] like '" + param + "')";
    }
    WebComboDataProvider<Customer> query =
        new WebComboDataProvider<Customer>(context.Customers);
    return query.Select(selectArguments);
}

Using that expression, I persist WebCombo to filter the value using ContactName and Address regarding the input that you put inside WebCombo. Please let me know if this matter still happen in your local end. I'll gladly help you to resolve it. Hope this helps.

Regards,
Bernard

Posted: July 28, 2013 11:03 PM

Hi Eric,

Regarding to your scenario, maybe you can use one of WebGrid feature which is CellTemplate. When using CellTemplate, you can modify WebGridCell content to image and set it anchor. With css you can change the anchor style so it will show as an image. You can see the sample here:

http://live.intersoftpt.com/cs/WebGrid/TemplatedCell.aspx?noframe=1&path=/WebGrid/Grid%20Layout%20Mode

Hope this helps.

Regards,
Bernard

Hi zxdluck,

Glad that you have solved your problem. If you have any further problem, please don't hesitate to ask us.

Regards,
Bernard

All times are GMT -5. The time now is 12:32 AM.
Previous Next