// Javascriptfunction closeRadWindow() { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();}
function openWin() {
var oWnd = radopen("/TestDevelopment/Controls/CopyrightHolder.aspx", "winCopyright");
}
// RadAjaxManager and RadWindow declaractions <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" DefaultLoadingPanelID="RadAjaxLoadingPanel1" onajaxrequest="RadAjaxManager1_AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadListView1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="cboHolder" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadWindowManager> <Windows> <telerik:RadWindow ID="winCopyright" Modal="true" Behaviors="Close, Move" NavigateUrl="/TestDevelopment/Controls/CopyrightHolder.aspx" runat="server" Width="870px" Height="515px" OnClientClose="closeRadWindow"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>// Button<input type="button" id="btnHolder" runat="server" value="Holder" onclick="openWin(); return false;" />Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Dim cb As RadComboBox = DirectCast(RadListView1.FindControl("cboHolder"), RadComboBox) cb.DataBind()End Sub
Here is the html syntax of the pasted text (To RadEditor):
<p><span style="font-family: calibri;">2) <span style="color: #000000; font-size: 11pt;"><strong><span style="color: #ff0000; text-decoration: underline;">ssdfsdfsxcvx vsvs sdfsfdsdf sdf sdf</span></strong></span><span style="font-family: calibri; color: #ff0000; font-size: 11pt;"><strong><span style="text-decoration: underline;">.<br /> </span></strong></span></span><span style="font-family: calibri; color: #366092; text-decoration: underline;"><br /> <strong>xxcv xcvxcv x cxvr r er er er er er erg .</strong></span><span style="font-family: calibri;"><br /> <span style="color: #366092;"><strong><span style="text-decoration: underline;">g dfgdfg dfg dfg df trrterertergt ergt.</span></strong></span><span style="color: #366092;"><strong><span style="text-decoration: underline;"><br /> </span></strong></span></span><b><span style="font-family: calibri; color: #000000;">How to do that?</span></b></p> <ul> <li><span style="color: #000000;"><span style="color: #000000; font-size: 11pt;">gdfgdfg df </span>.</span> </li> <li><span style="font-family: calibri; color: #000000; font-size: 11pt;">dfgdfg dfg dfg dg .</span> </li> <li><span style="font-family: calibri;">sfsdfsdfsdfsdfsdf</span> </li> <li><span style="font-family: calibri; color: #000000; font-size: 11pt;"><span style="color: #000000; font-size: 11pt;">dfsdfsdfmstscsdf type sdfsdf</span><strong>.</strong></span> </li> <li><span style="color: #000000; font-size: 11pt;">sdgcbvxcvxcv</span> </li> <li><span style="color: #000000; font-size: 11pt;"><strong>sdfvxcvx wer werwerwerwer</strong></span> </li> </ul> <span style="color: #000000; font-size: 11pt;"> <p class="Description" style="margin: 5.25pt 0in;"><span style="font-family: calibri;"><strong><span style="color: #366092; text-decoration: underline;">sdfs sdf sdfsdf sdf sdf.</span></strong><br /> </span><span style="font-family: calibri;"><span style="color: #366092;"><strong><span style="text-decoration: underline;">xcvxv fwfwef wef wef wef.</span></strong><br /> </span><span style="color: #000000;"><strong>How to do that?</strong> <ul> <li><span style="color: #000000; font-size: 11pt;">sdf sdf sfv sd fsd sdf fvsd fsdfsdf.</span> </li> <li><span style="color: #000000; font-size: 11pt;">sdf fsdf sdf wrwer wer </span></li> </ul> </span> <ul> <li></li> </ul> </span></p> <p> </p> <ul> <li></li> </ul> <p><span style="color: #000000; font-size: 11pt;"><span style="font-family: calibri;">3) <span style="color: #000000; font-size: 11pt;"><strong><span style="color: #ff0000; text-decoration: underline;">wer wer wer werwefr wfe.</span></strong></span><span style="font-family: calibri; color: #ff0000; font-size: 11pt;"><strong><span style="text-decoration: underline;"><br /> </span></strong></span></span><span style="font-family: calibri; color: #366092; text-decoration: underline;"><br /> <strong>sdf sdfs fsd svf xvxcv xcvxcv.</strong></span><span style="font-family: calibri;"><br /> <span style="color: #366092;"><strong><span style="text-decoration: underline;">sdf sdfsdf sdfs df.</span></strong></span><span style="color: #366092;"><strong><span style="text-decoration: underline;"><br /> </span></strong></span></span><b><span style="font-family: calibri; color: #000000;">How to do that?</span></b> <p> </p> <ul> <li><span style="font-family: calibri; color: #000000; font-size: 11pt;">sdf sdf sdf sdf sdf ).</span> </li> <li><span style="font-family: calibri;">xcvxcvx xcvsg yhrn</span> </li> <li><span style="font-family: calibri; color: #000000; font-size: 11pt;"><span style="color: #000000; font-size: 11pt;">xcvxcvxcvxcv</span><strong>.</strong></span> </li> </ul> <span style="color: #000000; font-size: 11pt;"> <p><span style="font-family: calibri;"><strong><span style="color: #366092; text-decoration: underline;">xcvcv ghf fgh rty ty rty rt .</span></strong><br /> </span><span style="font-family: calibri;"><span style="color: #366092;"><strong><span style="text-decoration: underline;"> w twer wer wer wer wer<br /> </span></strong></span><span style="color: #000000;"><strong>How to do that?</strong> <ul> <li><span style="font-family: calibri; color: #000000; font-size: 11pt;"><span style="color: #000000; font-size: 11pt;">wer wefvgfgv dfg dfg gfdf dfg</span><strong>.</strong></span> </li> </ul> </span> <ul> <li></li> </ul> </span></p> <p> </p> <ul> <li></li> </ul> </span> <ul> <li></li> </ul> </span></p> <p> </p> <ul> <li></li> </ul> <p> </p> </span>
<style type="text/css">
.RadMenu_Black a.rmLink:hover {
color:#F0CD5B!important;
}
I am looking for a solution for the following requirements/sceario.
I have factory object (like User Factory) which generate a binding list of business objects (like User). Each business object can store dynamic list of its attributes (in one case it might contains only 3 attributes and in another case it might contains 10 attributes. The attributes and their values are stored in Dictionary(of String, Object) and are exposed via single property called Field(columnname), where columnname is the dictionary key to access its value. The business object implements ICustomTypedProperty interface
I wish to bind the list of objects to a RadGrid, I know that binding is impossible since I cannot bind GridColumn to the Field property with a parameter. I believe that the right solution is to inherit the RadGrid control and the GridBoundColumn control, but I don't know how and when (which event to use) to bind cell value using the GetValue/SetValue methods (of the ICustomTypedProperty interface)
I will appreciate if you can provide me with an example (in VB) that works.
Avidan