Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
I'm trying to use a RadTextBox.

I've got code like this in the Page_Load event handler:

 

 

if (!IsPostBack)

 

{

    RadTextBox1.Text = "1";
}


This correctly sets the value of the text box control.  However, if I type something else into it on my web page, when I read the value of the text box by looking at the Text property in an event handler from an OnClick event on an ImageButton I get the original value that was set, not the value I have typed into the text box.

If I replace it with a standard ASP.NET text box, it works as expected, and I can read the value I have typed. This also only seems to happen on one of my pages.  I've got another similar page that uses a RadTextBox and works. 

Is there anything that might cause this issue?

Kind Regards, Richard
James Campbell
Top achievements
Rank 1
 answered on 14 Nov 2011
1 answer
159 views
Hello,

I have used rad grid with insert , update option using edit form template.While Add/Edit time Depending on Radio Button Selection I need to Enable , Disable Validation. Insert , Update option works perfect when validation are enable but when i am selecting option which is disabling my validation then by clicking on Insert , Update button my insertcommand and updatecommand are not working. By clicking on insert or update button it direct comes to itemcommand event not on insert or update command.

Any Idea why rad grid insert , update command not working after disabling validation?

 
Tsvetina
Telerik team
 answered on 14 Nov 2011
3 answers
211 views
How to disable all items of ToolBar in client side include separators, templates and buttons ets?

Thanks.
Kate
Telerik team
 answered on 14 Nov 2011
1 answer
96 views
Hi there, 

I am experiencing some difficulties implementing ajax across multiple controls. 

Here is my scenario:

  • Dashboard ASPX page
  • Timer
  • Statistics ASCX control
  •   Rad chart
  •       Combobox
  • Logs ASCX control
  •   Datagrid
  •     Checkbox
  • etc..

now... during the timer tick in the aspx page , i want to update ONLY the Rad chart from the statistics control and the datagrid in the logs control.

I have tried multiple things with the result of either a total page refresh or chart and datagrid not being updated.

Any help would be appreciated.

Thanks 

K
Iana Tsolova
Telerik team
 answered on 14 Nov 2011
3 answers
310 views
Hi,

I am new to using Ajax and need some help in the following scenario. I have a 'Add' button and a grid with 'Edit' button column inside a radajaxpanel.I need a modal pop to open when the Add or Edit buttons are clicked to add/update records to the grid. Can someone please help with an example? The Master page has the following code. I suppose another Script Manager is not required on my page then.

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Outer.master.cs" Inherits="WebApp.Outer" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
    <script src="Scripts/jquery.1.5.2.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div id="divHeader">
        <h1>
            PROJECT TITLE</h1>
    </div>
    <div id="divCommonInfo">
        <span>
            <div id="divLoginStatus">
                <asp:LoginStatus ID="LoginStatus1" runat="server" />
            </div>
        </span>
    </div>
    <div id="content_wrapper">
        <!--Start Content Wrapper-->
        <div id="divMenu">
            <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="SiteMapDataSource1" OnPreRender="RadMenu1_PreRender">
            </telerik:RadMenu>
        </div>
        <div id="divBreadCrumb">
            <asp:SiteMapPath ID="SiteMapPath1" runat="server">
            </asp:SiteMapPath>
        </div>
        <br />
        <div id="content">
            <div>
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </div>
        </div>
        <div id="footer">
            <small>Copyright ©</small>
        </div>
    </div>
    <!--End Content Wrapper-->
    </form>
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
</body>
</html>
The code for the page is below. I need the section to have a modal popup open when the 'Add Customer' button or the 'Edit' column button is clicked.

