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

To close new record or edit pop up form automatically when we switch to one grid to another grid.

2 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rajendra
Top achievements
Rank 1
rajendra asked on 27 Oct 2008, 11:37 AM
I have used two telerik grid using rad tab, now facing an issue (no idea either its an issue or existing feature) as below: If I select "Add New Record" or edit button of a grid for the 1st tab then it open said form....here no issue. But if I leave it as it is and click to another tab and do something with 2nd grid and later I come back to 1st tab containing 1st grid......still display the said form open (Add New record or Edit Form).

I want the auto feature through which New form or Edit form should be close automatically when I visit one tab to another tab ..

Please give me needfull suggestion.
regards

rajendra 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Oct 2008, 12:42 PM
Hi Rajendra,

Try the following code snippet in the Tab click event.

CS:
 
 protected void RadTabStrip2_TabClick(object sender, RadTabStripEventArgs e)  
    {  
       RadGrid radGrid1 = (RadGrid).RadPageView1.FindControl("RadGrid1"); 
       radGrid1.MasterTableView.ClearEditItems();  
       radGrid1.MasterTableView.IsItemInserted = false;  
    }  
 
 

Thanks
Shinu.
0
rajendra
Top achievements
Rank 1
answered on 27 Oct 2008, 12:57 PM
Hi Shinu,
Thanks for the answer!!

It works fine but when I come back to the previous Grid of tab1 the New & Edit form close automatically but apart from this the Delete button disappears too..

How could we make visible true for the Delete column...
Please suggest me..

Thanks in advance!!

rajendra
Tags
Grid
Asked by
rajendra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
rajendra
Top achievements
Rank 1
Share this question
or