Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
I'm using the TIMELINE view to display a business week's worth of appointments.  Users can double click on a day to add a new "appointment" - but I'd like them to be able to click the header for a specific day and go to a (custom) view for the day's appointments.  Is there any way to make the timeslot header a link/linkbutton?  I do this fine from the MONTH view by intercepting the NAV client side event and  checking the command.

Thanks,
Bill
Boyan Dimitrov
Telerik team
 answered on 04 Jun 2013
2 answers
56 views
Please forgive me if I am wrong, but it appears that this demo is missing code for the "Add new record" and "Refresh" link buttons.

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

Can you please advise?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 04 Jun 2013
1 answer
222 views
Hello,

I have a radhtmlchart created dynamically like the programmic chart created demo. I also use ajax manager and asp panel to async update it every minute (asp timer). However when it's refreshing, the chart is blink once. i.e. the old chart disappears, only leaves grids there, then the new chart is loaded. It is a monitoring chart, I got a very good animation effect when I use radchart async update, exactly like the cpu monitoring in windows task manager. Is there a way I can get the same effect when using radhtmlchart?
Stamo Gochev
Telerik team
 answered on 04 Jun 2013
2 answers
107 views

Hi All,
I am trying to use RadGrid in a user control in sharepoint 2007 project. But when the grid is loaded, it generates a javascript error stating "Object Required, Line1 Char1".

When i click on edit button to edit my grid row, the control does not enter radGrid_ItemDataBound method. and hence the grid does not appear in edit mode. But it does execute radGrid_ItemCommand method. Only after clicking a button that causes postback event, the edit mode gridrow appears but without any data.

I am using a master page for the usercontrol
Following is the code
Master page code:

<%@ Register Assembly="Telerik.Web.UI, Version=****.*.****.**, Culture=neutral, PublicKeyToken=********"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

I have added RadAjaxManager in the master page.

<telerik:RadAjaxManager ID="AjaxManager1" runat="server"></telerik:RadAjaxManager>
UserControl.ascx
<%@ Register Assembly="Telerik.Web.UI, Version=****.*.****.**, Culture=neutral, PublicKeyToken=*********"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
……………………..
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Windows7"
    MinDisplayTime="30" />
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgReportEditor">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgReportEditor" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
  
<table>
.....
.....
     <telerik:RadGrid ID="rgReportEditor" Skin="Windows7" GridLines="None" ItemStyle-BackColor="White"
                AlternatingItemStyle-BackColor="#EFEFEF" runat="server" AutoGenerateColumns="False"
                SelectedItemStyle-BackColor="blue" OnUpdateCommand="rgReportEditor_UpdateCommand"
                OnItemCommand="rgReportEditor_ItemCommand" OnEditCommand="rgReportEditor_EditCommand"
                OnItemDataBound="rgReportEditor_ItemDataBound">
                <MasterTableView InsertItemDisplay="Bottom" HorizontalAlign="NotSet" EditMode="InPlace"
                    TableLayout="Fixed" Frame="Border">
                    <HeaderStyle Font-Bold="true" BackColor="#BDBDBD" ForeColor="Black" />
                    <PagerStyle AlwaysVisible="true" />
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
                            <ItemStyle CssClass="MyImageButton" Width="7%" />
                            <HeaderStyle Width="7%" />
                        </telerik:GridEditCommandColumn>
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Testing column">
                            <ItemStyle Width="17%" />
                            <HeaderStyle Width="17%" />
                            <ItemTemplate>
                                <asp:Label ID="lblValue" runat="server"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <%-- <telerik:RadComboBox ID="cboReportEditorColumn" Width="100%" runat="server" Skin="Office2007">
                                    </telerik:RadComboBox>--%>
                                <asp:DropDownList ID="ddlValue" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <%-- <telerik:GridButtonColumn ConfirmText="Delete this entry?" ConfirmDialogType="RadWindow"
                                ConfirmTitle="Attention" ConfirmDialogHeight="100" ConfirmDialogWidth="250" ButtonType="ImageButton"
                                CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" CommandArgument="Code">
                                <ItemStyle CssClass="MyImageButton" Width="3%" />
                                <HeaderStyle Width="3%" />
                            </telerik:GridButtonColumn>--%>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowColumnHide="True">
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    <Resizing AllowColumnResize="True" EnableRealTimeResize="false" />
                </ClientSettings>
            </telerik:RadGrid>
  
.........
</table>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>

UserControl.ascx.cs

