Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
I have an ASMX service inside same scope of my UI layer and using below lines to refer it and pull data for client side binding. No errors and no data too. What's wrong?

<telerik:RadGrid ID="SourceGrid" runat="server" ShowGroupPanel="false" AllowSorting="false" ShowFooter="true" AllowPaging="false" HeaderStyle-CssClass="tableHeading br" AutoGenerateColumns="false" GridLines="Both" EnableViewState="false">
<ClientSettings>
<DataBinding Location="Employee.asmx" SelectMethod="GetEmployees" >


[WebMethod]
public static List<Employee> GetEmployees()
{
List<Employee> employeeList = new List<Employee>();
for (int i = 0; i < 100; i++)
{

employeeList.Add(new Employee { EmpNumber = i, Name = "John" + i, Age = 30, Designation = "Clerk" + i, Salary = 2000 });
//    employeeList = new List<Employee> { 

//new Employee{ EmpNumber=1000, Name="John", Age=30, Designation="Clerk", Salary=2000},
//new Employee{ EmpNumber=1001, Name="Mary", Age=35, Designation="Programmer", Salary=4000},
//new Employee{ EmpNumber=1002, Name="Joe", Age=40, Designation="Manager", Salary=6000},
//new Employee{ EmpNumber=1003, Name="Mike", Age=45, Designation="Head", Salary=9000},
//new Employee{ EmpNumber=1004, Name="Leena", Age=28, Designation="DBA", Salary=3000},
//new Employee{ EmpNumber=1005, Name="Mark", Age=30, Designation="Tester", Salary=3000},
//new Employee{ EmpNumber=1006, Name="Hany", Age=31, Designation="Programmer", Salary=4000},
//new Employee{ EmpNumber=1007, Name="Tiaa", Age=45, Designation="Manager", Salary=6000},
//};
}


return employeeList;
}
Viktor Tachev
Telerik team
 answered on 01 Apr 2015
2 answers
185 views
Good day,

we are having some problems while trying to assign a string time value to a radtimepicker.

Page logic is as follows:
We have a formview with a bound control. That control is displaying a string with the value of a previous radtimepicker user inserted value.
We need to clientside assign the string value of the bound control to a radtimepicker in the current page.

We've read the api at
http://www.telerik.com/help/aspnet-ajax/calendar-client-side-basics.html
and there the only method seems to be set_selectedDate as a method to update the target field.
The problem is that set_selectedDate accepts only a date type, while our source type is a string.

We don't want to implement culture support for conversion from time string to time date, so we need to know:
1- is there an alternative client side method for setting the time in a radtimepicker, that uses a string parameter
2- is there an 'universal' datetime format that we can Date.Parse out time string ("08:30") so that the radtimepicker will accept it without culture and timezone problems?

Thanks in advance
Konstantin Dikov
Telerik team
 answered on 01 Apr 2015
1 answer
148 views
This works for ItemTemplate:

http://www.telerik.com/help/aspnet-ajax/menu-templates-accessing-controls.html

But how can I access the ContentTemplate for a menu item from code?

Marc
Ivan Danchev
Telerik team
 answered on 01 Apr 2015
7 answers
208 views
I have a tabstrip with a multipage.
I specified a default button in one of the pages:
<telerik:RadPageView CssClass="TabPageView" runat="server" ID="PageView5"
DefaultButton="ButtonSearchPerson">
<table>
  <tr>
    <td>
<telerik:RadTextBox ID="RadTextBoxSearchPerson" runat="server"
EmptyMessage="Search person by ID or url" MaxLength="50" Rows="1"
SelectionOnFocus="SelectAll" Width="155px">
</telerik:RadTextBox>
        <asp:Button ID="ButtonSearchPerson" runat="server" OnClick="ButtonSearchPerson_Click"
Text="Search" />
...

Nothing special.
When I click inside the textbox (in this pageview) I expect the default button to fire.
Instead a button from the first page fires (with a different ID).
Am I doing anything wrong here?
Any advice?
Nencho
Telerik team
 answered on 01 Apr 2015
