Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
170 views
I have the following in my main page:
        var mtv = $find("<%= grdMain.ClientID %>").get_masterTableView();
        var un1 = mtv.get_columns()[1].get_uniqueName();
        var un2 = mtv.get_columns()[2].get_uniqueName();
        mtv.swapColumns(un1, un2);
        alert('mtv.swapColumns');
        mtv.moveColumnToLeft(3);
        alert('mtv.moveColumnToLeft');

swapColumns works and 1st alert displays and columns are swapped
but moveColumnToLeft doesn't work and 2nd alert is never called.


Maria Ilieva
Telerik team
 answered on 20 Jan 2014
4 answers
98 views
I have a radwindow manager that I am programatically adding windows too. The user may have 5 or 6 open at a time. But when I add a new one using the windows.add method it reloads all the children into the center of the screen one on top of the other. Is there anyway to just add a new window without the children that are already open being touched?
Marin Bratanov
Telerik team
 answered on 20 Jan 2014
2 answers
89 views
Hi. I'm trying to find how to implement drag and drop in ListVIew when I'm using ClientSide binding.
But the methods that described in demo article ( https://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx )
doesn't fit to client side binding implementation.( for example like this https://demos.telerik.com/aspnet-ajax/listview/examples/client/webservicedatabinding/defaultcs.aspx)

Please assist. 
Angel Petrov
Telerik team
 answered on 20 Jan 2014
1 answer
109 views

Hi,

We are displaying a Point chart which plots weekly data for an entire year (52 weeks).  I.e., X Axis will have 52 marks. For each week, it plots three points.

We are doing series mapping inside PreRender event of the chart control.

The code inside this event runs in no time.

The stored procedure returns the result in 0 seconds.

But the chart control takes around 20 seconds to render.

Please let us know if there is any way to reduce the time to render.

Thanks in advance.
Danail Vasilev
Telerik team
 answered on 20 Jan 2014
3 answers
689 views
Hi,

I have a set of child nodes under a parent node that I sort by a "Sort Order" column in the database based on importance. 

However, when I bind, the child nodes insist on sorting alphabetically.  How can I force the treeview to accept the list order as is or is there a way to sort after I bind it?

Thanks, Dave
Boyan Dimitrov
Telerik team
 answered on 20 Jan 2014
6 answers
731 views
Hello team I have a question. Is it possible to create a page view add it to a MultiPage and have it selected when you click on a Tab.  

I am building my tab control in the page load but I do not want to load all of the pageviews and usercontrols at this time I want to load them only when the tab is clicked for the first time. 

I have the following onClientTabSelecting function.  

function onClientTabSelecting(sender, args) {
               var ajaxManager = $find("<%=DefaultAjaxManager.ClientID %>");
               var tab = args.get_tab().get_text();
               var argstr = tab;
               switch (tab) {
                   case "Logout":
                       PageMethods.Logout();
                       window.location = "Login"
                       break;
                   case "User Page":
                       window.location = "User"
                       break;
                   case "Company Maintenance":
                       ajaxManager.ajaxRequest(argstr);
                       break;
                   case "Dashboard Maintenance":
                       ajaxManager.ajaxRequest(argstr);
                       break;
               }
           }
The ajaxrequest event looks like this. 

protected void manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
      {
           
          switch (e.Argument)
          {
              case "Company Maintenance":
                  manager.AjaxSettings.AddAjaxSetting(manager, AdminMultiPage);
                  manager.AjaxSettings.AddAjaxSetting(manager, AdminTabStrip);
                  AddPageView("CompanyMaintenance");
                  break;
              case "Dashboard Maintenance":
                  manager.AjaxSettings.AddAjaxSetting(manager, AdminMultiPage);
                  manager.AjaxSettings.AddAjaxSetting(manager, AdminTabStrip);
                  AddPageView("DashBoardMaintenance");
                  break;
          }
      }
private void AddPageView(string viewID)
        {
            RadPageView view = new RadPageView();
            view.ID = viewID;
            AdminMultiPage.PageViews.Add(view);
        }
 
 protected void AdminMultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            Control userControl = Page.LoadControl("~/Admin/Controls/" + e.PageView.ID + ".ascx");
            userControl.ID = e.PageView.ID + "Content";
            e.PageView.Controls.Add(userControl);
            e.PageView.CssClass = "Radpageview";
 
            if (e.PageView.ID == "CompanyMaintenance")
            {
                RadTab parentTab = AdminTabStrip.Tabs.FindTabByText("Maintenance");
                parentTab.PageViewID = "";
                RadTab childTab = parentTab.Tabs.FindTabByText("Company Maintenance");
                childTab.PageViewID = e.PageView.ID;
                e.PageView.Selected = true;
            }
 
            if (e.PageView.ID == "DashBoardMaintenance")
            {
                RadTab parentTab = AdminTabStrip.Tabs.FindTabByText("Maintenance");
                parentTab.PageViewID = "";
                RadTab childTab = parentTab.Tabs.FindTabByText("Dashboard Maintenance");
                childTab.PageViewID = e.PageView.ID;
                e.PageView.Selected = true;
            }
 
            if (e.PageView.ID == "Home")
            {
                e.PageView.Selected = true;
            }
        }

I can see that the pageview is added to the multipage but it dose not become selected and the multipage does not retain the pageview.  Meaning evertime you click on a tab the multipage says it only has one page view. 


Nencho
Telerik team
 answered on 20 Jan 2014
1 answer
110 views
Hi All,

I'm using v.2013.2.717.45. Now I met an issue that when I bind zero to series, it will not show labelappearance in my page. Is there any solution to show all labelapperance whenever the value is zero or not, please? Thanks very much.
Code as bellow:
<telerik:BarSeries DataFieldY="DiskUsagePct" Name="Disk Usage Percentage">
   <Appearance FillStyle-BackgroundColor="White" />
   <LabelsAppearance Position="OutsideEnd" ClientTemplate="#=category#, #=value#%" Visible="true">
      <TextStyle FontFamily="Segoe UI,Tahoma,Century" Color="White" />
   </LabelsAppearance>
   <TooltipsAppearance ClientTemplate="#=category#, #=value#%" Color="YellowGreen" />
</telerik:BarSeries>
When the value is zero(min value of YAxis), the labelsappearance shows nothing while I need it show the value is 0.
Danail Vasilev
Telerik team
 answered on 20 Jan 2014
1 answer
229 views
Hi
 i have a radtextbox and i want an empty text in it so dat on focus the user enter what he wants. How to get this done? Is there a emptymessage property?
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2014
3 answers
125 views
Hi,

I am using Safari (5.1.7) version and multifile selection is not working in Safari. It works fine in other browsers (IE, Chrome, Firefox).
The documentation says multifile is supported in Safari as well. Can the team confirm this?

Thanks,
Shilpa
Hristo Valyavicharski
Telerik team
 answered on 20 Jan 2014
1 answer
163 views
Hi, I created a custom web part in VS using the Telerik RadGrid to display data from lists as well as input data to them. I want to add a function that uses the RadAsyncUpload control to allow the user to attach a file when a new list item is created. I have seen instructions to do this for a document library, but not how to add attachments to items in a list.

Thanks.
Hristo Valyavicharski
Telerik team
 answered on 20 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?