Imports System.IO Imports System.Dynamic Public Class DynamicDictionary Inherits DynamicObject ' The inner dictionary. Dim mdic_PropertyHolder As New Dictionary(Of String, Object) ' This property returns the number of elements in the inner dictionary. ReadOnly Property Count As Integer Get Return mdic_PropertyHolder.Count End Get End Property ReadOnly Property Items As Dictionary(Of String, Object) Get Return mdic_PropertyHolder End Get End Property Public Function GetMembers() As String() Return mdic_PropertyHolder.Keys.ToArray End Function Public Property Item(ByVal PropertyName As String) As String Get Return mdic_PropertyHolder(PropertyName) End Get Set(ByVal value As String) mdic_PropertyHolder(PropertyName) = value End Set End Property ' If you try to get a value of a property that is not defined in the class, this method is called. Public Overrides Function TryGetMember(ByVal binder As System.Dynamic.GetMemberBinder, ByRef result As Object) As Boolean ' Converting the property name to lowercase ' so that property names become case-insensitive. Dim name As String = binder.Name.ToLower() ' If the property name is found in a dictionary, set the result parameter to the property value and return true. Otherwise, return false. Return mdic_PropertyHolder.TryGetValue(name, result) End Function Public Overrides Function TrySetMember(ByVal binder As System.Dynamic.SetMemberBinder, ByVal value As Object) As Boolean ' Converting the property name to lowercase so that property names become case-insensitive. mdic_PropertyHolder(binder.Name.ToLower()) = value ' You can always add a value to a dictionary, so this method always returns true. Return True End Function End Class<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" GridLines="None" Width="100%" ShowGroupPanel="True" AllowSorting="True" ShowStatusBar="true"> <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false"> <Columns> <telerik:GridTemplateColumn HeaderText="Hopa" > <ItemTemplate> <span style="white-space:nowrap"><%# Container.DataItem.firstname%></span> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderText="FirstName" DataField="FirstName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="MiddleName" DataField="MiddleName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim person As Object Dim List As New ArrayList ' Adding new dynamic properties. ' The TrySetMember method is called. person = New DynamicDictionary() person.FirstName = "Ellen" person.LastName = "Adams" List.Add(person)
person = New DynamicDictionary() person.FirstName = "Piet" person.LastName = "Pietersen" List.Add(person) person = New DynamicDictionary() person.FirstName = "Erik" person.MiddleName = "van der" person.LastName = "Heide" List.Add(person) person = New DynamicDictionary() person.FirstName = "Jan" person.LastName = "Janssen" List.Add(person) RadGrid1.DataSource = List RadGrid1.DataBind() End SubPrivate Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound If TypeOf e.Item Is GridDataItem Then Dim dataBoundItem As GridDataItem = e.Item For Each Member As String In dataBoundItem.DataItem.GetMembers Try dataBoundItem(Member).Text = dataBoundItem.DataItem.Item(Member) Catch ex As Exception ' Oops End Try Next End IfEnd Sub
Hi,
I have a page where I user a RadWindowManager and buttons calling postback functions.
To open my RadWindow, I use this traditional code :
var oWnd = $find("<%= RadWindow.ClientID %>");
oWnd.show();
It work fine until one button is fired and postback is done.
After that postback, $find return null every time.
Does someone have a tips to resolve that issue ?
Thanks,
Corentin


I have two RadListBoxes I am able to drag and drop items between the two without problems, but I have one specific RadlistItem that when I add it to the other listbox I want to remove the existing list items in the code behind, but so far it keeps giving and error like Outside Index or something similar when I try to remove those list Items. Any help or Ideas would be appreciated.
Thanks,

