private void radMenuItem1_Click( object sender, EventArgs e ) |
{ |
dlgAssignSplits dlgSplits = new dlgAssignSplits(); |
if ( dlgSplits.ShowDialog() == DialogResult.OK ) |
{ |
//dlgSplits.Task |
int insertAt = FindRowPosition(); |
ClipGrid gridItem = new ClipGrid(); |
List<ClipGrid> gridItemsList = UpdateClipTaskGrid(); //Gives back 6 rows |
//gridItem = gridItemsList[insertAt]; // Changes the values in the row. |
gridItem.Task = dlgSplits.Task; |
gridItem.AssignedArtist = dlgSplits.Artist; |
gridItem.AssignStatusDesc = dlgSplits.Status; |
gridItemsList.Insert( insertAt, gridItem ); //gridItemsList has 7 Rows now |
grdClipTask.DataSource = gridItemsList; |
grdClipTask.Refresh(); //Form displays only 6 Rows. |
dlgSplits.Dispose(); |
} |
} |
HI,
I have one issue regarding RadTabStrip. I have created two pages(Page 1 and Page 2) in RadTabstrip.In both the pages i have added two Radio Buttons and One Text box.Now I have subscribed Validating event of Text boxes of both the pages. I also have subscribed TabSelecting event of RadTabStrip.
Now in my scenario if validation of current Text Box is not done,I should not be able to select different tabPage.so to achieve this i have made args.Cancel = true; this statement in TabSelecting Event.
C# Code :
private void radTabStrip1_TabSelecting(object sender, Telerik.WinControls.UI.TabCancelEventArgs args)
{
if (!Valid)
{
args.Cancel = true;
}
}
Here Valid is globla variable showing i need to stop tabChange.
Problem :
Suppose now i am on Page 1 and entered some Invalid entry in TextBox and I click on page 2. Validation fires from Text Box and force me to be on page 1. Here Page 2 is not selected.This is fine for me,But now if i made Valid Entry in Text Box then I am able to change tab but not able to click( or change) Raido button on Page 1. Here I am suppose to change or select Radio button on same page in case of valid entry in Text Box.
Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load |
ThemeResolutionService.ApplicationThemeName = "Office2007Black" |