Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
57 views
Hi all,
Please advise.
After selected 1stCombo, then bind 2ndCombo base on 1stCombo selected value & text.
Thant's why I need to send both selectedText & Value from ClientScript at ClientSelectedIndexChange.

My code is as below
<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>

With this I only get selected value at Cbo2_ItemsRequested event, when I try to get with  Cbo1.SelectedItem.Text  directly, the text I selected is not yet there.
How can I get both, please?

Thanks and best regards
Naunton
Top achievements
Rank 1
 answered on 19 Jan 2011
1 answer
180 views
I can't find ASP.NET Checkbox in Radgrid row with Client side Javascript in the RowDatabound event.  I would think this would be simple to do. I must be doing something silly.

I am able to find a Telerik control but not a ASP.NET control
       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
}

Here is the grid code

<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>


Thanks

 

 

 

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
59 views
Hi,

I want to add row
 
header and column header on grid. Please let me know what is the better way

 column

Base Currency

SGD

THB

USD

 

 

BHD

 

 

HKD

 

 

 

 

 

 

 

 


Column types demo table no  border

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
98 views
Hi.

Is there a way to make a custom command show a context menu?
Just as if the command icon was the root level of a dropdown menu.

Thank you
/Jesper
Jesper Krejberg Petersen
Top achievements
Rank 2
 answered on 18 Jan 2011
4 answers
169 views
Telerik.Web.UI : runtime = v2.0.50727, ver = 2008.2.723.20

Error when removing column from grid.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
 

Process I am going through:

1. user selects add column on the page
2. Post back, add column to datasource
3. rebind grid
    (grab data from datasource, clear columns from grid, add all current columns)
4. user selects delete column
5. confirm delete
6. postback, delete column from datasource
7. rebind grid
    (grab data from datasource, clear columns from grid, add all current columns)

This works if all of this is done continuously. However, if I navigate off of this page at before step 4 and return to the page and continue, then I receive the error above.

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 


Srinivas
Top achievements
Rank 1
 answered on 18 Jan 2011
6 answers
240 views
Hello everybody.
I can't succed in find anything with $find('objectID') method.
I'm using a webapp structure consisting of one page that loads dynamically a couple of UserControls implementing various functions.
On the other hand document.getElementById('objectID') give me back the object, so I'm pretty sure the objectID is correct.
Any idea?

Thanks in advance

Andrea

Adham Shaaban
Top achievements
Rank 1
 answered on 18 Jan 2011
7 answers
315 views
Hello

I wonder if there is an easy way to get a radwindow confirmation on a RadButton like there is on RadGrid's GridButtonColumn.

Regards
Mihai
Jonx
Top achievements
Rank 2
 answered on 18 Jan 2011
2 answers
67 views
Hi, I just upgraded my controls in my working DNN 5.6 project from 2010.3.1215.35 to 2010.3.1317.35.  After the upgrade the SelectedItems collection is always empty.  I have a grid control and respond to NeedDataSource.  The data displays properly and I can select a few rows after which I enter a button event handler where I retrieve the selected items.  Inspection of the control shows the data source is null, however, a 2nd request for data is never issued by the control.  After doing nothing in the button's event handler the page is displayed with the original data.

Telerik.Web.UI is not in the GAC

The proper dll version is in the DNN\bin folder

I cleared all Telerik.Web.UI dlls from C:\Windows\Microsoft.NET

I have a updated the binding redirect:
        <bindingRedirect oldVersion="2010.2.929.35" newVersion="2010.3.1317.35" xmlns="urn:schemas-microsoft-com:asm.v1" />

This was working perfectly before the upgrade.  Any ideas as to what happened and how to fix it?

Ed
Top achievements
Rank 1
 answered on 18 Jan 2011
5 answers
238 views
I'm running Dot Net Nuke 5.6, VS 2010 and Telerik 2010.3 and have a catch 22.  It seems that I have multiple web.config files and maybe some conflicts.

I have the Telerik tag defined in my web.config located in the virtual directory of my site.

To use a Telerik control on my page in the VS 2010 designer I need to have a web.config file local to the project that defines the Telerik tag:

<configuration>
  <system.web>

    <pages>

    <controls>

      <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>


Without it I get the error:

Error Creating Control - radGridCustomerPoolThis control cannot be displayed because its TagPrefix is not registered in this Web Form.

However, with a local web.config in the project folder I get the following error on my page in a browser outside the VS environment.

DotNetNuke.Services.Exceptions.ModuleLoadException: It is an error to use a section registered as allowDefinition='MachineToApplication'  beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Why isn't VS picking up the tag definition in the virtual directory?

Any ideas?
Ed
Top achievements
Rank 1
 answered on 18 Jan 2011
1 answer
47 views
I am trying to set the content and I am getting a ReadFile error. BC30451: 'ReadFile' is not declared. It may be inaccessible due to its protection level.
On a different page, the code works. But whenever I create a new page, it will not allow me to enter the code. I dont know what is going on.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
        Dim temp As String = Request.QueryString("temp")
        Dim path As String = Server.MapPath("~") & "/Admin/Templates/Template" & temp & ".htm"
        RadEditor1.Content = ReadFile(path)
    End If
End Sub

Please help.
Chad Canterbury
Top achievements
Rank 1
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?