Hi,
I have a special need where I want to limit the user to see only a specific zone of the map and nothing except that zone. for example he just can see France country and nothing outside that area.
Is there a way to set this by coding?
Thanks
I have a need to use a filter in Combination mode (having both the check list and the filter options), but I also need to limit the filter options to only a few.
Combination mode does not seem to be compatible with the instructions given here: http://www.telerik.com/help/aspnet-ajax/grid-reducing-filtermenu-options.html
I get java script errors when I try and use the server code provided, and the java script code does nothing for the Integer fields, and causes the popup box to shrink to 4x6 pixel box on all other types of fields.
Any help would be appreciated.
Hi,
We are using Telerik Ajax 2014.2.724.40 version.
When we create an anchor at the bottom of content (really long content) with IE9, and linked the anchor at the top index list.
But, the hyperlink doesn't work properly. Other browsers(IE11, Chrome, FF) don't have problem.
But we really need to make it work for IE9.
Any advice?
My application uses the RadAsyncUpload control and I just moved the app to our web farm environment and it intermittently
fails.
I believe it is because when the page posts back to the server, I execute RadAsyncUpload1.UploadedFiles[0].SaveAs
(newFilename, true) to rename the temporary file in the TemporaryFolder directory to a valid name before continuing with processing. I believe the failure occurs because the temporary file is in the TemporaryFolder on another server in the farm, so the SaveAs fails with file not found. I set the value of the TemporaryFolder property to an absolute path (i.e. d:\inetpub\wwwroot\appname\uploadedfiles) and my web.config files on both servers contain a MachineKey.
Is there anything else I need to do to make this work in a web farm? Thanks in advance.
Hello,
I have a master page that loads a RadTabStrip into it's ContentPlaceHolder. When the user clicks on a tab a WebUserControl is dynamically loaded into the place holder. Here's the code:
private void LoadMyUserControl(string controlName, Control parent)
{
parent.Controls.Clear();
UserControl ctrl = (UserControl)LoadControl(controlName);
string userControlID = controlName.Split('.')[0];
userControlID = userControlID.Replace("/", "").Replace("~", "");
ctrl.ID = userControlID;
parent.Controls.Add(ctrl);
}
One of the user controls contains a RadComboBox that's loaded with values. When the user selects a value from this combo box I load a RadGrid into the user control based on the selected value from the combo box.
The RadGrid contains one column and a NestedViewTemplate that contains a Nested RadGrid. Within this nested grid I have some GridTemplateColumns that contain RadButtons within their ItemTemplates. When the user clicks on one of these buttons I display a panel (make it visible/invisible) that contains another RadComboBox that gets its values based on which button was clicked and the value of the current cell.
The problem is that every time I click the button the entire page reloads (posts back), and if there are a lot of records in the nested grid it takes a long time for the panel to become visible. I have ajaxified the main radgrid by using a RadAjaxManagerProxy within the user control. I also tried ajaxifying the nested grid and the buttons within the ItemDataBound event of the nested grid.
None of my efforts have paid off. I'm not sure how to make it so that when I click the button only the RadComboBox within the panel gets updated and the whole user control page doesn't get posed back. If I put "if (!IsPostBack)" on the page_load event of the user control then the radgrid won't get loaded.
Can anyone help me figure out what to do with this?
<
div
>
<
telerik:RadAjaxLoadingPanel
runat
=
"server"
ID
=
"RadAjaxLoadingPanel1"
>
</
telerik:RadAjaxLoadingPanel
>
<
telerik:RadAjaxPanel
runat
=
"server"
ID
=
"RadAjaxPanel1"
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
CellSpacing
=
"0"
AllowPaging
=
"true"
ShowStatusBar
=
"true"
PageSize
=
"10"
Width
=
"100%"
PagerStyle-AlwaysVisible
=
"true"
GridLines
=
"None"
AutoGenerateColumns
=
"false"
OnNeedDataSource
=
"RadGrid1_Need"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
></
PagerStyle
>
<
GroupingSettings
CaseSensitive
=
"false"
></
GroupingSettings
>
<
AlternatingItemStyle
CssClass
=
"ItemsGrid"
/>
<
MasterTableView
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"nomb"
UniqueName
=
"Contacto"
HeaderText
=
"Contacto"
runat
=
"server"
HeaderStyle-Width
=
"130px"
FilterControlWidth
=
"200px"
AutoPostBackOnFilter
=
"true"
ShowFilterIcon
=
"false"
FilterControlAltText
=
"Filter Contacto column"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ubic"
HeaderText
=
"Ubicación"
runat
=
"server"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"100px"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"telf"
HeaderText
=
"Telefono"
runat
=
"server"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"110px"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"rpm"
HeaderText
=
"RPM"
runat
=
"server"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"70px"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"telf2"
HeaderText
=
"Telefono Movil"
runat
=
"server"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"110px"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
telerik:RadAjaxPanel
>
</
div
>
I've got a RadGrid, and when double-clicking on a row, client-side javascript kicks in by openning up a pop-up Window:
function ShowEditForm2(id, rowIndex)
{
....
var oWnd = window.radopen("AddConsultant2.aspx?consultantid=" + id, "EditDialog");
oWnd.SetSize(650,400);
....
}
I can close this pop-up window, then go ahead and open it up again by double-clicking on another row back on the RadGrid.
This is all working fine, however I notice that the second time (and subsequent times after the second time) the pop-up window is openned, it will display the data from the previously openned instance (just for a second). Then immediately the correct data on the pop-up window gets rendered. This is somewhat annoying; is there a way to 'refresh' this? It seems to cache the display.
Hello,
How do you get appointment times in the current time zone? I am exporting appointments using the RadScheduler.ExportToICalendar method. But the times exported in the .ics file are in the wrong time zone. Is that UTC? I'm not displaying or converting to UTC times in the scheduler for my appointments.
Thanks.
Hello Telerik Support Team.
I'm using dll 2014.1.403.40 version.
I would like to prevent pasting image into editor from web browser copy on context menu.
I had seen your editor demo here (http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx)
Demo is working good for blocking any pasting image by Control+V or paste on context menu.
I implemented sample project using your demo source unfortunately it does not work!!!!!!!!!!.
My test procedure is here.
1. Right click on the image in IE browser (That will shows browser context menu)
2. Click "Copy"
3. Pasting image into editor by pressing Control + V
4. Editor shows pasted image. (<--- Your demo is not shows image)
What is the problem? I need to same feature like your demo.
I'm attaching my sample project thank you.
ASPX:
01.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
02.
03.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
04.
05.
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
06.
<
head
runat
=
"server"
>
07.
<
title
></
title
>
08.
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
/>
09.
</
head
>
10.
<
body
>
11.
<
form
id
=
"form1"
runat
=
"server"
>
12.
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
13.
<
Scripts
>
14.
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
15.
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
16.
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
17.
</
Scripts
>
18.
</
telerik:RadScriptManager
>
19.
<
script
type
=
"text/javascript"
>
20.
//Put your JavaScript code here.
21.
function OnClientSubmit(sender, args) {
22.
sender.fire("FormatStripper", { value: "WORD" });
23.
}
24.
</
script
>
25.
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
26.
</
telerik:RadAjaxManager
>
27.
<
div
>
28.
<
telerik:RadEditor
runat
=
"server"
OnClientSubmit
=
"OnClientSubmit"
ID
=
"RadEditor1"
29.
SkinID
=
"BasicSetOfTools"
Width
=
"420px"
Height
=
"300px"
EnableResize
=
"false"
>
30.
<
Content
>
31.
<
p
class
=
"MsoNoSpacing"
style
=
"margin: 0in 0in 0pt;"
><
span
class
=
"MsoIntenseEmphasis"
style
=
"color: #4f81bd;"
><
strong
><
em
><
span
style
=
"font-family: calibri;"
> <
br
/>
32.
Experiment with the various options of the StripFormattingOptions setting for cleaning Word formatting.</
span
></
em
></
strong
></
span
></
p
>
33.
<
p
class
=
"MsoNoSpacing"
style
=
"margin: 0in 0in 0pt;"
><
span
class
=
"MsoIntenseEmphasis"
><
strong
><
em
><
span
style
=
"color: #4f81bd; font-family: calibri;"
>
34.
The content here has MS Word formatting which you can strip on submit by clicking on the "Submit and Clean" button above.<
o:p
></
o:p
></
span
></
em
></
strong
></
span
></
p
>
35.
</
Content
>
36.
</
telerik:RadEditor
>
37.
</
div
>
38.
</
form
>
39.
</
body
>
40.
</
html
>
CS:
01.
using System;
02.
using System.Web;
03.
using System.Web.UI;
04.
using System.Web.UI.WebControls;
05.
06.
using System.Data;
07.
using System.Configuration;
08.
using System.Web.Security;
09.
using System.Web.UI.WebControls.WebParts;
10.
using System.Web.UI.HtmlControls;
11.
using Telerik.Web.UI;
12.
13.
public partial class Default : System.Web.UI.Page
14.
{
15.
protected void Page_Load(object sender, EventArgs e)
16.
{
17.
if (!IsPostBack)
18.
{
19.
20.
RadEditor1.StripFormattingOptions = EditorStripFormattingOptions.All;
21.
22.
}
23.
}
24.
}
Hello,
i have a project class with a list of employees assigned to each project
what i want to achieve here is that i want the stacked column chart to display names of projects on X axis for each series then add each resource of this project to the series as a series item with Y-Value of the total hours consumed by this employee on this project which is also a property coming from ProjectResource Class, i do it this way
Private Sub LoadAllProjects()
dim Projects as new list(of Project)
Projects = GetAllProjects()
For Each nProject as Project in Projects
Dim nSeries as new ColumnSeries
Dim nAxisItem as new AxisItem
nAxisItem.labelstring = nProject.Name
nSeries.name = nProject.Name
For Each nEmp as Employee in Project.Resources
dim nItem as new SeriesItem
nItem.Name = nEmp.Name
nitem.yvalue = nEmp.TotalUtilized
nSeries.Items.Add(nItem)
Next
RadHtmlChart1.PlotArea.Series.Add(nSeries)
Next
End Sub
Using this the either all items get loaded into first series or they duplicate in each series, i have tried everything possible and its not working
also the legend is display the project.names thats because im assigning Series.Name to Project.Name and i have to remove it but i need the legend to display the names of employees in each project
Help is really appreciated, thanks