Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
125 views
Hi,

I have an appointment that when viewed by the appintment object has an ID of 30563_2. I can see the RecurrenceParentID is 30563. In the database, the children for this parent have the following ID's:

90023
90024
90029
90030
90034

Is there a way to quickly determine the actual ID of 30563_2?

Thanks,

Brian
Veronica
Telerik team
 answered on 30 Nov 2010
1 answer
163 views
On this page it says you can attach events such as

http://www.telerik.com/help/aspnet-ajax/editor_attacheventhandler.html

Is there an actual definitive list of events? I can't find one anywhere on the site or on google.

I'm hoping to use a textchanged event on my editor. At the moment I am using onkeydown but it's possible to change text by highlighting it and pressing a button such as bold.

This is so I can check if the user has unsaved changes before navigating away from the page.
Dobromir
Telerik team
 answered on 30 Nov 2010
1 answer
263 views
I'm trying out the scheduler control and it's working great. The tutorials, videos and articles on this site helped enormously.

I have a web page with 2 columns. In one column is a Scheduler (that's always in month view) and in the other is a Repeater with a Label inside. Because some months have more weeks than others I need a way of counting how many weeks the Scheduler is displaying so that the Repeater repeats the right amount of times - if the Scheduler has 5 weeks in its month, the Repeater should repeat 5 times; if the Scheduler has 6 weeks, the Repeater should repeat 6 times.

Is there a way of counting how many weeks are currently in the Scheduler's month (or what the current month view's start and end dates are so that I can work out the weeks that way)?

Also, the scheduler's Subject field contains an integer value. For each week I'd like to mathematically add up the totals of each Subject and display the grand weekly total in the Repeater's Label. How do I do this?

Hope somebody can help!
Veronica
Telerik team
 answered on 30 Nov 2010
2 answers
68 views
Hi All,

I'm using RadScheduler with WebService Biding.

I want to synchronize Start Date & End Date in the Advanced Form for example if we are selecting date from StartDate DatePicker then the same date should be selected in the EndDate DatePicker and back n forth.

I've tried OnDateSelected event but it's not working because it fires every time when we use set_selectedDate()

If any one of u have faced such kind of scenario or wanna give some suggestions please go ahead.

Waiting for reply,
Thanks in advance...
Abhi
Top achievements
Rank 1
 answered on 30 Nov 2010
1 answer
140 views
Hi

I've got some problem with context menu.

I defined my radeditor in a ContentPage.skin file like this : 

 

