Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
I have a RadGrid with the below code:


<telerik:RadGrid ID="CDSRGridView" runat="server" PageSize="15" AllowPaging="True" AllowSorting="True"

                                        AutoGenerateColumns="False" Width="700px" Height="240px">

                                        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu
GridContextMenu_Vista"></HeaderContextMenu>

                                        <FilterMenu EnableImageSprites="False">

                                        </FilterMenu>

                                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="MyID" TableLayout="Fixed"

                                            HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace" EditItemStyle-VerticalAlign="Top">

                                            <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="False"></CommandItemSettings>

                                            <Columns>

                                                …

                                            </Columns>

 

                                            <EditFormSettings>

                                               
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>

                                            </EditFormSettings>

 

                                            <EditItemStyle VerticalAlign="Top"></EditItemStyle>

                                        </MasterTableView>

                                        <ExportSettings ExportOnlyData="True" FileName="MyExcelFile" Excel-Format="Biff">

                                        </ExportSettings>

                                        <ClientSettings>

                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />

                                            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />

                                        </ClientSettings>

                                    </telerik:RadGrid>


But, when I debug and click the Export button, the BiffExporting event does not fire.  So, I put a breakpoint in the GridExporting event, and it shows the ExportType = ExcelML.  Why would the grid change the ExportType when I have it explicitly set to Biff? 
Kathy
Top achievements
Rank 1
 answered on 27 May 2014
5 answers
355 views
Hi ,