1 answer
96 views
I have 2 queries. My platform is VS 2010 with .net 4.0 web forms

1. My Telerik.Web.UI version is  2013.1.403.40. Which minimum version do I need to use to get the client side UI  Virtualization support considering above platform.

<telerik:RadGrid ID="SourceGrid" runat="server" ShowGroupPanel="false" AllowSorting="false" ShowFooter="true" AllowPaging="false" HeaderStyle-CssClass="tableHeading br" AutoGenerateColumns="false" GridLines="Both" EnableViewState="false">
<ClientSettings>           
<
Virtualization EnableVirtualization="true" InitiallyCachedItemsCount="2000" LoadingPanelID="RadAjaxLoadingPanel1" ItemsPerView="100"/><br>               <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>


2. Currently once I am binding huge rows date to RadGrid using client side API, grid showing a message (Please see attached image). How can I make it something meaningful that user can understand the progress of background rendering?
Viktor Tachev
Telerik team
 answered on 01 Apr 2015
1 answer
318 views
Hi Team,

We are using Custom Export to excel button to export the Radgrid data to excel. While exporting the data we are trying to show the spinner during the export  but we are unable to catch the file downloaded event, So even the file downloads the spinner still continues to spin. Is there any other option to show waiting panel in this case. please help me on this. Please find the code below.

We tried with Auto Export excel option "<CommandItemSettings ShowExportToExcelButton="true" />" of radgrid. But it's showing the data on the screen in datatable format. we need the file to be downloaded. Not getting the file download option in this case.

.aspx

<td>
<asp:ImageButton ID="ExportToExcel" src="images/Excel.png" OnClientClick="showspinner();" runat="server" OnClick="ExportToExcel_Click" width="50"/>
</td>

.aspx.cs

RadGridMigrationReport.MasterTableView.ExportToExcel();
Kostadin
Telerik team
 answered on 01 Apr 2015
1 answer
156 views
Good Day,

This is my first time to use Telerik OrgChart and I am facing some difficulties while trying to view it as it renders but doesn't show on the page.

Below is my code.

DataTable employees = new DataTable();

employees.Columns.Add("EmployeeID", typeof(String));
employees.Columns.Add("EmployeeName", typeof(String));
employees.Columns.Add("DepartmentName", typeof(String));
employees.Columns.Add("JobTitle", typeof(String));
employees.Columns.Add("Parent", typeof(String));

employees.Rows.Add("1111", "aaa", "aaa", "aaa", null);


telerikOrgChart.DataFieldID = "EmployeeID";
telerikOrgChart.DataFieldParentID = "Parent";
telerikOrgChart.DataTextField = "EmployeeName";

telerikOrgChart.DataBind();


Thanks in advance,
Taher
Top achievements
Rank 1
 answered on 01 Apr 2015
1 answer
84 views
Hello,

I have enabled track changes EnableTrackChanges="true" on rad editor, after that copy paste is not working.

without track changes its working fine, but with track chages its not working on chrome and safari while its working on firefox.

please give me any solution for it.

Thanks.
Marin Bratanov
Telerik team
 answered on 01 Apr 2015
1 answer
116 views
Hey guys, I'm stuck with this issue. I basically added a couple of radeditors under a sublayout for some page at my sitecore CMS, and when I go to the page everything looks fine with the RadEditor till I try to add a link, image, etc. I've been reading a lot about this without luck. I also checked this article: http://www.telerik.com/support/kb/aspnet-ajax/editor/details/error-web-config-registration-missing!-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file- 

My web.config looks fine, with all the handlers in place and so. So now just wondering whether this is an issue with the sitecore configuration or something?

My web.config looks like this:

    <handlers>
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>

    </httpHandlers>
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </httpHandlers>
Marin Bratanov
Telerik team
 answered on 01 Apr 2015
1 answer
73 views
Greetings.

It seems the RadPageLayout control uses a 960px wide grid as its basis.

Can this be changed to 1200px so that all columns have a default size of 1000px vs. 80px? How and where would I make this change to globally apply to my site.

Thanks,

Greg
Ivan Zhekov
Telerik team
 answered on 01 Apr 2015
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?