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. Image for the cookie policy date

Using AllowEditing(false) makes the data in textbox control almost invisible in grid editing


Is there any property to set it to readonly or make the data in textbox control  visible

3 Replies

SA Saravanan Arunachalam Syncfusion Team October 14, 2015 08:40 AM UTC

Hi Sinha,

Thanks for contacting Syncfusion Support.

If allowEditing is set as false for a particular column, that column will be read only and the control will be in disable state while editing.

If you meant the invisible state as opacity of the disable cell, set “opacity” CSS for the read only column to change the appearance of disable cell. Please refer to the code example.

<style>

    .e-grid  .e-disable#GridCustomerID{

      opacity:1

    }

</style>

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

        . . .

        .Columns(col =>

        {

             . . .

            col.Field("CustomerID").AllowEditing(false).HeaderText("Customer ID").Width(90).Add();

            . . .

        })

  )


Regards,
Saravanan A.


SI sinha October 14, 2015 12:43 PM UTC


Hi Saravanan Arunachalam,
This is what exactly i'm looking for.

Thanks,
Sinha


SA Saravanan Arunachalam Syncfusion Team October 15, 2015 05:43 AM UTC

Hi Sinha,

Thanks for your update.

We are happy to hear that your issue has been resolved.

Please get back us if you need any further assistance. We will happy to assist you.

Regards,

Saravanan A.


Loader.
Live Chat Icon For mobile
Up arrow icon