This is a migrated thread and some comments may be shown as answers.

[Solved] Post back errors in my project

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 04 Jan 2010, 01:00 PM
Hi,

this is shanker am doing one project using telerik controls my requirement is in rad combo box selectedindex change event populate the details in Radgridveiw .But in edit event it,s didnot open the edit columns am face postabak error my code is 

 if (!IsPostBack)
            {
                Facility.DataSource = studentremarks.org_view_facility_lookup();
                Facility.DataBind();
                
            }
        }
        public void getdata()
        {
            grdstudentremarks.DataSource = studentremarks.sch_view_sch_student_remark_list(RadcomFiscalyear.SelectedValue.GetInteger(), Radcomclass.SelectedValue.GetInteger());
            grdstudentremarks.DataBind();
        }
        protected void Facility_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadcomFiscalyear.DataSource = Feeschedulemanager.sch_view_fiscal_year_lookup(Facility.SelectedValue.GetInteger());
            RadcomFiscalyear.DataBind();
            Radcomclass.DataSource = studentremarks.sch_view_class_lookup(Facility.SelectedValue.GetInteger());
            Radcomclass.DataBind();
        }
   protected void grdstudentremarks_PreRender(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GridColumn editColumn = grdstudentremarks.MasterTableView.GetColumn("EditCommandColumn");
                if (editColumn != null) { editColumn.Visible = CanUpdate; }
                GridColumn deleteColumn = grdstudentremarks.MasterTableView.GetColumn("DeleteCommandColumn");
                if (deleteColumn != null) { deleteColumn.Visible = CanDelete; }
                if (!CanInsert)
                {
                    HideInsertCol(grdstudentremarks);
                }
                getdata();
            }
        }

please it's argent

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 04 Jan 2010, 04:40 PM
Hi Shanker,

I suggest you examine the following online example, which elaborates on this subject and let me know if it works for you:
Grid Filtered by Combo

Kind regards, Pavlina

the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Tags
Grid
Asked by
shanker bangari
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or