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

Help Please I am stuck up

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sravanthi
Top achievements
Rank 1
sravanthi asked on 08 Jun 2011, 06:10 PM
Hi Everyone,

I followed the following example and did a module at my work.I was able to do everything very well.I have no clue it suddenly gave me an error saying that There is an error in the innertext of the HTML.

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
I checked every tag ....
Nothing is working
When I click on add new employee link button in the above eg it is not showing the divexternalform.
Any one have any idea y the INNER TEXT Error comes up.

Please help me.

I tried to change the div tag to asp:Panel tag still it is doing nothin but refereshing the page.



Thanks,
Sravanthi



3 Answers, 1 is accepted

Sort by
0
sravanthi
Top achievements
Rank 1
answered on 08 Jun 2011, 06:12 PM
 I figured out that one, because of the connection  to the database error it was doing that.

But facing a new thing.when I am trying to insert a new record the default Add new record form is being displayed.I dont want the default Insert from to be displayed because I had a form designed for that.The default form is being displayed after the insertion of the record  from my designed form.

Do any one know how to stop  display of the default Insert form ?

Please  help me.


Thanks,
Sravanthi
0
Tsvetoslav
Telerik team
answered on 13 Jun 2011, 04:14 PM
Hello sravanthi,

Do pay attention how the InitInsert command is canceled in the example so that the form be not open (EmployeesGridCS.ascx.cs):

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    switch (e.CommandName)
    {
        //cancel default edit command and load the edited data in the external form
        case RadGrid.EditCommandName:
            e.Canceled = true;
            e.Item.Selected = true;
            DisplayEditForm(e.Item as GridDataItem);
            break;
        //cancel the default insert command and display the external insert form
        case RadGrid.InitInsertCommandName:
            e.Canceled = true;
            RadGrid1.SelectedIndexes.Clear();
            DisplayInsertForm();
            break;
        default:
            break;
    }
}
 

Hope it helps.

Regards,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
sravanthi
Top achievements
Rank 1
answered on 13 Jun 2011, 04:23 PM
Hey Tsvetoslav ,
I knew about my mistake.I used the same coding .But still the default insert form was being displayed because the example was using the statement                employeesGrid.MasterTableView.InsertItem();

Which is not needed.I got that after 3 days of research.....


Thanks,
Sravz
Tags
Grid
Asked by
sravanthi
Top achievements
Rank 1
Answers by
sravanthi
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or