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

Hi,

 

Is the attached app from the Telerik website a raddrawer?

Could you reveal the code for this?

 

Marc

Rumen
Telerik team
 answered on 18 Mar 2021
24 answers
840 views
Hi,

It is common practice to do something such as this:

<link rel="stylesheet" type="text/css" href="../Content/Dashboard/Dashboard.css?t=<%= DateTime.Now.Ticks %>" />

This is for development purposes, and would be converted to something like ?v=[Version Number] for releases. This is to force browsers to reload CSS instead of using cached versions.

If I attempt to use the same syntax inside of RadStyleSheetManager I am told I am using illegal characters. Does Telerik's control support something like this?

Thanks

Sean
Jackie
Top achievements
Rank 1
 answered on 17 Mar 2021
4 answers
4.0K+ views
I can't get the filters for 'equal to' working on date time column in rad grid. As far as I can tell this has something to do with the times on the dates. I have seen many posts about this here with no answer so I guess I don't really expect help, but just throwing my voice in with everyone else saying your filters don't work right for date time columns. Period.
Rumen
Telerik team
 answered on 17 Mar 2021
2 answers
596 views

I have a RadToolTipManager in place and logic to create tooltips on certain elements.

When hovering over an element and its tooltip is visible, when I then hover over another element that contains its own tooltip, I want the current tooltip to hide after a certain amount of ms instead of hiding immediately. After which, the element I'm hovering on will show its tooltip.

Almost like a delay between hiding the current tooltip and showing a new tooltip from a element being hovered on.

I used .set_hideDelay(1000) on each of these tooltips, but that seems to be when the cursor is idle for that long.

Is there an implementation for what I describe?

Vessy
Telerik team
 answered on 16 Mar 2021
19 answers
442 views

Hi Everyone,

I assume the RadEditor for SharePoint 2013 cannot be used in SharePoint 2016. Right?

Is there any release planned for the RadEditor, and in general for the RadControls, for SharePoint 2016?

Could you please inform the timeline?

Thanks in advance

Rumen
Telerik team
 answered on 16 Mar 2021
1 answer
131 views
How to get text selected in MultiColumnComboBox ?
Vessy
Telerik team
 answered on 16 Mar 2021
3 answers
144 views
How to add button inside MultiColumnComboBox at the end of all rows inside it Or in a column? 
Peter Milchev
Telerik team
 answered on 16 Mar 2021
5 answers
300 views

Hi , 

I have a RadTabStrip which is to generate tab dynamically . Each tab load same usercontrol but with different data . My issue is that When the tab is created for first time it loads the data but when I toggle to earlier tab , the data reflected is of last created tab . This is basically due to creation of RadMultiPage having same id . 

How to overcome this issue . 

My code are as follow ..

 

<asp:Content ID="Content1" ContentPlaceHolderID="FormPlaceHolder" runat="server">
    <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Skin="Metro">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerMpInfo" runat="server">
        <AjaxSettings>            
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
     <script type="text/javascript">
         /* <![CDATA[ */
            function onTabSelecting(sender, args) {
                if (args.get_tab().get_pageViewID()) {                   
                    args.get_tab().set_postBack(false);
                }               
            }
         /* ]]> */
        </script>

    <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="RadTabStrip1" SelectedIndex="0"
        runat="server" MultiPageID="RadMultiPage1" Skin="Windows7" Width="100%" Align="Justify"
        OnTabClick="RadTabStrip1_TabClick">
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"  OnPageViewCreated="RadMultiPage1_PageViewCreated">
    </telerik:RadMultiPage>
</asp:Content>

 

 

CodeBehind cs file is ..

 

if (!Page.IsPostBack)
            {
                try
                {
                   
                    if(mpCollection.Count() > 0 && this.Master.IdProgram.HasValue)
                    {
                        //  AddTab("ΣMPs");
                        using (Context idcardContext = new Context())
                        {
                            foreach (string mp in mpCollection)
                            {
                                MP currentMp = MPTestBusiness.GetMPById(idcardContext, Int32.Parse(mp));

                                mpListCollection.Add(currentMp);
                                AddTab(currentMp);
                            }
                            AddPageView(RadTabStrip1.FindTabByText(mpListCollection[0].Code));
                            
                        }            
                    }

             }
                catch (Exception ex)
                {
                    Log.Error(ex);
                    this.Master.DisplayErrorAlert(MessageConstants.GenericError);
                }

 

  private void AddTab(MP mp)
        {
            RadTab tab = new RadTab();
            tab.Text = mp.Code;
            RadTabStrip1.Tabs.Add(tab);            
        }

 

  protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            
            string userControlName = "../UserControl/MPInfoControl.ascx";
            Control userControl = Page.LoadControl(userControlName);
            userControl.ID = "userControl_" + e.PageView.ID;         
          
            if(!e.PageView.Controls.Contains(userControl))
            e.PageView.Controls.Add(userControl);
        }
        private void AddPageView(RadTab tab)
        {
            if(tab != null)
            {          
            RadPageView pageView = new RadPageView();
            pageView.ID = tab.Text;
                tab.PageViewID = pageView.ID;
                RadMultiPage1.PageViews.Add(pageView);

            }
        }
       
        protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
            if (e.Tab != null)
            {
                AddPageView(e.Tab);
                e.Tab.PageView.Selected = true;
            }
        }

 

 

 

I have followed the following demo 

https://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx

 

however here different usercontrol has been used for loading in different tab but in my case same usercontrol has to be loaded . Going further I will be adding another user control for specific values . 

Attila Antal
Telerik team
 answered on 16 Mar 2021
24 answers
2.8K+ views
I've just added the RadAsyncUpload control to a page and I'm trying to get OnFileUploaded event to fire, but can't seem to get it going.

Here's my aspx code:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"></telerik:RadAjaxPanel> 
<telerik:RadScriptManager  ID="ScriptManager1" runat="server" /> 
<telerik:RadProgressManager runat="server" ID="RadProgressManager1" />                                                           
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnFileUploaded="fileUploaded" /> 
<telerik:RadProgressArea runat="server" ID="RadProgressArea1" /> 

And my code behind:
protected void fileUploaded(object sender, FileUploadedEventArgs e) 
    System.Diagnostics.Debug.WriteLine(e.File.FileName); 


Any idea what I'm doing wrong?
Peter Milchev
Telerik team
 answered on 16 Mar 2021
3 answers
166 views

Hi,

 

How can we use pasteHTML and editor.getSelectedElement() to paste some html right after the SelectedElement?

 

So we have to keep the SelectedElement and add the new content after it.

 

Thanks in advance for your help.

 

Marc

Rumen
Telerik team
 answered on 16 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?