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
446
Cell Edit - Samples Browser
posted

So i want to use cell edit on my grid but cannot get it to work. So i look at the samples page:

 

http://samples.infragistics.com/2008.2/webfeaturebrowser/contents.aspx?showCode=True&t=WebGrid/CellEditors/celleditorredirect.aspx~srcview.aspx?path=../webfeaturebrowservb/WebGrid/CellEditors/celleditorredirect.src~srcview.aspx?path=WebGrid/CellEditors/celleditorredirect.src

 

But all it says is Redirect(); in the code!!!  Plz help! 

  • 446
    Offline posted

     Well i found my problem... i Was refering to NumericEdit controls that were Visible="false"... which does not render them to the page :( but i dont want them on my webpage so i just set their css style to display:none.

      foreach (UltraGridColumn col in this.gridTierDetail.Columns)
                {
                    col.AllowUpdate = AllowUpdate.Yes;
                   
                   

                    if(col.Index == 0)
                    {
                        col.Type = ColumnType.DropDownList;
                        col.ValueList.DataSource = this.tierEntity.ProductTypeList; //What is datamember?
                        col.ValueList.ValueMember = "vehicle_type";
                        col.ValueList.DisplayMember = "vehicle_description";           
                        col.ValueList.DataBind();
                    }
                    else if(0 < col.Index && col.Index < 3) //One of the ages
                    {
                        col.Type = ColumnType.Custom;
                        col.EditorControlID = "gridNumericEditAges";    //Control which is style->display:none
                    }
                    else if (col.Index > 2) //One of the tiers
                    {                   
                        col.Type = ColumnType.Custom;
                        col.EditorControlID = "gridNumericEditTiers";  //Control which is style->display:none
                    }
                }