Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Need urgently JQERY approach for conditional row level formatting.
posted

Hi,

Thanks in advance.

We are using following features of igGrid.

1. Updating feature with some of columns as read only columns.

2. Making the the cells editable based on conditions. There can be 8-9 conditions.

3. Setting the cssclass for the cells based on conditions.  There can be 8-9 conditions.

Is it good to write to these all the codes in client side code? Also is there any better approch to get the same functionality specifcally keeping the formatting at the serve side code.

Can we get the update ASAP.

Thanks,

Laxmi Pujari.

Parents
No Data
Reply
  • 6279
    posted

    Hi Laxmi,

    Your questions are a bit general, but here are the answers:  

    Laxmi2012 said:
    1. Updating feature with some of columns as read only columns.
    Possible - you can see an example of this at http://samples.infragistics.com/jquery/grid/editing-client-validation   (the ID column is read-only)

    Laxmi2012 said:
    2. Making the the cells editable based on conditions. There can be 8-9 conditions.
     Possible - you nee do set an event handler for the  editCellStarting client-side event and in that handler, perform the checks of your conditions.

    Laxmi2012 said:
    3. Setting the cssclass for the cells based on conditions.  There can be 8-9 conditions.
    Possible - here's an example from our samples: http://samples.infragistics.com/jquery/templating-engine/row-template-with-conditional-cells

    Laxmi2012 said:
    Is it good to write to these all the codes in client side code?
    Yes, the jQuery controls have only client-side events and the templates for conditional formatting (question #3) are also client-side as well.

    Laxmi2012 said:
    Is it good to write to these all the codes in client side code? Also is there any better approach to get the same functionality specifcally keeping the formatting at the serve side code.
     To put it in general, ASP.NET WebForms controls and pages were mainly managed by the server; ASP.NET MVC and jQuery-based pages are mainly managed by the client (JavaScript).


    Thus, formatting can be configured on the server, but that configuration is either JavaScript or HTML that will then be handled client-side. 

    Hope these answers help you out.

    All the best,
    Borislav 

Children