protected void Page_Load(object sender, EventArgs e)
        {
  
                RadAjaxManager objRadAJAXManager = RadAjaxManager.GetCurrent(Page);
                objRadAJAXManager.ClientEvents.OnRequestStart = "onRequestStart";
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgReportEditor, rgReportEditor, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgReportEditor, RadWindowManager1, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgReportEditor, lblErrorYAxis);
  
    .................................................................
    .................................................................
    .................................................................
     }

Please  suggest how to make the grid work in edit mode.

Thanks,
Satbir










Satbir
Top achievements
Rank 1
 answered on 04 Jun 2013
1 answer
70 views
Hi,

I am new to Telerik and Sitefinity. I created a custom navigation widget below:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CresNavigation.ascx.cs" Inherits="SitefinityWebApp.Widgets.CresNavigation" %>
<telerik:RadMenu ID="cresRadMenu" runat="server" Skin="CrescentTopNav" EnableEmbeddedSkins="false">
    <DefaultGroupSettings RepeatColumns="7" RepeatDirection="Horizontal"/>
    <Items>
        <telerik:RadMenuItem Text="Operate" NavigateUrl="../operate">
            <Items>
                <telerik:RadMenuItem>
                    <ItemTemplate>
                        <table width="100%">
                            <tr>
                                <td valign="top" rowspan="2">
                                    <asp:Panel ID="panelInfo" runat="server" Width="300">
                                        <asp:Label ID="litInvestInfo" runat="server" Text="We have high-quality products."></asp:Label>
                                        <br />
                                        <br />
                                        <asp:ImageButton ID="imgInvestInfo" runat="server" ImageUrl="Images/icon_read_more.jpg" />
                                    </asp:Panel>                                
                                </td>
                                <td valign="top">
                                    <table width="100px">
                                        <tr>
                                            <td align="center">
                                                <asp:ImageButton ID="imgBtnNews" runat="server" ImageUrl="~/Widgets/Images/icon_areas.jpg" onmouseover="this.src='Widgets/Images/icon_areas_hover.jpg'" onmouseout="this.src='Widgets/Images/icon_areas.jpg'" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <asp:HyperLink ID="HyperLink2" runat="server" Text="Areas" CssClass="itemTitle"></asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>                                                                
                                </td>
                            </tr>
                        </table>

                    </ItemTemplate>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>


I've added this widget to Sitefinity and I am able to use it inside a page. I would to add the ability to change the text and image from within Sitefinity. I understand I need to create control designer but I am having difficulty implementing it. 


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Sitefinity.Web.UI.ControlDesign;
using Telerik.Web.UI;

namespace SitefinityWebApp.Widgets
{
    [ControlDesigner(typeof(CresNavigationDesigner))]
    public partial class CresNavigation : System.Web.UI.UserControl
    {
        public string CorporateInfo { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (string.IsNullOrEmpty(CorporateInfo))
            {
               // do nothing;
            }
            else
            {
                RadMenuItem rmi = cresRadMenu.FindItemByText("Corporate");

                if (rmi != null)
                {
                    Response.Write("YEEEESSSS!!!!");
                    Label lCorporateInfo = rmi.FindControl("lCorporateInfo") as Label;
                    if (lCorporateInfo != null)
                    {
                        Response.Write("Found it!");
                    }
                }
            }
        }
    }
}

I can't seem to find the Label control from the code behind. I think I am approaching this wrong. Could you please help?? 


Thank you!
Pavel Benov
Telerik team
 answered on 04 Jun 2013
1 answer
95 views
Hello,

I have a radwindow inside which I have a radeditor.  I load the radeditor with content from a database.  I have a preview button in the radwindow and when I click that it opens another radwindow.  When I close this radwindow it deletes the content in the radeditor.  It does not affect the rest of the controls in the radwindow.  It just affects the radeditor.  How do I fix this.

Here is my code with both the radwindow- 

