<telerik:RadComboBox ID="cmbLocation" Name="Location" runat="server" DataTextField="Key" DataValueField="Value" TabIndex="18" Width="214"The ComboBox is then simply bound to a List<KeyValuePair<string,int>> datasource in code behind.
OnClientDropDownClosing="OnClientDropDownClosing" MarkFirstMatch="true" AllowCustomText="false">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkLocation" Text='<%# Eval("Key")%>'/>
</ItemTemplate>
</telerik:RadComboBox>
cmbLocation.Items.Insert(0, new RadComboBoxItem(Common.All, "-1"));This works more or less. When I run the app, the ComboBox reads "All". But there is also a blank checkbox in the first position. I don't want that to be there. But I do need to be able to tell if All is selected.
java script error is coming when we are using Telerik Calendar control in a page, and if we use SetFocusOnError="true"
Property.
Moreover we have used the ajax validator extender.
Please refer attachment.
can anyone have idea about any possible solutions?
<telerik:RadComboBox ID="Cbo1" runat="server" CssClass="label" Label="Combox1 :" Skin="WebBlue" OnClientSelectedIndexChanging="LoadCbo2l" OnItemsRequested="Cbo1_ItemsRequested" onclientitemsrequested="ItemsLoaded" ViewStateMode="Enabled" ></telerik:RadComboBox><telerik:RadComboBox ID="Cbo2" Runat="server" CssClass="label" Label= "Combox2 :" Skin="WebBlue" OnItemsRequested="Cbo2_ItemsRequested" OnClientItemsRequested="ItemsLoaded" ViewStateMode="Enabled"> </telerik:RadComboBox><telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript">function LoadCbo2(combo, eventArqs) { var 2ndCombo; var item = eventArqs.get_item(); 2ndCombo.set_text("Loading..."); if (item.get_index() > 0) { Cbo2.requestItems(item.get_value(), false); } else { 2ndCombo.set_text(" "); 2ndCombo.clearItems(); } } </script></telerik:RadCodeBlock> function RadGrid1_RowDataBound(sender, args) { // this works var radTextBox1 = args.get_item().findControl("LastName"); // find control radTextBox1.set_value(args.get_dataItem()["Enabled2"]); // This does not work var MyCheckbox = args.get_item().findControl("CheckBoxEnabled"); // find control }<telerik:GridTemplateColumn HeaderText="Enabled" AllowFiltering="False"> <HeaderStyle Width="40px" /> <ItemStyle Width="40px" /> <ItemTemplate> <!-- Can find this --> <telerik:RadTextBox ID="LastName" runat="server" Width="80px" /> <!-- Cannot find this --> <asp:CheckBox ID="CheckBoxEnabled" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn>
|
column |
Base Currency |
|
|
SGD |
THB |
|
|
USD |
|
|
|
BHD |
|
|
|
HKD |
|
|
|
|
|
|
|
|
|
|
Note: on NeedDataSource event I am setting datagrid.DataSource to the System.Data.DataTable
i dont know if it has to do with the viewstate? i tried to provide as much info as i can, let me know if anything else is required.
------------------------------
[External Code]
System.Web.RegularExpressions.dll!System.Web.Util.CalliHelper.EventArgFunctionCaller(System.IntPtr fp, object o, object t, System.EventArgs e) + 0x10 bytes
System.Web.dll!System.Web.Util.CalliEventHandlerDelegateProxy.Callback(object sender, System.EventArgs e) + 0x22 bytes
System.Web.dll!System.Web.UI.Control.OnLoad(System.EventArgs e) + 0x64 bytes
System.Web.dll!System.Web.UI.Control.LoadRecursive() + 0x30 bytes
System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint = true) + 0x59d bytes
System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint = true) + 0x67 bytes
System.Web.dll!System.Web.UI.Page.ProcessRequest() + 0x57 bytes
System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) + 0x13 bytes
System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) + 0x32 bytes
App_Web_3crb2jk7.dll!ASP.error_error_aspx.ProcessRequest(System.Web.HttpContext context = {System.Web.HttpContext}) + 0x2f bytes C#
System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x167 bytes
System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.CallHandlerExecutionStep}, ref bool completedSynchronously = true) + 0x41 bytes
System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x1b3 bytes
System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) + 0x8e bytes
System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr = {Microsoft.VisualStudio.WebHost.Request}) + 0x1b5 bytes
System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) + 0x62 bytes
System.Web.dll!System.Web.HttpRuntime.ProcessRequest(System.Web.HttpWorkerRequest wr) + 0x38 bytes
WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Request.Process() + 0x113 bytes
WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Microsoft.VisualStudio.WebHost.Connection conn = {System.Runtime.Remoting.Proxies.__TransparentProxy}) + 0x5c bytes
[Appdomain Transition]
WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(object acceptedSocket) + 0x86 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(object state) + 0x1a bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x81 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(System.Threading._ThreadPoolWaitCallback tpWaitCallBack) + 0x50 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(object state) + 0x60 bytes