<rad:radeditor runat="server" SkinId="Editor"  Width="100%"  StripFormattingOptions="MSWordRemoveAll,Font,Css,Span" NewLineBr="true">
 <ImageManager ViewPaths="~/FilesDB/Emailing" UploadPaths="~/FilesDB/Emailing" DeletePaths="~/FilesDB/Emailing" EnableImageEditor="true" EnableThumbnailLinking="false" />
     <FontNames>
       <rad:EditorFont Value="Trebuchet MS" />   
   </FontNames>
          <Tools>
     <rad:EditorToolGroup Tag="MainToolbar">
         <rad:EditorTool  name="AjaxSpellCheck"/>
         <rad:EditorTool  name="FindAndReplace" shortcut="CTRL+F"/>
         <rad:EditorTool  name="Copy" shortcut="CTRL+C"/>
         <rad:EditorTool  name="Paste" shortcut="CTRL+V"/>
         <rad:EditorTool  name="PasteFromWord" />
         <rad:EditorTool  name="PasteFromWordNoFontsNoSizes" />
         <rad:EditorTool  name="PastePlainText" />
         <rad:EditorTool  name="PasteAsHtml"  />
         <rad:EditorSeparator/>
         <rad:EditorTool  name="Undo" shortcut="CTRL+Z"/>
         <rad:EditorTool  name="Redo" shortcut="CTRL+Y"/>
         <rad:EditorTool  name="ImageManager" shortcut="CTRL+G"/>
         <rad:EditorTool  name="ImageMapDialog"/>
         <rad:EditorTool  name="LinkManager" shortcut="CTRL+K"/>
         <rad:EditorTool  name="Unlink" shortcut="CTRL+SHIFT+K"/>
    </rad:EditorToolGroup>
    <rad:EditorToolGroup>
         <rad:EditorTool  name="Bold" shortcut="CTRL+B"/>
         <rad:EditorTool  name="Italic" shortcut="CTRL+I"/>
         <rad:EditorTool  name="Underline" shortcut="CTRL+U"/>
         <rad:EditorTool  name="StrikeThrough" />
          <rad:EditorSeparator/>
         <rad:EditorTool  name="JustifyLeft" />
         <rad:EditorTool  name="JustifyCenter" />
         <rad:EditorTool  name="JustifyRight" />
         <rad:EditorTool  name="JustifyFull" />
         <rad:EditorTool  name="JustifyNone" />
        <rad:EditorSeparator/>
         <rad:EditorTool  name="Indent" />
         <rad:EditorTool  name="Outdent" />
         <rad:EditorSeparator/>
         <rad:EditorTool  name="InsertOrderedList" />
         <rad:EditorTool  name="InsertUnorderedList" />
         <rad:EditorTool  name="ConvertToLower" />
         <rad:EditorTool  name="ConvertToUpper" />
         <rad:EditorSeparator/>
         <rad:EditorTool  name="InsertTable" />
         <rad:EditorTool  name="InsertSymbol" />
    </rad:EditorToolGroup>
    <rad:EditorToolGroup Tag="DropdownToolbar">
         <rad:EditorTool  name="FormatBlock"/>
         <rad:EditorTool  name="FontName"/>
         <rad:EditorTool  name="RealFontSize"/>
         <rad:EditorSeparator/>
         <rad:EditorTool  name="ForeColor"/>
         <rad:EditorTool  name="BackColor"/>
    </rad:EditorToolGroup>       
    </Tools>   
     <Modules>        
        <rad:EditorModule Name="RadEditorStatistics" Enabled="true" />
    </Modules>      
    <Languages>
        <rad:SpellCheckerLanguage Code="en-US" Title="Anglais"/>
        <rad:SpellCheckerLanguage Code="fr-FR" Title="Français"/>
    </Languages>    
     <CssFiles>
        <rad:EditorCssFile Value="~/RadEditor.css" />
    </CssFiles>
   </rad:radeditor>

If i put a radeditor with this skin in a form, the context menu doesn't appear anymore and if I add
a <contextmenu> tag 
<ContextMenus>
<telerik:EditorContextMenu Enabled="true" />
</ContextMenus>
in my skin file, the context menu appears but is always empty

If I remove the <tools> part, the context menu reappears.
I don't understand why.

Do I miss something ?

My telerik radeditor version is v4.0.30319

Thank you for your help

Dobromir
Telerik team
 answered on 30 Nov 2010
3 answers
57 views
Greetings,

I got 2 problems with my telerik controls. the first one is that filtering doesn't work in my radgrids. I'm using several radgrids on my websites on different page under the same masterpage this is the error I get when i try to filter:

The other problem i have is that the filemanger function in my radeditor doesn't work.
I have added:
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
to the web.config and i defined the filepaths as you can see below:
<telerik:RadEditor ID="txtWhoAreWe" ShowSubmitCancelButtons="false"
        runat="server" AllowCustomColors="true">
        <ImageManager ViewPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" UploadPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old"
            DeletePaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" />
        <MediaManager ViewPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" UploadPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old"
            DeletePaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" />
        <FlashManager ViewPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" UploadPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old"
            DeletePaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" />
        <TemplateManager ViewPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" UploadPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old"
            DeletePaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" />
        <DocumentManager ViewPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" UploadPaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old"
            DeletePaths="~/_upload/RadFiles/New,~/_upload/RadFiles/Old" />
    </telerik:RadEditor>
Yet the filemanager doesn't work whenn i open one of the filemanager all buttons are are disabled and all i can do is close it.

