Hello!
If I create a simple RadForm with a single RadTextBox, this text box is selected (gets input focus and shows cursor) automatically when the form is shown. If I create a simple RadForm with a RadPageView and place the RadTextBox into the page, it is not selected automatically when the form is shown.
Even the following code does not select the text box:
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
radTextBox1.Focus();
radTextBox1.Select(0, 0);
}
The following workaround does work, but I do not think this is a way I should go:
protected
override
void
OnLoad(EventArgs e)
{
base
.OnLoad(e);
Application.Idle += Application_Idle;
}
void
Application_Idle(
object
sender, EventArgs e)
{
Application.Idle -= Application_Idle;
radTextBox1.Focus();
radTextBox1.Select(0, 0);
}
So, how should I correctly select the text box in the PageView page when the form is shown?
Thank you.
Int64
) , Display column is a Text field: ddb_Broker.ValueMember = dtBrokerList.Columns[0].ColumnName;
ddb_Broker.DisplayMember = dtBrokerList.Columns[1].ColumnName;
ddb_Broker.DataSource = dtBrokerList.DefaultView;
ddb_Broker.SelectedItem = null;
ddb_Broker.SelectedValue = Convert.ToInt64(gl_dtProgram.Rows[0]["in_broker"]);
ddb_Broker.SelectedValue
= null ..... ? WHY ? GridViewDecimalColumn col = new GridViewDecimalColumn();
col.Name = node.Name;
col.FielName = node.Name;
col.HeaderText = friendlyName;
foreach
(XmlNode mapNode
in
mappingXmlDoc.SelectSingeNode(
"Mappings"
))
{
// Maps to GridViewDateTimeColumn
if
(elementPrefix ==
"dt"
)
{
GridViewDateTimeColumn col =
new
GridViewDateTimeColumn();
col.Name = mapNode.Name;
col.FieldName = mapNode.Name;
col.HeaderText = friendlyName;
radGridView1.Columns.Add(col);
}
}
DataSet dsData =
new
DataSet();
dsData.ReadXml(xmlFile);
radGridView.DataSource = dsData.Tables[0];
<
assets
>
<
asset
>
<
tb_Desc
></
tb_Desc
>
<
dt_MoveDate
><
dt_MoveDate
>
</
asset
>
</
assets
>
foreach
(GridViewDataColumn
in
radGridView1.Columns)
{
string[] strArr = col.FieldName.Split(
new
char
[] {
'_'
});
// This way I know its a GridViewDateTimeColumn
if
(strArr[0] ==
"dt"
)
{
((GridViewDateTimeColumn)col).ExcelExportType = DisplayFormatType.Custom;
((GridViewDateTimeColumn)col).ExcelExportFormatString =
"dd.mm.YYYY"
;
((GridViewDateTimeColumn)col).FormatString =
"{0:dd.mm.YYYY}"
;
}
}
Private Sub dockingManager_DockTabChanged(
In this event e.Tab.Text just gives the changed tab text.
Is there any way we can change the text style of all the tabs that are open. Probably some where deep down the object structure. Again any help would be great.
End If