We are currently using RadEditor in our project.  We customized the Toolbars by removing some tools. I knew that adding or removing tools will automatically disable the built-in context menus. So I added the context menus manually. It worked fine on text that was directly typed into RadEditor. However, if we copied some text from other files and pasted it into RadEditor, the context menu did not show copy, cut and paste menu items when you right-click on the copy-paste text after highlighting. (Cut, Copy and Paste functions on Toolbars and Key board still work well ). After researching, I have learned that the context menus of RadEditor had some issue with IE8 and the issue could be resolved by installing Telerik 2014 Q1 SP1. We did that today but the problem still remains  (copy, cut and paste didn't show up  on context menu on the text that was copied and pasted into RadEditor). I spend some days try to figure out the reason but failed to get right answer (I remember one or two telerik team member said that issue  related privilege/Security. but can we avoid security checking or bypass this privilege be certain way?) . Could anyone have any suggestion?
Thanks in advance.
Iris
Top achievements
Rank 1
 answered on 27 May 2014
4 answers
338 views
I have a grid that has a GridNumericColumn and AllowFilteringByColumn="True".  the filter has a value for between and notbetween.  since the numericcolumn does not allow spaces or alpha how do you use the between filter?
Milena
Telerik team
 answered on 27 May 2014
3 answers
119 views
Hi, 
i have the following problem with radeditor. 
Editor remove width and height tags while saving content. I know that i can use style attribute, but we have a lot of content with width and height tags(which loses after saving) and we cannot change all of it manually. 

Please, help me with that. 
Rumen
Telerik team
 answered on 27 May 2014
2 answers
155 views
I have a rad scheduler and a html element outside of the scheduler. I need to drag the element to rad scheduler's cell. I used jquery UI for drag and drop. I made the radscheduler droppable. But could not find the timeslot in drop function. How can I get the timeslot information inside drop event. Please help.

p:s: Have seen dragging from radgrid to radscheduler demo. But I need to drag this html element and drop it tp rad scheduler.
Boyan Dimitrov
Telerik team
 answered on 27 May 2014
4 answers
210 views
Hello,

I thought I read somewhere that I can make changes and put my own input fields in the popup. Can I do this? And if so, can I put a data binded dropdown with a list of business names and when one is selected bind another dropdown on the popup with the contact name? SO I need two data binded dropdown controls on the popup and one will rebind the other after a selection is made.

Thanks,
Warren
Nencho
Telerik team
 answered on 27 May 2014
1 answer
153 views
I have tried to follow the demo of radgrid export to excel,but there are some problems.

1.I click the export button,the page refresh and show the table only,no dialogue of  open/save/save as,  to export the file like demo.Please help me,thank you. 

2. ShowExportToExcelButton="true",but the button doesn't display. Can RadToolBarButton cause this? I used RadToolBarButton for ExportToExcel at first.

Shinu
Top achievements
Rank 2
 answered on 27 May 2014
11 answers
269 views
Hi,

When I use my date format on my RadGrid dd-MMM-yy i have on English 17-Apr-14 it's perfect when i export on Excel, he recognizes my date. But when i'm on French i have 17-Avr.-14 and Excel don't regcognized this date.

I want have 17-Avr-14 for have a good export.

Have you got a solution ?

Regards,
Alexandre
Alexandre
Top achievements
Rank 1
 answered on 27 May 2014
17 answers
1.5K+ views
Hello,

I'm experiencing an issue with a page dynamically loading a RadPageView for a RadMultiPage control associated with a RadTabStrip.  The issue is when clicking on a tab the AjaxLoadingPanel displays, when the async is complete the RadPageView is not displayed.  The content remains on the original tab loaded.  I have followed Teleriks example for "Dynamically Load RadPageView".  My code is below.  This code works greate in development, test webserver with medium trust-level, and fails to work in production (GoDaddy shared hosting with medium trust-level).

Also, as a side note.  The RadPageView's are being loaded with RadGrid user controls.  The production paging for a RadGrid causes a page postback, when should load the next page using Ajax.  Again, works great in development and test, but not production.

If the code is changed to allow all tab PageView's to be created in the LoadTabs routine, then all works well except for the RadGrid paging issue.  However, I would like to utilize the dynamic RadPageView load to reduce page load times.

Please review and provide a solution.

Thanks,
Devin D


Form Code
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="button">
        <a class="m2" href="#" onclick="showServicesMenu(event)">services</a>
    </div>
    <div class="block">
        <DTS:CloseButton ID="PageClose" runat="server" SiteContext="www" PageName="Services.aspx" />
        <h1 class="padding1 heading1">Our Services</h1>
        <hr class="hrPageHeading" />
        <p class="padding2 normalText">Please select a tab to view an IT service area details.  Use the arrows to navigate between tabs and service details.</p>
        <div class="padding4">
            <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
                   <AjaxSettings>
                       <telerik:AjaxSetting AjaxControlID="rtsServices">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="rtsServices" />
                               <telerik:AjaxUpdatedControl ControlID="rmpServices" LoadingPanelID="LoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="rmpServices">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="rmpServices" LoadingPanelID="LoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                   </AjaxSettings>
               </telerik:RadAjaxManager>
               <script type="text/javascript">
  
                   function onTabSelecting(sender, args) {
                       if (args.get_tab().get_pageViewID()) {
                           args.get_tab().set_postBack(false);
                       }
                   }
                      
                </script>
            <telerik:RadTabStrip AutoPostBack="false" OnClientTabSelecting="onTabSelecting" ID="rtsServices" SelectedIndex="0" runat="server" MultiPageID="rmpServices" CssClass="tabStrip" Skin="Black" OnTabClick="rtsServices_TabClick" Orientation="HorizontalTop" ScrollChildren="true" ScrollButtonsPosition="Middle" PerTabScrolling="true">
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="rmpServices" runat="server" SelectedIndex="0" OnPageViewCreated="rmpServices_PageViewCreated" ScrollBars="Auto" CssClass="mpItems">
            </telerik:RadMultiPage>
            <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">
            </telerik:RadAjaxLoadingPanel>
        </div>
        <div class="servicesContact">
            <DTS:Contact runat="server" ID="Contact1" />
        </div>
    </div>
</asp:Content>
     

Code Behind
protected void Page_Load(object sender, EventArgs e)
        {
  
            if (!Page.IsPostBack)
            {
                LoadTabs();
                //if (Request.QueryString["s"] != null)
                //{
                    //this.AddPageView(rtsServices.FindTabByText(Request.QueryString["s"].ToString()));
                    //rtsServices.Tabs.FindTabByText(Request.QueryString["s"].ToString()).Selected = true;
                    //rmpServices.SelectedIndex = rtsServices.Tabs.FindTabByText(Request.QueryString["s"].ToString()).Index;
                //}
            }
        }
  
        private void LoadTabs()
        {
            Int32 i = 1;
  
            if (Request.QueryString["s"] == null)
            {
                SqlDataReader reader = service.GetServices();
                while (reader.Read())
                {
                    AddTab(reader["Descr"].ToString());
                    if (i == 1)
                    {
                        AddPageView(rtsServices.FindTabByText(reader["Descr"].ToString()));
                    }
                    i++;
                }
            }
            else
            {
                AddTab(Request.QueryString["s"]);
                AddPageView(rtsServices.FindTabByText(Request.QueryString["s"].ToString()));
            }
        }
  
        private void AddTab(string tabName)
        {
            RadTab tab = new RadTab();
            tab.Text = tabName;
            //tab.SelectedCssClass = "tabStripSelectedCssClass";
            //tab.HoveredCssClass = "tabStripHoveredCssClass";
            rtsServices.Tabs.Add(tab);
        }
  
        protected void rmpServices_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            string userControlName = e.PageView.ID + "ServiceItems.ascx";
  
            Control userControl = Page.LoadControl("/Controls/" + userControlName);
            userControl.ID = e.PageView.ID + "_userControl";
  
            e.PageView.Controls.Add(userControl);
        }
  
        private void AddPageView(RadTab tab)
        {
            RadPageView pageView = new RadPageView();
            pageView.ID = tab.Text;
            rmpServices.PageViews.Add(pageView);
            tab.PageViewID = pageView.ID;
        }
  
        protected void rtsServices_TabClick(object sender, RadTabStripEventArgs e)
        {
            AddPageView(e.Tab);
            e.Tab.PageView.Selected = true;
            //rmpServices.SelectedIndex = rtsServices.SelectedIndex;
        }
Slav
Telerik team
 answered on 27 May 2014
9 answers
117 views
Hi All , 

I have just found one problem with RadTreeView and I'm not sure that there will be workaround for this or not.

I tested it in all main browsers with BOTH Mac and PC .  I found that in Chrome , tree node will never go to edit mode when you click on it second time if you have checkbox in front of them .

here is my code example .

Please give me some advice how to fix this issue.  Thank you you guys in advance. 
<telerik:RadTreeView ID="RadTreeView2" Runat="server" CheckBoxes="true" AllowNodeEditing="True" >
 <Nodes>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1">
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2">
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode3">
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode4">
                    <Nodes>
                        <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">
                        </telerik:RadTreeNode>
                        <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">
                        </telerik:RadTreeNode>
                        <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 3">
                          </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode5">
                </telerik:RadTreeNode>
                <telerik:RadTreeNode runat="server" Text="Root RadTreeNode6">
                </telerik:RadTreeNode>
            </Nodes>
</telerik:RadTreeView>
Magdalena
Telerik team
 answered on 27 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?