I hope you can help me.
develop about:blank
Top achievements
Rank 1
 answered on 30 Nov 2010
1 answer
111 views
Hi All,
       
I have been used same functionality which described in - "http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx".

 I am passing path of "doc.aspx" (not .ascx) page path as a value to dropdown.
 
But it gives as error =

'/widgets/MYPopup.aspx?tblid=2010101195336578794623&Mode=rd&uMode=hm&uColid=%202010101195336578794623&uid=0&id=0&uTabid=20101012012192484098357&rMode=hm' is not a valid virtual path.

One more question
Can I pass .aspx page to Raddoc.?

Please help!!
Pero
Telerik team
 answered on 30 Nov 2010
3 answers
113 views

I want a Pop up when i click on the Expand  icon on the RadDock

 

 

Pero
Telerik team
 answered on 30 Nov 2010
3 answers
147 views
Hi,

I am new to Telerik RadControls, hence kindly excuse any mistakes. What I am trying to achieve is:

1) A web page with RadComboBox and a hyper link.
2) User clicks on Hyper Link to Open a Rad Window. User enters a value and saves value to database.
3) RadWindows closes. The RadCombo box on the parent window should be refreshed.

Going thru other posts, I was able to achieve all three and the RadCombo is also bound when the Radwindow closes, but it does not refresh. It still shows the old values ( and not the new value). If you explicitly refresh the page then it will populate RadCombo with new value.

Please advise. This is the code I am using:

Home.aspx where the RadCombo control is:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1" >
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radddl" LoadingPanelID="RadAjaxLoadingPanel1"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy >
   
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" >
    </telerik:RadAjaxLoadingPanel>

Home.aspx - Javascript to make an ajaxrequest on radwindow close:
function closeRadWindow()
     {
         //debugger WORKS!
         $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");         
     }

Home.aspx - RadCombo and a Hyperlink:
<td>
                        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="50px" Width="50px"
                         LoadingPanelID="RadAjaxLoadingPanel1"
                        >
                            <telerik:RadComboBox ID="radddl" runat="server"   >
                            </telerik:RadComboBox>
                        </telerik:RadAjaxPanel>
                    </td>
                    <td>
                         <a href="#"  id="link1" >
                            Add Category
                         </a>                   
                    </td>

Home.aspx - to open the radwindow
<telerik:RadWindowManager ID="RadWindowManager2" runat="server"
           <Windows
               <telerik:RadWindow ID="AddCategoryWindow" runat="server" OnClientClose="closeRadWindow"
                                   Behaviors="Close"  NavigateUrl="~/template/AddTemplateCategory.aspx"
                                   OpenerElementID="link1" modal="true"  Height="200px" Width="200px"
                                   ShowContentDuringLoad="false" Title="Add Category" VisibleStatusbar="false"
                                   
               </telerik:RadWindow
           </Windows
   </telerik:RadWindowManager>

Home.aspx - code behind:
protected void Page_Load(object sender, EventArgs e)
   {
       if (!IsPostBack)
       {
           this.LoadCategoryList();
       }
 
       RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
       ajaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(ajaxManager_AjaxRequest);
   }

Home.aspx - Ajax request. Load Category List actually makes a database call and binds to RadCombo
protected void ajaxManager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
   {
       this.LoadCategoryList();
   }

TIA!

Dhanesh
Top achievements
Rank 1
 answered on 30 Nov 2010
5 answers
258 views
<telerik:RadAjaxManager ID="ajaxManager" runat="server"
        <AjaxSettings
            <telerik:AjaxSetting AjaxControlID="gvMemberList"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl ControlID="gvMemberList" LoadingPanelID="ajaxLoadingPanel" /> 
                       
                </UpdatedControls
            </telerik:AjaxSetting
         <telerik:AjaxSetting AjaxControlID="btnRefresh"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl ControlID="gvMemberList" LoadingPanelID="ajaxLoadingPanel" />                    
                    <telerik:AjaxUpdatedControl ControlID="tabDetails" LoadingPanelID="ajaxLoadingPanel" />                     
                </UpdatedControls
            </telerik:AjaxSetting
        </AjaxSettings
 </telerik:RadAjaxManager
    
    <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Skin="Default"
    </telerik:RadAjaxLoadingPanel
    
    
