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

Edit form should be open at one time either upon Insert click or Edit click event.

3 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rajendra
Top achievements
Rank 1
rajendra asked on 10 Oct 2008, 06:01 AM
Hi everybody !!

I faced an issue during rad grid control, exactly dont know that existing issue is a bug or built in feature. Actually scenario is in this way : I have used a rad grid during Add Record click event a new pop - up form opens...its fine here but if I click edit link too without closing this new one pop-up window , a edit window pop- up also opens... so right now I'm getting both window Insert & Edit mode...

I want to open one window at a time only...either Insert window or Edit window...If I'll click Edit link then automatically Insert window shoud be closed....or should give any message....is there any feature regarding this.


Please suggest me...its urgent!!
thanks in advance !!

rajendra

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Oct 2008, 06:05 AM
Hello rajendra,

Actually it's a feature! You can close all edited items using RadGrid1.EditIndexes.Clear() in InitInsert command and  close the insert item using RadGrid1.MasterTableView.IsItemInserted = false in Edit command.

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
rajendra
Top achievements
Rank 1
answered on 10 Oct 2008, 06:26 AM
Hi Vlad
thanks for quick response..

but unfotunately didnt success.... actually i open one pop-up window through add new record link.....now again open a edit window so in this situation the previous Add new window should close automatically but nothing happened...

please give me an example for the said solution..

regards
rajendra.
0
Shinu
Top achievements
Rank 2
answered on 10 Oct 2008, 08:58 AM
Hi,

Refer to the following help article link which explains the required scenario. It explains on how to switch between insert and edit modes.
Switching the Insert/Updade/Regular Modes 

Regards,
Shinu.
Tags
Grid
Asked by
rajendra
Top achievements
Rank 1
Answers by
Vlad
Telerik team
rajendra
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or