Hi
i have a radtreeview with checkbox that fill with this table
ChildID ChildName ParentID ParentName
1 a
2 b 1 a
3 c 2 b
trwFormName.DisplayMember = "ChildName";
trwFormName.ParentMember = "ParentID";
trwFormName.ChildMember = "ChildID";
i take all node that checked by this code:
foreach (var node in trwFormName.TreeViewElement.GetNodes())
{
if (node.Checked)
{
var t = node.Value;
}
}
but i cant get node id . value is name and not id
please help me
Let me tell you what I need first. I need the ability for the users to Un-Select an item in a DropDownList where the DropDownStyle = RadDropDownStyle.DropDownList. Programmatically, this is pretty easy, I can just do this in code SelectedIndex = -1. Now, that I know I can do this to un-select an item in the dropdownlist, next, I need to give the users the ability to also do this. My thought was to create a right click context menu that if there was a selected item, to give the user a prompt to clear the selection. I can't seem to get this to work. If there is a simpler way to do this, I would like an example. These dropdown lists are used for reporting, it would suck to have to tell the user to exit the form and reload it just to remove un-select an item in a dropdownlist.
Any help and/or ideas would be gratefully appreciated.
Thanks
Hi
I have been using the code from https://www.telerik.com/support/kb/winforms/editors/details/changing-the-text-color-of-a-disabled-radtextbox for years now with success until I discovered that it doesn't work well with MultiLine textboxes.
Is there another way (I am using the latest bits) to achieve that behavior (changing the backcolor of disabled control) that would work with multiline textboxes?
Hi,
expanding the second hierarchy becomes really slow if there are more than 500 items.
Sample is attached. If you expand the second Level ("Expand me!") on the left grid it takes 4-5 seconds to expand (for 1500 rows) if you do the same on the right side it is expanded instantaneously. Same data ...
Is there any reason why it's so slow?
Kind regards,
Christian
Hi Admin,
I would like to know can I add 'Pin' in SplitContainer winform? Because I want to hide SplitPanel1 like 'Pin' Function.
Thanks
Moe
I would like to be able to load data into the grid and then add the GridViewComboBoxColumn to an existing column and have the column display the display member for all rows of existing data. We load many different sets of data into one grid and want to use auto generate as it takes care of most of the database fields. This would leave having to only assign the drop down fields.
We do not want to manually define each set of columns for every set of data as we have hundreds of queries we use. This is something I am able to do with other vendor's products and need to be able to do with Telerik's grid.
Thanks!
Hello,
My gridview bounds with two data collections. One collection bounds to the master template, the other bounds to the template in the master template.
I've found the memory leak during the hierarchy templates refresh.
I made a simple demo. Please download it from:
https://www.dropbox.com/s/btzb5go8e4bnrmk/RefreshHierarchy.rar?dl=0
In the demo, there are two data collections. If I refresh 50 elements in each collections, the memory will leak very fast. Please see the memory diagnosis trace in the attached photos.
If I collapse all hierarchy template, only refresh the master template, the memory maintains well.
Thank you by advanced for your support.
Regards,
Hi Team!
Is their a way on how to used the SpellCheckUppercaseWords and SpellCheckWordsWithNumbers property under the namespace Telerik.WinForms.Documents.Proofing while I am using Telerik.WinControls.RichTextBox.Proofing for loading the spell check custom library. As i tried WinControls.RichTextBox.Proofing does not contains a member of DocumentSpellChecker.Settings so therefore I cannot use this way of using the property DocumentSpellChecker.Settings.SpellCheckUppercaseWords = True for allowing uppercase spell check. See below part of my code.
//Setting up spell check.
Friend Shared SpellCheckCulture As CultureInfo = CultureInfo.GetCultureInfo("en-GB")
Dim textBoxControlSpellChecker As IControlSpellChecker = Me.RadSpellCheck.GetControlSpellChecker(GetType(TextBox))
Dim documentSpellChecker As DocumentSpellChecker = TryCast(textBoxControlSpellChecker.SpellChecker, DocumentSpellChecker)
documentSpellChecker.Settings.SpellCheckUppercaseWords = True //This part will got an error if I import Telerik.WinControls.RichTextBox.Proofing
documentSpellChecker.AddDictionary(New SpellCheckDictionary(), SpellCheckCulture)
documentSpellChecker.SpellCheckingCulture = SpellCheckCulture
//Loading of Custom Library using Telerik.WinControls.RichTextBox.Proofing
Public Class SpellCheckDictionary
Inherits WordDictionary
Protected Overrides Sub EnsureDictionaryLoadedOverride()
Try
Using ms As MemoryStream = New MemoryStream(File.ReadAllBytes("en-GB.tdf"))
Me.Load(ms)
End Using
Catch ex As Exception
Glenfield.Common.HandleError(ex)
End Try
End Sub
End Class