We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Possible Bug with Boolean Checkbox - Grid EditMode(EditMode.Batch) Adaptor(AdaptorType.UrlAdaptor);

Thread ID:

Created:

Updated:

Platform:

Replies:

122066 Feb 12,2016 07:06 PM Feb 15,2016 03:51 AM ASP.NET MVC 1
loading
Tags: Grid
Prasanth
Asked On February 12, 2016 07:06 PM

Hi there

I am using 13.0.0.18 and Visual Studio 2015 community edition

For some reason while I am trying to edit the field I am getting the text "true" or "false" rather than the check box.  

On one of the pages I have noticed that on read view check box is not displayed but text "true" or "false" is displayed but once the page is refreshed it's ok

Regards
Prasanth

Balaji Marimuthu [Syncfusion]
Replied On February 15, 2016 03:51 AM

Hi Prasanthan,

Thanks for contacting the Syncfusion support.

Query:1 For some reason while I am trying to edit the field I am getting the text "true" or "false" rather than the check box. 

To display the checkbox while Editing, we suggest you to set the EditingType as Boolean in Grid columns. Refer to the sample and code example as below.
Sample: Batch-UrlAdaptor


@(Html.EJ().Grid<SyncfusionMvcApplication16.OrdersView>("FlatGrid")

         .Datasource(ds => ds.URL("BatchDataSource").BatchURL("BatchUpdate").Adaptor(AdaptorType.UrlAdaptor))

         .AllowPaging()    /*Paging Enabled*/

              .EditSettings(edit=>{edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Batch); })


        .Columns(col =>

        {

            col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add();

            col.Field("CustomerID").HeaderText("Customer ID").Width(80).Add();


             . . .

            col.Field("Verified").HeaderText("Verified").EditType(EditingType.Boolean).Width(100).Add();

        }))



Query:2 On one of the pages I have noticed that on read view check box is not displayed but text "true" or "false" is displayed but once the page is refreshed it's ok

We checked the sample by enabling the Batch EditMode and UrlAdaptor, but we were unable to reproduce the issue. So could you please try the attached sample and share following information?

1.     Scenario to reproduce the issue.
2.     Are you facing the issue with same Grid while navigating to the page? Or the issue with Grid in other pages while navigating to the webpage – Please explain clearly about On one of the pages.
3.     Are you mentioning the webpage refresh or Grid page refresh?
4.     Browser details.
5.     Share sample if possible or modify the attached sample as issue reproducible.
6.     Ensure the type is “boolean” for Boolean columns and not “string”. Refer to the code snippet as below.


col.Field("Verified").HeaderText("Verified").EditType(EditingType.Boolean).Type("boolean").Width(100).Add();


Note: If type is not set, type “Boolean” is assigned to the column based on the cell value.

Regards,
Balaji Marimuthu

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;