Hi
I set culture property of my RadCalendar to "fa-ir" but when i run the program it will be show in "en-US"
what should i do for resolve it ?
I've found that RadGrid filtering doesn't work when the values have a "<" (less than) character inside of the column. Upon removing the values with the "<" sign, the filters work. Does anyone know a fix or way around this? It seems like an escaping bug.
Thanks,
Jason
Hi,
I have a Form with a RadMenu added to it (using form.Controls.Add (menu), and the menu is configured as :
Dim item As RadMenuItem = New RadMenuItem
item.Name = "Test"
item.Text = "Test"
item.Shortcuts.Add(item:=New RadShortcut(Keys.Alt, Keys.T))
Dim mOption As RadMenuItem = New RadMenuItem
mOption.Name = "Go"
mOption.Text = "Go"
item.Items.Add(value:=mOption)
menu.Items.Add(item)
This correctly displays the menu at the top of the form as "Test ALT + T", but I am expecting the Alt + T keypress to dropdown the menu to show the "Go" option, but this isn't happening.
Am I using this incorrectly?
Actually, the reason I am looking to use ShortCuts in this way is our existing app currently uses the "&" notation to provide keyboard access to the menu, so the example above would be "&Test" and this would correctly dropdown down on ALT + T.
The reason we are looking to move to shortcuts is we have an issue with the menu retaining focus on a non-existing Alt + KEY combo which is causing us problems.
E.g,
If the user types Alt + Z nothing happens, which is correct as there is no ALT + | menu item.
Now if the uses types T without ALT, we would like the T the keypress to be processed by the form and not the menu, unless ALT is pressed again.
We are finding though that the menu is still snagging the T keypress and dropping down the Test menu, which is not what we want.
Is there an alternate approach we can use to avoid this?
Mark
Hi I have all the telerik controls on a form databound like the following
Me.txtTitleDetails.DataBindings.Add(New Binding("Text", bsClient, "title_other"))
where bsClient is a BindingSource. The datasource of bsClient is an on form dataset control of multiple table & I use the first one for the controls on the form.
bsClient.DataSource = dsClientDetails.Tables(0)
Everything works fine when the datasource is loaded and then the controls bound...but if I change the contents of the dataset (with the same table structure but different data) the forms won't repopulate with the new data ???
have tried bsClient.ResetBindings(True/False) and the currencymanager
Dim myCurrencyManager As CurrencyManager = CType(Me.BindingContext(bsClient), CurrencyManager)
myCurrencyManager.Refresh()
but still no luck..I would really like to use the databinding for data validation/change detection....do you have any ideas?
Is it possible to force a cell formatting outside the event for it? EveryWhere i look it's refering us back to CellFormating Event.
I've try multiple option Using the CellFormatting Event that have generating undesired result because of Virtualisation UI.
I've manage to make it refresh on scrolling but the UI slowed down to the point it's not viable anymore.
Basically i am using DragAndDrop from 1 grid to another and then i'm trying to validate if the selected COLUMN match certain criteria.
this is the final step in my project and would gladly need help to find a solution.
private
void
svc_PreviewDragDrop(
object
sender, RadDropEventArgs e)
{
SnapshotDragItem draggedItem = e.DragInstance
as
SnapshotDragItem;
GridHeaderCellElement targetHeaderCell = e.HitTarget
as
GridHeaderCellElement;
if
(draggedItem ==
null
|| targetHeaderCell ==
null
)
{
return
;
}
GridHeaderCellElement sourceHeaderCell = draggedItem.Item
as
GridHeaderCellElement;
if
(sourceHeaderCell !=
null
)
{
e.Handled =
true
;
for
(
int
i = 0; i < gridSource.RowCount; i++)
{
gridTarget.Rows[i].Cells[targetHeaderCell.ColumnIndex].Value = gridSource.Rows[i].Cells[sourceHeaderCell.ColumnIndex].Value;
}
if
(Mycondition(gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].Value.toString(), dataType))
{
gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].style.backcolor = Color.Red
gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].style.Drawfill =
true
;
}
}
}
Hello,
I think I have found a bug in the radgridview behavior:
My radgridview is structured by :
- A Tree with a self reference hierarchy.
- Child templates for some elements in the tree
My code looks like this :
radGridView.Relations.AddSelfReference(radGridView.MasterTemplate,
"CategoryId"
,
"ParentCategoryId"
);
GridViewTemplate childTemplate = CreateChildTemplate();
GridViewRelation relation =
new
GridViewRelation(
this
.radGridView.MasterTemplate, childTemplate);
relation.ChildColumnNames.Add(
"T_RIGHT"
);
radGridView.Relations.Add(relation);
For the CreateChildTemplate(), it looks like this :
GridViewTemplate childTemplate =
new
GridViewTemplate();
childTemplate.AutoGenerateColumns =
false
;
radGridView.Templates.Add(childTemplate);
GridViewDecimalColumn decColumn =
new
GridViewDecimalColumn
{
Name =
"RightId"
,
HeaderText =
"Right Id"
,
FieldName =
"RGT_ID"
,
IsVisible =
false
,
MinWidth = 100
};
childTemplate.Columns.Add(decColumn);
GridViewTextBoxColumn tbxColumn =
new
GridViewTextBoxColumn
{
Name =
"RightName"
,
HeaderText =
"Right Name"
,
FieldName =
"RGT_NAME"
,
ReadOnly =
true
,
MinWidth = 100
};
childTemplate.Columns.Add(tbxColumn);
GridViewCheckBoxColumn chkxColumn =
new
GridViewCheckBoxColumn
{
Name =
"Checkbox"
,
EnableHeaderCheckBox = true,
FieldName =
"HasAccess"
,
};
childTemplate.Columns.Add(chkxColumn);
This tree works fine, as expected.
But when I try to implement the EnableHeaderCheckBox feature, I have an error
'System.NullReferenceException' dans Telerik.WinControls.GridView.dll
But the header checkbox works fine if I comment the line which enables the self referencing :
//radGridView.Relations.AddSelfReference(radGridView.MasterTemplate, "CategoryId", "ParentCategoryId");
Can you reproduce the problem ? What can I do with this behavior ?
Thanks in advance for your help.
I have "x" number of PageViewPage's on my PageView.
I need to be able to hide/show specific PageViewPage objects in code-behind. I am not seeing any way to do this. Basically I just want the "tab" for the page to go away and come back when I dictate.
I can't destroy and then re-show the pages however, because they were built using the designer many years ago and are very elaborate. The current solution and timing required for my project doesn't allow for going back and retooling the UI just so I could put the content of those items built in designer in to separate user controls. So, that idea is out.