<asp:ImageButton ID="btnRefresh" ImageUrl="~/Images/refresh.png" OnClick="btnRefresh_Click"
                            runat="server" ToolTip="Refresh all list." /> 
    
<telerik:RadGrid ID="gvMemberList" runat="server" AllowPaging="True" OnInit="gvMemberList_Init"
                            AllowCustomPaging="true" AllowSorting="True" SkinsPath="RadControls/Skins" EnableAJAX="True"
                            OnSortCommand="gvMemberList_SortCommand" OnPageIndexChanged="gvMemberList_PageIndexChanged"
                            OnItemDataBound="gvMemberList_ItemDataBound" OnItemCommand="gvMemberList_ItemCommand"
                            GridLines="None" EnableEmbeddedSkins="true" PageSize="10" Visible="true" ShowStatusBar="true"
                            LoadingTemplateTransparency="45" Width="90%" CellSpacing="0" CellPadding="0"
                            AutoGenerateColumns="false" AllowFilteringByColumn="True" Skin="WebBlue"
                            <GroupingSettings CaseSensitive="false" /> 
                                
                            <MasterTableView DataKeyNames="EmpID" FilterItemStyle-Width="1%" AllowFilteringByColumn="true"
                                AllowMultiColumnSorting="false"
                                <Columns
                                        
                                    <telerik:GridBoundColumn DataField="EmpName" HeaderText="EmployeeName" UniqueName="EmployeeName"
                                        HeaderStyle-HorizontalAlign="Center" FilterControlWidth="25px"
                                        <ItemStyle HorizontalAlign="Center" Width="1%" /> 
                                    </telerik:GridBoundColumn
                                    <telerik:GridBoundColumn DataField="Address" HeaderText="Emploee Address" UniqueName="Emploee Address"
                                        HeaderStyle-HorizontalAlign="Center" FilterControlWidth="25px"
                                        <ItemStyle HorizontalAlign="Center" Width="1%" /> 
                                    </telerik:GridBoundColumn
                     </Columns
                            </MasterTableView
 </telerik:RadGrid
    
 <telerik:RadTabStrip ID="tabMemberDetails" runat="server" Skin="WebBlue" MultiPageID="tabDetails"
                            SelectedIndex="0" Align="Justify" ClickSelectedTab="true" EnableViewState="false"
                            ReorderTabsOnSelect="true" Width="1139px" OnTabClick="tabMemberDetails_Click"
                            ScrollChildren="true"
                        </telerik:RadTabStrip
 <telerik:RadMultiPage ID="tabDetails" ScrollBars="Auto" runat="server" SelectedIndex="0"
                            CssClass="pageView" Width="1137px" Height="470px"
 </telerik:RadMultiPage>
protected void tabMemberDetails_Click(object sender, RadTabStripEventArgs e) 
StatusNotes control = LoadControl("~/Controls/StatusNotes.ascx") as StatusNotes; 
control.btnSaveClk += new StatusNotes.btnStatus_Click(control_btnSaveClk); 
    
 void control_btnSaveClk(object sender, EventArgs e) 
{             
     btnRefresh_Click(this, new ImageClickEventArgs(0,0)); 
    
protected void btnRefresh_Click(object sender, ImageClickEventArgs e) 
        
            gvMemberList.Rebind();             
        }

I have a RadGrid and TabControl. In RadAjaxmanger, I am updating my grid when i click gridrows or when i click the refresh button.
I have a usercontrol with a button and I have exposed its event btnSaveClk. In that event I call the Refresh button click event which rebinds the grid. When i debug the code, the data set shows the fresh data, but it is not reflect in the UI.
I know the obvious problem is the btnrefresh_Click was not fired by clicking the Refresh button but it was called indirectly by some other event. Hence Can anyone help me how to work it out.
Radoslav
Telerik team
 answered on 30 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?