Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views

Requirements

RadControls version

 

.NET version 4

 

Visual Studio version 2012

 

programming language C#

 

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION                                    
I am trying to create a tab in the code behind with contents, I can create tabs fine but don't know how to assign something to it (the content) I can't even figure out how to do it client side, but usually in normal AJAX you would do it like tab.controls.add(control) but in the telerik version it adds the control to the actual tab rather than the content.
Kate
Telerik team
 answered on 23 Oct 2013
1 answer
87 views
Hey all,

I am having trouble getting my DetailTables expansion to work with a RaisePostBackEvent that I use for my OnRowClick event in my RadGrid.

When I have a RaisePostBackEvent in my code behind, my row expansion for my DetailTables does not fire, but if I simply comment out the RaisePostBackEvent code block it works just fine.

Any ideas?  I can't find anything about it anywhere.

Thank you!
Dan
Angel Petrov
Telerik team
 answered on 23 Oct 2013
6 answers
737 views
Hi,

We are having a problem with the RadScheduler.  After creating an Event (it doesn't matter if its just a single or a recurring event...), when you press F5 to refresh the page, another event is created... basically a duplicate of what you just created. 

I wonder if this is a bug or am just missing something (i.e., needs to declare something, etc...).  Below are the step-by-step detail in recreating the issue:

1.  From the Calendar, double click on a date to create an event.  (NOTE:  As I have indicated above, it doesn't matter if its a Single or Recurring event because the results are the same.)  Once the event is created, it will show up on the Calendar. 
2.  Click on the browser's "Page Refresh" button or "F5"... you will notice that a duplicate event is created.

What should we do to prevent this issue from happening?

Thanks for your help.

- Annie
Ema
Top achievements
Rank 1
 answered on 23 Oct 2013
2 answers
202 views
Hello,

I have a RadTreeView and button on the page, RadTreeView is filled programmatically when click on the button. I use NodeTemplate for nodes but after postback template is not used. Could anybody help me?

ASPX
<telerik:RadScriptManager ID="ScriptManager" runat="server" EnableViewState="false"></telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="AjaxManager" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rtvSearchResult" EventName="OnNodeClick">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rtsObjInfo"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rtvSearchResult"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <ClientEvents OnResponseEnd="OnResponseEnd" />
        </telerik:RadAjaxManager>
<telerik:RadTreeView ID="rtvSearchResult" OnNodeClick="rtvSearchResult_NodeClick"
                                                    OnClientMouseOver="onNodeOver" OnClientMouseOut="onNodeOut" runat="server" Height="100%">
<asp:Button ID="btnSearch" OnClick="btnSearchClick" runat="server" />
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>


CodeBehind
public List<common.DOCUMENT_OBJECT_MAP> list;
 
        protected void Page_Load(object sender, EventArgs e)
        {
            list = new List<common.DOCUMENT_OBJECT_MAP>();
            list.Add(new common.DOCUMENT_OBJECT_MAP() { ID = 1, NAME = "Obj1" });
            list.Add(new common.DOCUMENT_OBJECT_MAP() { ID = 2, NAME = "Obj2" });
            list.Add(new common.DOCUMENT_OBJECT_MAP() { ID = 3, NAME = "Obj3" });
        }
protected void btnSearchClick(object sender, EventArgs e)
        {
            rtvSearchResult.Nodes.Clear();
             
            foreach (common.DOCUMENT_OBJECT_MAP obj in list)
            {  
                RadTreeNode newNode = new RadTreeNode();
                newNode.Text = obj.NAME;
                newNode.ToolTip = obj.NAME;
                newNode.Value = obj.ID.ToString();
                newNode.DataItem = obj.ID_LAYER;
                newNode.NodeTemplate = new TreeNodeTemplate(obj);
                 
                RadTreeNode parentNode = rtvSearchResult.FindNodeByValue(obj.ID_FOLDER.ToString());
                if (parentNode != null)
                {
                    parentNode.Nodes.Add(newNode);
                }
                else
                {
                    rtvSearchResult.Nodes.Add(newNode);
                }
            }
            rtvSearchResult.Visible = true;
        }
public class TreeNodeTemplate : ITemplate
    {
        private common.DOCUMENT_OBJECT_MAP _obj;
 
        public TreeNodeTemplate(common.DOCUMENT_OBJECT_MAP obj)
        {
            _obj = obj;
        }
        public void InstantiateIn(Control container)
        {
            Label control = new Label();
            control.ID = "lbn_" + _obj._ID;
            control.ClientIDMode = ClientIDMode.Static;
            control.Text = _obj._NAME;
            container.Controls.Add(control);
             
            Label lbButtons = new Label();
            lbButtons.Text = "<input type='button' value='1'/>";
            lbButtons.ID = "node_" + _obj.ID + "_cmd";
            lbButtons.ClientIDMode = ClientIDMode.Static;
            container.Controls.Add(lbButtons);
        }
    }

Thanks!
nfigueroa
Top achievements
Rank 1
 answered on 23 Oct 2013
1 answer
236 views
I am writing a .NET (VB) web application which is using a page with a control present on it. In the control there is a data entry form with a save function. The save function at the moment saves the data into a SQL Server database and then reloads the form to show the data again.

Due to varying times it takes to save the data, some users are closing down the browser during the saving process, thus it is not always being written to the database. Also sometimes they navigate away from the web application screen to another part of the system that causes the same issue.

What I would ideally like it if a message box was to appear when saving, stating that the application is saving data, and all other controls on the application web page are disabled while it is shown. Then when the saving process is completed the message box automatically disappears. The issue I am aware of is that the majority of the time the save process is nearly instantaneous, so I would need a minimum display time on this message box.

Does anyone have any ideas of the best way forward? And is there a Telerik control I can use to achieve this?

Thanks ever so much!
Danail Vasilev
Telerik team
 answered on 23 Oct 2013
7 answers
224 views
Hi,

Can I check please, if my code below is the correct way to retrieve values from grid controls to use a parameter values in a SQL UPDATE query - as the values do not seem to be getting picked up:

 

 

Private Sub RDHauls_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RDHauls.UpdateCommand

 

 

 

Try

 

 

 

' List of parameter values that need to be passed into the UPDATE SQL query

 

TripCode = RTrim(

 

CStr(ddlTripCode.SelectedItem.Value))

 

 

 

Dim VesselCode As String = CType(e.Item.FindControl("VessReg"), TextBox).Text

 

 

 

Dim HaulNumber As Integer = CType(e.Item.FindControl("HaulNumber"), TextBox).Text

 

 

 

Dim RigNumber As Integer = CType(e.Item.FindControl("RigNumber"), TextBox).Text

Thank you, Ida

 

Ida
Top achievements
Rank 1
 answered on 23 Oct 2013
5 answers
570 views
Whenever I try to F5/preview a site through visual studio, I get:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Unrecognized configuration section system.webServer.

Source Error: 

Line 66:     <httpModules/>
Line 67:   </system.web>
Line 68:   <system.webServer>
Line 69:     <modules runAllManagedModulesForAllRequests="true"/>
Line 70:     <validation validateIntegratedModeConfiguration="false"/>

That section has
'<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <remove name="ChartImage_axd"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>'
If I kill the system.WebServer section, it errors out that it can't find it. So it's looking for it, but it doesn't know what to do with it when it finds it. 

No one else on my team has any problem with this. Any ideas what's wrong?
Daniel
Telerik team
 answered on 23 Oct 2013
5 answers
159 views
Hello all,

link manager dialog displays with radtoolbar reappear above modal overlay when user clicks all properties button on insert link dialog
need to prevent users click any editor tools.
navigated code but I could not find any triggers that.
I am just assuming CSS issues.

Thank you
Ianko
Telerik team
 answered on 23 Oct 2013
2 answers
85 views
Hi,

We are using 2013 ASP.NET Ajax Q2 version. When we click side to the RadAsynUpload control it is hiding top portion of the control's. This issue only If we place control inside a webform with master page. Working fine without masterpage.

Please see the attachment.

Thanks & Regards,
Ramesh
Ramesh
Top achievements
Rank 1
 answered on 23 Oct 2013
3 answers
295 views
How can I set up a RadNumericTextBox to cope with the full range of an int64?

I currently have:
<telerik:RadNumericTextBox ID="RadNumericTextBox1" DataType="System.Int64"
            runat="server" Culture="en-US" EnableSingleInputRendering="True"
            LabelWidth="64px" MaxValue="9223372036854775807" MinValue="0">
<NumberFormat ZeroPattern="n" AllowRounding="False" DecimalDigits="0" GroupSeparator=""></NumberFormat>
        </telerik:RadNumericTextBox>

According to MSDN,the maxvalue of int64 is 9223372036854775807.

It appears to be impossible to configure a RadNumericTextBox to accept and return this number.

If you set DataType="System.Int64" and enter 9223372036854775807, the control changes it to 9223372036854776000.

If you try and read back 9223372036854776000 then .DbValue throws an overflowexception, and .Text returns "9.22337203685478E+18".

Does RadNumericTextBox support int64 or not?

Thanks.

Vasil
Telerik team
 answered on 23 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?