How to change Some columns in RadGant to ReadOnly ="true"
Colums Default
and Colums GanttCustomField
Is there a way to determine the parent radwindow of a rad button contained in a contenttemplate in client-side javascript?
e.g. if I have two radwindows, each with a radbutton, and each radbutton calls a common OnClientClicking event, is there a way to determine the parent window from the button object in the common code?
<
telerik:radWindow
runat
=
"server"
ID
=
"radwindow1"
>
<
contenttemplate
>
<
telerik:radbutton
id
=
"radbutton1"
runat
=
"server"
onclientclicking
=
"CommonFunction"
/>
</
contenttemplate
>
</
telerik:radwindow
>
<
telerik:radWindow
runat
=
"server"
ID
=
"radwindow2"
>
<
contenttemplate
>
<
telerik:radbutton
id
=
"radbutton2"
runat
=
"server"
onclientclicking
=
"CommonFunction"
/>
</
contenttemplate
>
</
telerik:radwindow
>
<
script
>
function CommonFunction(button, eventArgs) {
var radWindow = ...how to determine which radwindow from the button element? ...
}
</
script
>
Hi,
I can't get the buttons to work with toggletype Radio when I generate them in a repeater list.
Buttons are the same as from your demo,
Please see for example here: http://eschpla.ontwikkelruimte.nl/nl/schoenen/ballerinas/blauw/lolo-capri-ballerina-donkerblauw-suede-3341
Upper list is from repeater, second from your demo.
Any clue why the first set isn't working properly?
Thanks,
Marc
When I take a Radmenu on master page and a Radgrid on .aspx page my Radgrid's headercontext filter opens from the top of the page otherwise it goes inside the Radmenu. How I resolve it?
Following is the Screen Shot of my problem's output:-
Hello,
I have a weird problem. I want to start using the multicolumncombobox. But when I have multicolumncombobox and kendogrid on one page, calling data("kendoGrid") on the grid DIV will return undefined. If i remove the multicombo, it returns object of the kendogrid. This is a simplified situation, in our project I get errors from kendo JS library, when I need to open a dialog with kendogrid or when I use maskedtextbox. Because both need to reference some object using jQuery data() function. Am I doing something wrong?
This is my test code, button returns kendogrid object, but only with multicombo commented out:
using
System;
using
System.Configuration;
using
System.Web;
using
Telerik.Web.UI;
public
partial
class
TEST1 : System.Web.UI.Page
{
protected
void
Page_Init(
object
sender, EventArgs e)
{
System.Web.UI.Page currentPage = (System.Web.UI.Page)HttpContext.Current.CurrentHandler;
RadScriptManager RadScriptManager = (RadScriptManager)currentPage.FindControl(
"RadScriptManagerMain"
);
RadScriptManager.Scripts.Add(
new
System.Web.UI.ScriptReference((String.Format(
"~/js/jquery.min.js?{0}"
, ConfigurationManager.AppSettings[
"Application_Version"
]))));
RadScriptManager.Scripts.Add(
new
System.Web.UI.ScriptReference((String.Format(
"~/js/jszip.min.js?{0}"
, ConfigurationManager.AppSettings[
"Application_Version"
]))));
RadScriptManager.Scripts.Add(
new
System.Web.UI.ScriptReference((String.Format(
"~/js/kendo.all.min.js?{0}"
, ConfigurationManager.AppSettings[
"Application_Version"
]))));
}
}
<%@ Page Title="TEST1" Language="C#" AutoEventWireup="true"
CodeFile="TEST1.aspx.cs" Inherits="TEST1" %>
<!DOCTYPE html>
<
html
>
<
head
runat
=
"server"
>
<
title
>TEST1</
title
>
</
head
>
<
body
>
<
telerik:RadScriptManager
runat
=
"server"
EnableScriptCombine
=
"false"
ID
=
"RadScriptManagerMain"
LoadScriptsBeforeUI
=
"true"
OutputCompression
=
"AutoDetect"
AsyncPostBackTimeout
=
"36000"
ScriptMode
=
"Release"
>
</
telerik:RadScriptManager
>
<
div
id
=
"multicombo"
>
<
telerik:RadMultiColumnComboBox
ID
=
"RadMultiColumnComboBox1"
runat
=
"server"
GroupByField
=
"Country"
Filter
=
"Contains"
DropDownWidth
=
"500"
Height
=
"400"
Width
=
"100%"
Placeholder
=
"select from the dropdown or type"
DataTextField
=
"ContactName"
DataValueField
=
"CustomerID"
MinLength
=
"3"
EnforceMinLength
=
"false"
>
<
WebServiceSettings
Select-ContentType
=
"JSON"
ServiceType
=
"OData"
</
WebServiceSettings
>
<
ColumnsCollection
>
<
telerik:MultiColumnComboBoxColumn
Field
=
"CustomerID"
Title
=
"ID"
/>
<
telerik:MultiColumnComboBoxColumn
Field
=
"ContactName"
Title
=
"Name"
/>
</
ColumnsCollection
>
</
telerik:RadMultiColumnComboBox
>
</
div
>
<
br
/>
<
div
id
=
"kendogrid"
></
div
>
<
br
/>
<
button
onclick
=
"getdata()"
>Call data("kendoGrid) on grid</
button
>
<
script
>
$(document).ready(function () {
$("#kendogrid").kendoGrid({
columns: [{
field: "FirstName",
title: "First Name"
},
{
field: "LastName",
title: "Last Name"
}],
dataSource: {
data: [{
FirstName: "Joe",
LastName: "Smith"
},
{
FirstName: "Jane",
LastName: "Smith"
}]
}
});
});
function getdata() {
alert($("#kendogrid").data("kendoGrid"));
}
</
script
>
</
body
>
</
html
>
Hi,
if I close RadWindow and then reopen it using .setVisible(true) on client side - close button in window title not working anymore. Is it possible to fix this?
here a sample page, press open, close window, press reopen, try to close - nothing happens.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
>
<
script
type
=
"text/javascript"
>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function TestCloseDates() {
var manager = GetRadWindowManager();
var oWnd = manager.getWindowById('wndDates');
oWnd.setVisible(true);
//oWnd.restore();
oWnd.setActive(true);
}
</
script
>
</
head
>
<
body
>
<
form
id
=
"Form1"
method
=
"post"
runat
=
"server"
>
<
input
type
=
"button"
value
=
"Open"
onclick
=
"window.radopen('', 'wndDates');"
/>
<
input
type
=
"button"
value
=
"Reopen"
onclick
=
"TestCloseDates();"
/>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
/>
<
telerik:RadWindowManager
ID
=
"wnd1"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
Height
=
"365px"
Width
=
"375px"
ID
=
"wndDates"
runat
=
"server"
ReloadOnShow
=
"True"
>
<
ContentTemplate
>
Hi There!
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
</
form
>
</
body
>
</
html
>
Thanks,
Alex