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
703
New Row, Valuelist and Footer Summary Issue
posted

Hi ,

I have a Wingrid with databinded with binding list. I am adding a new to row to the grid. In my grid i have First 3 columns Project, Milestone and Class are of style dropdown . Scenario is 

1. When I add a new row to grid the Dropdown will be active for only newly added rows. Rows having ID or existing rows must be non editable(basically first three columns), rest are editable.

2. I have added valuelist to my dropdown , My sequence is On selection of project (in new row only) will populate the milestone valuelist and on changing the milestone class valuelist will be populated.

3. Also i have seven more columns from SundayHours to SaturdayHours, whose summation, i want to display at the footer of the grid(Column wise). Somewhat similar Infragistics Silverlight Grid's -> DataColumn.FooterText  property. But while searching i came across mike's answer that no footer summary exists in wingrid . So any workaround for that.

 

 

Parents
No Data
Reply
  • 48586
    posted

    Hello,

     

    I have  tried to follow your requirements and have create a sample for you. For point one, I have handled OnBeforeEnterEditMode to check if the edit row is AddRow (IsAddRow property indicate if the row is new added) and also check in which column is active cell to determine if the grid to enter in edit mode or not.

    For point two I have handled OnInitializeRow event to set value list for cells of the editable row, like ValueList for “Milestone” cell depends of the chosen value for “Project” cell and etc.

    For point three, I just added summary row to display sums for some column and I think that this will work for you.

     

    Regards.

    WinGridEnableAddedRows.zip
Children
No Data