hi,
just like james in this thread, I need to mark certain rows according to a condition.
every time the user opens and watch an idea, the row of the watched idea should be in lightblue.
that for itself works great.
My problem is, that when I click a row it gets lightblue, but then- when I click another row, the previous row change color to white.
How can I keep the condition working for alternating item style too?
that my code :
<telerik:RadGrid Skin="innovation" EnableEmbeddedSkins="false" ID="RadGrid1" dir="rtl" HeaderStyle-ForeColor="White" AllowFilteringByColumn="True" AllowSorting="True" AllowPaging="True" BorderColor="#74ABAE" BackColor="White" BorderWidth="2px" runat="server" HeaderStyle-Font-Size="Small" ItemStyle-Font-Size="Small" AlternatingItemStyle-Font-Size="Small" ItemStyle-BackColor="White" ItemStyle-ForeColor="Black" PageSize="7" AutoGenerateColumns="False" PagerStyle-Font-Size="Small" AlternatingItemStyle-ForeColor="Black" Culture="Hebrew" GridLines="Vertical" Width="666px" style="margin-right: 30px"> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Black"> </HeaderContextMenu> <ItemStyle BackColor="White" Font-Size="Small" ForeColor="Black" /> <PagerStyle mode="NumericPages" ShowPagerText="false"></PagerStyle> <MasterTableView> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <Columns> <telerik:GridBoundColumn CurrentFilterFunction="Contains" DataField="IDEA_CODE" UniqueName="IDEA_CODE" HeaderText="ideanum" AutoPostBackOnFilter="true" DataType="System.Int32"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="LINK" DataField="LINK" HeaderText="" DataType="System.String" Display="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ROWNUM" HeaderText="#" Visible="false" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.Int32"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SENDER_ID" HeaderText="id" UniqueName="SENDER_ID" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FULLNAME" HeaderText="namef" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SUBJECT" HeaderText="sub" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="status" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SEND_DATE" HeaderText="sdate" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}"> </telerik:GridBoundColumn> <telerik:GridImageColumn HeaderText="comments" UniqueName="FBIMG"> </telerik:GridImageColumn> </Columns> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"> </HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <SelectedItemStyle BackColor="LightBlue" /> <HeaderStyle ForeColor="White"></HeaderStyle> <ClientSettings> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowSelected="OpenIdea" /> </ClientSettings> <FilterMenu EnableImageSprites="False"></FilterMenu> </telerik:RadGrid> Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound Try If TypeOf e.Item Is GridDataItem Then Dim item As GridDataItem = CType(e.Item, GridDataItem) Dim idea_code As Integer = CInt(item("IDEA_CODE").Text) If (StoredProcedures.Is_Watched_Idea(idea_code, userID) = True) Then 'if the ideas was watched then item.BackColor = Drawing.Color.LightBlue 'color the row End If…. End sub How can I disable RadDropDownTree node based on nodeid?
I want to disable the first and second node in the tree based on the database nodeid 1 and 2

<telerik:RadGrid ID="RelatedProductsGrid" runat="server" Width="95%" ShowStatusBar="true" AutoGenerateColumns="False" PageSize="20" AllowSorting="False" AllowMultiRowSelection="False" AllowPaging="True"> <pagerstyle mode="NextPrevAndNumeric"></pagerstyle> <mastertableview width="100%" datakeynames="PartId" allowmulticolumnsorting="False"> <DetailTables> <telerik:GridTableView DataKeyNames="PartId" Name="RelatedProducts" Width="100%"> <Columns><telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"> <ItemTemplate> <telerik:RadButton ID="RemoveRelatedProductButton" runat="server" CommandName="Delete"> </telerik:RadButton> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </telerik:GridTableView> </DetailTables>When I upgrade an existing project to a newer version the Upgrade Wizard Log shows success but I get this error:
https://drive.google.com/open?id=1l1KqfmqRnsCgWJ5O5LeBDCH_fpjDoiRr
Also if I bring up the Launch Toolbox Configurator and then click "Finish" button, I get the same error.
I do NOT run VS 2015 "As Admin" for many reason I don't want to get into, so please don't suggest that ;)
Cheers, Rob.