<%@ Page Title="" Language="C#" MasterPageFile="~/Outer.Master" AutoEventWireup="true"
    CodeBehind="Customers.aspx.cs" Inherits="WebApp.Maintenance.Customers" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Customers</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxLoadingPanel ID="loadingPanel1" runat="server" />
    <telerik:RadAjaxPanel ID="pnlMain" runat="server" EnableAJAX="true" LoadingPanelID="loadingPanel1">
        <div id="divMessage" style="height: 20px; width: 100%; font-weight: bold">
            <asp:Label ID="lblMessage" runat="server" EnableViewState="false"></asp:Label>
        </div>
        <h2>
            Customers</h2>
        <telerik:RadButton ID="btnAddCustomer" runat="server" Text="Add Customer">
        </telerik:RadButton>
        <telerik:RadGrid ID="rgCustomers" runat="server" DataSourceID="dsCustomers" AutoGenerateColumns="False"
            CellSpacing="0" GridLines="None" OnDeleteCommand="rgCustomers_OnDeleteCommand"
            OnEditCommand="rgCustomers_OnEditCommand" OnItemDataBound="rgCustomers_ItemDataBound">
            <MasterTableView DataKeyNames="CustomerID" DataSourceID="dsCustomers" CommandItemDisplay="Top">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Edit.gif" CommandName="Edit"
                        ShowFilterIcon="false" UniqueName="Edit" HeaderStyle-Width="30" />
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" UniqueName="Delete"
                        ShowFilterIcon="false" ImageUrl="~/Images/Delete.gif" Text="Delete" ConfirmText="Are you sure you want to delete this customer?"
                        HeaderStyle-Width="30" />
                    <telerik:GridBoundColumn DataField="CustomerID" DataType="System.Int32" FilterControlAltText="Filter CustomerID column"
                        HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" FilterControlAltText="Filter CompanyName column"
                        HeaderText="Company Name" SortExpression="CompanyName" UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyReference" FilterControlAltText="Filter CompanyReference column"
                        HeaderText="Company Reference" SortExpression="CompanyReference" UniqueName="CompanyReference">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Contact" UniqueName="Contact" SortExpression="Contact"
                        FilterControlAltText="Filter Contact column">
                        <ItemTemplate>
                            <%# Eval("ContactFirstName") %>
                            <%# Eval("ContactLastName") %></ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column"
                        HeaderText="Email" SortExpression="Email" UniqueName="Email">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="Is Active" SortExpression="IsActive"
                        UniqueName="IsActive" ShowFilterIcon="false">
                    </telerik:GridCheckBoxColumn>
                </Columns>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="dsCustomers" runat="server" ConnectionString="<%$ ConnectionStrings:RoomBookerConnectionString %>"
            SelectCommand="SELECT Customer.* FROM Customer ORDER BY CompanyName"></asp:SqlDataSource>
    </telerik:RadAjaxPanel>
  
    <!-- Add /  Edit Pop-up -->
  
</asp:Content>
Tsvetina
Telerik team
 answered on 14 Nov 2011
1 answer
82 views
Hi friends ,
i am using RadScheduler to show the appointments.I have given the value VisibleAppointmentsPerDay="3".When i have more than 3 appointments.i am getting show more link button.If i click on that button it's showing day view.
i have written OnClientTimeSlotClick="TimeslotClick" event which will display the appointments in RadWindow.TimeslotClick event is working only when i click otherthar more button

My requirement is when i click on more button then also i have fire OnClientTimeSlotClick="TimeslotClick".
How can i implement this....?


This my function in Javascript

 function TimeslotClick(sender, eventArgs) {
          
            ViewMenuDetailsDialog(eventArgs._time.format("MM/dd/yyyy"));

        }

ViewMenuDetailsDialog in this function i have displayed all the appointments in RadWindow


Thanks
Anwar
Plamen
Telerik team
 answered on 14 Nov 2011
2 answers
98 views
Hello there.
Am trying your product and so far its been amazing.
Am more a web developer than a web designer and i liked very much your demo site.
I would like to know how i could duplicate / reuse the layout used there
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Nov 2011
1 answer
109 views

Hello,
after installing the Hot Fix for Microsoft Knowledge Base article number(s) 2553048 for Sharepoint 2010 SP1 i receive this error on default page.

Webpage error details

Message: ASP.NET Ajax client-side framework failed to load.
Line: 196
Char: 34
Code: 0
URI: http://srv-sp2010:30000/Pagine/default.aspx

Message: 'Sys' is undefined
Line: 223
Char: 1
Code: 0
URI: http://srv-sp2010:30000/Pagine/default.aspx

Message: 'Sys' is undefined
Line: 1371
Char: 1
Code: 0
URI: http://srv-sp2010:30000/Pagine/default.aspx

Message: 'Type' is undefined
Line: 2
Char: 1
Code: 0
URI: http://srv-sp2010:30000/_layouts/sp.core.debug.js?rev=Qp5K7ycU%2FEY9IvE0KOi7zQ%3D%3D

Message: Object doesn't support this property or method
Line: 5
Char: 3
Code: 0
URI: http://srv-sp2010:30000/_layouts/cui.debug.js?rev=%2BhQl2NTQMTydPivdG%2Bq%2FdA%3D%3D

I use in my master page:
<telerik:RadScriptManager ID="ScriptManager"  runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true"/>
 if i change with scriptmanager i don't have error.
<asp:ScriptManager ID="ScriptManager"  runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true"/>

I use Telerik version 2010.1.309.35

Thanks.

Marin
Telerik team
 answered on 14 Nov 2011
1 answer
110 views
I have a grid where I display records from a parent table.
When I edit the item I want to display a list of the parents child objects. I can do that easily by hooking in the itemdatabound and populating a listbox.
What I then want to do is allow people to add items and for the in form edit in the grid to save the child items as well as the parent.

Do I have to resort to a completely custom update and insert code or can I use some of the automatic updating and inserting functionality.
Veli
Telerik team
 answered on 14 Nov 2011
3 answers
89 views

         Hi i am using External Edit in RadDock for custom pop up. But i am facing one problem here, RadSchedulerRecurrenceEditor is not working properly i.,e calendar pop up is not showing at  "End by" option in IE,Mozilla and chrome too. For understanding purpose please look into your live demo link http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx . Kindly help me out from this problem ASAP, i am facing the same since 20days. For your easy understanding i am attaching the screen shot with red cross mark.

Thanks
Maddela.
Kate
Telerik team
 answered on 14 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?