Hi,
I am programmatically creating some RadNumericTextBoxes (see code below).
I have 2 questions:
1,When the page is rendered the boxes appear and all looks fine, however when I mouse over any of the boxes they change size slightly (they reduce by about 4px) and remain that size. This is a bit weird and unsightly. Is there anything I can do to prevent this?
2, How can I get the fully qualified ClientID programmatically at creation? I find that ClientId just contains the Controls ID...
I am programmatically creating some RadNumericTextBoxes (see code below).
I have 2 questions:
1,When the page is rendered the boxes appear and all looks fine, however when I mouse over any of the boxes they change size slightly (they reduce by about 4px) and remain that size. This is a bit weird and unsightly. Is there anything I can do to prevent this?
2, How can I get the fully qualified ClientID programmatically at creation? I find that ClientId just contains the Controls ID...
ResultsRadNumericTextBox = new RadNumericTextBox(); | |
ResultsRadNumericTextBox.Type = NumericType.Number; | |
ResultsRadNumericTextBox.ID = "EntrantHoleResult" + EntrantsResultsData.Table.Rows[DataIndex]["Ordinal"].ToString(); | |
ResultsRadNumericTextBox.Text = EntrantsResultsData.Table.Rows[DataIndex]["Score"].ToString(); | |
if (Convert.ToInt32(EntrantsResultsData.Table.Rows[DataIndex]["Ordinal"]) < HoleCount) | |
{ | |
TargetControl = "ctl00_Content_EntrantResultsEntry1_EntrantHoleResult" + (Convert.ToInt32(EntrantsResultsData.Table.Rows[DataIndex]["Ordinal"]) + 1).ToString() + "_text"; | |
} | |
else | |
{ | |
TargetControl = btnAddEntrantsScores.ClientID; | |
} | |
ResultsRadNumericTextBox.TabIndex = (Int16)(Convert.ToInt32(EntrantsResultsData.Table.Rows[DataIndex]["Ordinal"]) + 100); | |
ResultsRadNumericTextBox.Attributes["onKeyUp"] = "return SendTab('" + TargetControl + "', this, event);"; | |
ClientIds[DataIndex] = ResultsRadNumericTextBox.ClientID; | |
ResultsRadNumericTextBox.Width = 14; | |
ResultsRadNumericTextBox.MinValue = 1; | |
ResultsRadNumericTextBox.MaxValue = 19; | |
ResultsRadNumericTextBox.MaxLength = 2; | |
ResultsRadNumericTextBox.NumberFormat.DecimalDigits = 0; | |
ResultsRadNumericTextBox.CssClass = EntryNumericTextBoxCellCssClass; | |
ResultsRadNumericTextBox.ShowSpinButtons = false; | |
ResultsCell.Text = ResultsRadNumericTextBox.ClientID; | |
ResultsCell.Controls.Add(ResultsRadNumericTextBox); | |
ResultsRow.Cells.Add(ResultsCell); |