ScriptManager.RegisterStartupScript(Page, Page.GetType(),
"confirmQuantity"
,
"confirmQuantityCorrection();"
,
true
);
function
confirmQuantityCorrection(){
var
oConfirm = radconfirm(
'Are you sure'
, confirmCallBackQuantity, 280, 150,
null
,
'Confirm'
);
return
false
;
}
Hi, I have upgraded from Q3 promothues to Q1 2008 Ajax
same code, but doesn't work anymore
here is the aspx
<telerik:RadGrid ID="AListingsGrid" runat="server" |
AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" |
AutoGenerateColumns="False" GridLines="None" Height="515px" PageSize="300" |
Skin="Vista"> |
<MasterTableView> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False" Resizable="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="Href_No" HeaderText="Ref" |
UniqueName="column"> |
</telerik:GridBoundColumn> |
</Columns> |
<EditFormSettings> |
<PopUpSettings ScrollBars="None"></PopUpSettings> |
</EditFormSettings> |
</MasterTableView> |
<ClientSettings> |
<Selecting AllowRowSelect="True" /> |
<Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
</ClientSettings> |
</telerik:RadGrid> |
<telerik:RadAjaxLoadingPanel ID="PnlLoading" Runat="server" |
height="75px" width="75px"> |
<img alt="Loading..." |
src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
style="border:0px;" /> |
</telerik:RadAjaxLoadingPanel> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID = "AListingsGrid"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID ="AListingsGrid" LoadingPanelID="PnlLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID = "btnFilter"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID ="AListingsGrid" LoadingPanelID="PnlLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
Debug.Print(AListingsGrid.SelectedItems.Count)
the AListingsGrid.SelectedItems.Count is always 0
what's wrong?
I assume if I need to get the lat/lon from a given address I need to use another service for this right? I need to place a marker with the given address. I was just checking here anyways.
Thanks,
Warren
Hello,
1. I create an appointment with recurrence : 3 occurrences A,B,C.
2. I update only one occurrence : B.
3. I delete B.
But deleting B doesn't work... indeed, no event is firing... (none from OnOccurrenceDelete​/OnAppointmentDelete/Delete method from provider)
More, if i try to edit this occurrence B, i can choose series/occurrence illogically (and nothing happen if i choose edting series...)
If I update series from A or B to reset exception, the original B takes place, but my "orphan" occurrence B always exists and i still can not delete it.
The own way for user to delete orphan B is to add a reccurence to B then deleting the series...
Is it something i didn't understand ? ​How to force the removal of B please ?
Hi There,
I have a RadGrid with CheckBox column turned on. When click on the white space beside the check box, all other selected columns change to unselected. Is there a way to turn off this feature? Is it possible that it only select the column without affecting other selected columns? Please help. Thank you.
Here is the telerik demo link:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-types/defaultcs.aspx
Best regards,
Meng
Hello,
I have a problem when I use the LocalizationPath, because these not taken the content that I define in my file resource. I´ve defined the gantt chart from code.
Here my code C#
private
void
agregarColumna(
string
DataField,
string
Header,
int
tamano, RadGantt ctrlGantt)
{
GanttBoundColumn gbc =
new
GanttBoundColumn();
gbc.DataField = DataField;
gbc.HeaderText = Header;
gbc.Width = Unit.Pixel(tamano);
ctrlGantt.Columns.Add(gbc);
}
private
void
CargarGraficoGantt(DataTable dtGantt)
{
RadGantt rgGantt =
new
RadGantt();
rgGantt.ID =
"GraficoGantt"
;
rgGantt.SnapToGrid =
false
;
rgGantt.ReadOnly =
true
;
rgGantt.AllowSorting =
false
;
rgGantt.SelectedView = GanttViewType.MonthView;
rgGantt.AutoGenerateColumns =
false
;
rgGantt.EnableViewState =
true
;
rgGantt.EnablePdfExport =
true
;
rgGantt.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("es-ES");​
//rgGantt.LocalizationPath = "App_LocalResources/";
//rgGantt.Width = Unit.Percentage(100.0);
//rgGantt.Height = Unit.Percentage(100.0);
//Columnas
agregarColumna(
"ID"
,
"Id"
, 50, rgGantt);
agregarColumna(
"Title"
,
"Tareas a Desarrollar"
, 350, rgGantt);
agregarColumna(
"PercentComplete"
,
"Porcentaje"
, 80, rgGantt);
rgGantt.DataBindings.TasksDataBindings.IdField =
"ID"
;
rgGantt.DataBindings.TasksDataBindings.TitleField =
"Subject"
;
rgGantt.DataBindings.TasksDataBindings.StartField =
"Start"
;
rgGantt.DataBindings.TasksDataBindings.EndField =
"End"
;
rgGantt.DataBindings.TasksDataBindings.ParentIdField =
"ParentID"
;
rgGantt.DataBindings.TasksDataBindings.SummaryField =
"summary"
;
rgGantt.DataBindings.TasksDataBindings.PercentCompleteField =
"PercentComplete"
;
rgGantt.DataSource = dtGantt;
rgGantt.Skin =
"Bootstrap"
;
rgGantt.DataBind();
divGantt.Controls.Add(rgGantt);
}
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
DataTable tasks =
new
DataTable();
tasks.Columns.Add(
new
DataColumn(
"ID"
,
typeof
(
int
)));
tasks.Columns.Add(
new
DataColumn(
"ParentID"
,
typeof
(
int
)));
tasks.Columns.Add(
new
DataColumn(
"Subject"
,
typeof
(
string
)));
tasks.Columns.Add(
new
DataColumn(
"Summary"
,
typeof
(
bool
)));
tasks.Columns.Add(
new
DataColumn(
"PercentComplete"
,
typeof
(
decimal
)));
tasks.Columns.Add(
new
DataColumn(
"Start"
,
typeof
(DateTime)));
tasks.Columns.Add(
new
DataColumn(
"End"
,
typeof
(DateTime)));
tasks.Rows.Add(1,
null
,
"Defining selection"
,
false
, 0.1,
new
DateTime(2015, 8, 2),
new
DateTime(2015, 9, 4));
tasks.Rows.Add(2,
null
,
"Researching the market for candidates"
,
true
, 0,
new
DateTime(2015, 8, 3),
new
DateTime(2015, 8, 15));
tasks.Rows.Add(3, 2,
"Advertising the position"
,
false
, 0.3,
new
DateTime(2015, 8, 10),
new
DateTime(2015, 8, 15));
tasks.Rows.Add(4, 2,
"Collecting job applications"
,
false
, 0.5,
new
DateTime(2015, 8, 10),
new
DateTime(2015, 8, 15));
tasks.Rows.Add(5,
null
,
"Categorizing applications"
,
false
, 0.5,
new
DateTime(2015, 8, 17),
new
DateTime(2015, 8, 22));
tasks.Rows.Add(6,
null
,
"Assessing applicants"
,
true
, 0,
new
DateTime(2015, 8, 19),
new
DateTime(2015, 8, 31));
tasks.Rows.Add(7, 6,
"Interview with Human Resources representatives"
,
false
, 0.2,
new
DateTime(2015, 8, 24),
new
DateTime(2015, 8, 26));
tasks.Rows.Add(8, 6,
"Asigning and reviewing a sample test task"
,
false
, 0.2,
new
DateTime(2015, 8, 24),
new
DateTime(2015, 8, 27));
tasks.Rows.Add(9, 6,
"Interview with Development representatives"
,
false
, 0.6,
new
DateTime(2015, 8, 26),
new
DateTime(2015, 8, 28));
tasks.Rows.Add(10,
null
,
"Creating and proposing the job offer"
,
false
, 0.7,
new
DateTime(2015, 8, 27),
new
DateTime(2015, 8, 29));
tasks.Rows.Add(11,
null
,
"Hiring applicant"
,
false
, 0.4,
new
DateTime(2015, 8, 25),
new
DateTime(2015, 8, 31));
rgDemo.DataSource = tasks;
rgDemo.AutoGenerateColumns =
true
;
rgDemo.Skin =
"Bootstrap"
;
rgDemo.MasterTableView.DataKeyNames =
new
string
[] {
"ID"
};
//Gant
this
.CargarGraficoGantt(tasks);
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfDemo.aspx.cs" Inherits="testTelerik.wfDemo" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI.Gantt" tagprefix="cc1" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html; charset=utf-8"
/>
<!--Grid-->
<
link
href
=
"css/Glow/Grid.Glow.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Grid.Bootstrap.css"
rel
=
"stylesheet"
/>
<!--Gantt-->
<
link
href
=
"css/Glow/Ajax.Glow.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Glow/Gantt.Glow.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Glow/Input.Glow.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/TabStrip.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Input.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Gantt.Bootstrap.css"
rel
=
"stylesheet"
/>
<!--Scheduler-->
<
link
href
=
"css/Bootstrap/Calendar.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Scheduler.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/SchedulerRecurrenceEditor.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/SchedulerReminderDialog.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Window.Bootstrap.css"
rel
=
"stylesheet"
/>
<
link
href
=
"css/Bootstrap/Menu.Bootstrap.css"
rel
=
"stylesheet"
/>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
>
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
></
script
>
<
script
src
=
"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
></
script
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:radscriptmanager
runat
=
"server"
></
telerik:radscriptmanager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"ralpGantt"
runat
=
"server"
Skin
=
"Glow"
></
telerik:RadAjaxLoadingPanel
>
<
div
class
=
"container"
id
=
"divContenedor"
runat
=
"server"
>
<
ul
class
=
"nav nav-pills"
>
<
li
class
=
"active"
><
a
data-toggle
=
"tab"
href
=
"#divGrid"
>Grid</
a
></
li
>
<
li
><
a
data-toggle
=
"tab"
href
=
"#divGantt"
>Gantt</
a
></
li
>
</
ul
>
<
div
class
=
"tab-content"
>
<
div
id
=
"divGrid"
class
=
"tab-pane fade"
runat
=
"server"
>
<
telerik:radgrid
ID
=
"rgDemo"
runat
=
"server"
></
telerik:radgrid
>
</
div
>
<
div
id
=
"divGantt"
runat
=
"server"
class
=
"tab-pane fade in active"
>
</
div
>
</
div
>
</
div
>
<
telerik:radcodeblock
runat
=
"server"
>
<
script
src
=
"jquery.loadmask.js"
></
script
>
<
script
src
=
"bootstrap-remote-tabs.js"
></
script
>
</
telerik:radcodeblock
>
</
form
>
</
body
>
</
html
>
But if I enabled this line
rgGantt.LocalizationPath =
"App_LocalResources/"
;
The content gantt chart does not shows.
What is wrong in my code?
I am having a problem getting a Live Tile to access a OData Web Service that return the following when called from a web browser when called with the following URL http://XXX.com/TService1/TileService.svc/GetLiveTileListData?tnMasterID=32
<?xml version="1.0" encoding="UTF-8"?>
-<GetLiveTileListData xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">
-<element m:type="OrderPageModel.GetLiveTileListData_Result1">
<nOrder m:type="Edm.Int32">3</nOrder>
<nUniverse m:type="Edm.Int32">666</nUniverse>
</element>
</GetLiveTileListData>
GetLiveTileListData is a imported stored procedure.
When I use the RadODataSource Configuration wizard nothing appears in the select Model list. If I change the service URL to http://XXX.com/tService1/TileService.svc/ only the Entity's appear, not the stored procedures.
I have been searching the internet for a way to map the stored procedure to an entity, but have had no success as I am new to the entity Framework and OData.
If you can help or point me in the right direction it would be greatly appreciated.
Hi,
Here's my scenario.
I have a diagram (3rd party control) and when a user selects a shape I want to highlight its properties in a toolbar (Telerik), which is also used to set the properties. So it needs to serve a dual purpose.
In particular, I need the appropriate RadToolBarButton item to be selected/highlighted in the RadToolBarSplitButton dropdowns. The value and image associated with the split button itself must not change.
For example, we have a splitbutton that allows the user to select the line style.
If the user selects a line, they would then open the dropdown to see what style had been applied to that line. The "button" would continue to show the last style that was selected and would apply that style should the user click it.
I hope that's clear.
Here's my declaration of the splitbutton:
<
telerik:RadToolBarSplitButton
runat
=
"server"
Value
=
"#style#1#5 0"
ToolTip
=
"Connector Style"
EnableDefaultButton
=
"False"
ImageUrl
=
"Images/Navvia/line-1px.png"
>
<
Buttons
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thin Solid"
Value
=
"#style#1#5 0"
ImageUrl
=
"Images/Navvia/line-1px.png"
Width
=
"130px"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thin Dotted"
Value
=
"#style#1#3 3"
ImageUrl
=
"Images/Navvia/dotted-1px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thin Dashed"
Value
=
"#style#1#7 7"
ImageUrl
=
"Images/Navvia/dashed-1px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Medium Solid"
Value
=
"#style#3#5 0"
ImageUrl
=
"Images/Navvia/line-3px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Medium Dotted"
Value
=
"#style#3#3 3"
ImageUrl
=
"Images/Navvia/dotted-3px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Medium Dashed"
Value
=
"#style#3#7 7"
ImageUrl
=
"Images/Navvia/dashed-3px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thick Solid"
Value
=
"#style#5#5 0"
ImageUrl
=
"Images/Navvia/line-5px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thick Dotted"
Value
=
"#style#5#3 3"
ImageUrl
=
"Images/Navvia/dotted-5px.png"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Thick Dashed"
Value
=
"#style#5#7 7"
ImageUrl
=
"Images/Navvia/dashed-5px.png"
>
</
telerik:RadToolBarButton
>
</
Buttons
>
</
telerik:RadToolBarSplitButton
>
I've tried locating the button to highlight using the following (without success):
function SetSelectedConnectorStyle() {
var toolbar1 = $find("<%=RadToolBar1.ClientID%>")
var connStyleButton = toolbar1.findItemByValue("#style#5#3 3");
connStyleButton.check();
}
The above finds the button, but checking it does not show any visual indication that it is selected when the dropdown is expanded.
Any suggestions?
Thanks in advance for any assistance.
Jim
I am trying to use the RadLiveTiles to display data from an oDataDataSource. If I create a different data source for each tile and set the OnClientDataLoading to a different function that sets the filter with the correct parameters for each tile everything works fine.
Since I will have many tiles I found this in your documentation
"Another option is to change the filter in the OnClientDataLoading event, because the event arguments expose the data source arguments. Essentially, the logic is the same, but you can apply filters per LiveTile (e.g., by using different OnClientDataLoading event handlers, see Example 8) and use the same ODataDataSource control."
However when I try this it is not working. The first tile works fine, but when the 2nd fires, it first calls the first over again, then the second, and the data returned is from the first. When the 3rd tile fires it again calls the 1st, then the 2nd then the 3rd and the data is the first when first initialized. When the first update interval occurs all tiles refresh at the same time, again with the data all being from the first tile
This is the code I am using
<script type="text/javascript">
function OnClientDataLoading(sender, args) {
alert("1")
args.get_value().filter.filters.push({
field: "MasterID",
operator: "eq",
value: 32
});
}
function OnClientDataLoading1(sender, args) {
alert("2")
args.get_value().filter.filters.push({
field: "MasterID",
operator: "eq",
value: 64
});
}
function OnClientDataLoading2(sender, args) {
alert("3")
args.get_value().filter.filters.push({
field: "MasterID",
operator: "eq",
value: 44
});
}
</script>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableTheming="True" />
</div>
<div>
<telerik:RadODataDataSource runat="server" ID="RadODataDataSource1">
<Transport Read-DataType="JSONP">
<Read Url="http://xxxxxx.com/tService1/TileService.svc/" />
</Transport>
<Schema>
<telerik:DataModel ModelID="opItemLiveTileData" Set="opItemLiveTileDatas">
<telerik:DataModelField FieldName="MasterID" />
<telerik:DataModelField FieldName="nOrders" />
</telerik:DataModel>
</Schema>
</telerik:RadODataDataSource>
<telerik:RadTileList runat="server" ID="RadTileList2" TileRows="4" Width="1300px" SelectionMode="Single" EnableDragAndDrop="false" BackColor="teal" AutoPostBack="false" >
<Groups>
<telerik:TileGroup>
<telerik:RadLiveTile ID="RadLiveTile3" runat="server" ODataDataSourceID="RadODataDataSource1" DataModelID="opItemLiveTileData" UpdateInterval="6000" OnClientDataLoading="OnClientDataLoading" AutoPostBack="false">
<ClientTemplate>
<strong>Loaded from ODataDataSource: </strong><br />
#= MasterID # <br></br> #= nOrders # <br></br>
</ClientTemplate>
</telerik:RadLiveTile>
<telerik:RadLiveTile ID="RadLiveTile1" runat="server" ODataDataSourceID="RadODataDataSource1" DataModelID="opItemLiveTileData" UpdateInterval="9000" OnClientDataLoading="OnClientDataLoading1" AutoPostBack="false">
<ClientTemplate>
<strong>Loaded from ODataDataSource: </strong><br />
#= MasterID # <br></br> #= nOrders # <br></br>
</ClientTemplate>
</telerik:RadLiveTile>
<telerik:RadLiveTile ID="RadLiveTile2" runat="server" ODataDataSourceID="RadODataDataSource1" DataModelID="opItemLiveTileData" UpdateInterval="11000" OnClientDataLoading="OnClientDataLoading2" AutoPostBack="false">
<ClientTemplate>
<strong>Loaded from ODataDataSource: </strong><br />
#= MasterID # <br></br> #= nOrders # <br></br>
</ClientTemplate>
</telerik:RadLiveTile>
</telerik:TileGroup>
</Groups>
</telerik:RadTileList>
<script type="text/javascript">
</script>
</div>
</form>
Any help would be greatly appreciated as my only alternative is to create a datasource for each tile.