<tlrk:RadWindow ID="Dialog1" runat="server" Width="900px" VisibleStatusbar="false" Behaviors="Close,Move">
  <ContentTemplate>
   <asp:UpdatePanel ID="Dialog1UpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
     <div class="DialogBase DialogShading1" style="width:100%">
      <br />
      <asp:Label ID="lblSql" runat="server" Text =""/>
      <table class="center" style="width: 100%;">
       <tr>
        <td align="left" style="padding:10px"><strong>Help ID</strong> <br />
         <asp:TextBox ID="D0_txtHelpID" runat="server" Width="300px"  /></td>
        <td align="left"><strong>Title</strong> <br />
         <asp:TextBox ID="D0_txtTitle" runat="server" Width="500px"  /></td>
       </tr>
       <tr valign="top">
        <td align="left" style="padding:10px"><strong>Module</strong> <br />
         <asp:TextBox ID="D0_txtModule" runat="server" Width="300px"  /><br /><br />
         <strong>Page</strong><br />
         <asp:TextBox ID="D0_txtPage" runat="server" Width="300px"  /><br /><br />
         <strong>Dialog</strong><br />
         <asp:TextBox ID="D0_txtDialog" runat="server" Width="300px" /><br /><br />
         <strong>Item</strong><br />
         <asp:TextBox ID="D0_txtItem" runat="server" Width="300px" /> <br /><br />
         <strong>Note</strong><br /> 
         <asp:TextBox ID="D0_txtNote" runat="server" Width="300px" TextMode="MultiLine" Height="100px" />
        </td>
        <td align="left"><strong>Article</strong> <br />
         <tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="530px"  /> 
        </td>
       </tr>       
      </table>
      <div class="DialogFooter"> 
      <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
         <td align="left" style="width: 500px">
          <asp:Button ID="D0_Preview" runat="server" Text="Preview"  CssClass="DialogButton" OnClientClick="Preview_Click();return false;" />
         </td>
         <td align="right">
          <asp:Button ID="D0_OK" runat="server" Text="Save" OnClick="D0_OK_Click" CssClass="DialogButton"/>
          <input type="submit" value="Cancel" onclick="OI.Dialog.CloseDialog('<%= Dialog1.ClientID %>');return false;" class="DialogButton" />
         </td>
        </tr>
       </table>
      </div>     
     </div>
    </ContentTemplate>
   </asp:UpdatePanel>
  </ContentTemplate> 
 </tlrk:RadWindow> 

  <%-- Help --%>
  <tlrk:RadWindow ID="HelpDialog" runat="server" Width="416px" Height="508px" VisibleStatusbar="false" Behaviors="Close,Move" Title="Help" 
   IconUrl="../Images/Ribbon/Buttons/help_16_normal.gif">
    <ContentTemplate>
     <div class="HelpDialogContent">
      <div class="DialogToolbar">
       <div class="HelpBackForwardOffset">
        <oi:RibbonButton ID="HelpBack" runat="server" ButtonType="Back22" OnClientClick="OI.Help.Back();return false;" FloatDirection="Left" ButtonSpacing="1" Enabled="false" Style="position:relative;" />
        <oi:RibbonButton ID="HelpForward" runat="server" ButtonType="Forward22" OnClientClick="OI.Help.Forward();return false;" FloatDirection="Left" ButtonSpacing="1" Enabled="false" Style="position:relative;" />
        <img alt="" id="HelpThrobber" src="../Images/Utility/throbber_blue.gif" style="float: right; padding-right: 3px; padding-top: 1px;" />
       </div>
      </div>
      <div id="HelpTitle">&nbsp;</div>
      <div id="HelpScroll" class="scrollVertical_386">
       <div id="HelpArticle" style="padding:10px;">
      <div style="height:170px;"></div>
      <div style="vertical-align:middle;text-align:center;">Loading... <img alt="" src="../Images/Utility/spinner_aero_16.gif" /></div>
     </div>
    </div>
     </div>
    </ContentTemplate>
   </tlrk:RadWindow>
Misho
Telerik team
 answered on 04 Jun 2013
1 answer
79 views
At the moment I'm having problems with my current Session timeout scheme.  2 questions.

1.  Do I understand correctly?  This control will refresh the Session (and keep the Session variables from expiring) without reposting the whole page?

2. If I did start using this, I would still have a problem.  I have a Dot Net 4.0 Web app that uses Telerik controls.  It also uses the window.radopen command to create popup editing windows.  If I implement the Notification control in the main window, how do I do a reset from the popup?  Say, for example, reset the timer on every keystroke in an editing field.
Slav
Telerik team
 answered on 04 Jun 2013
0 answers
77 views
deleted
Ryan
Top achievements
Rank 1
 asked on 04 Jun 2013
0 answers
60 views
deleted
Ryan
Top achievements
Rank 1
 asked on 04 Jun 2013
1 answer
56 views
Hi
How can I get the unique name of the filtering column?

Allen
Princy
Top achievements
Rank 2
 answered on 04 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?