DataClasses1DataContext db = new DataClasses1DataContext();
var q = from v in db.vagtPlans
where v.start < v.slut
select new { v.vagt_dato, v.start, v.slut, kommentar = String.Concat(v.start.Value.ToShortTimeString(),v.kommentar) };
this.RadScheduler1.DataSource = q;
this.RadScheduler1.Rebind();
DataClasses1DataContext db = new DataClasses1DataContext();
var q = from v in db.vagtPlans
where v.start < v.slut
select new { v.vagt_dato, v.start, v.slut, kommentar = v.kommentar };
this.RadScheduler1.DataSubjectField = "start + slut";
this.RadScheduler1.DataSourceID = null;
this.RadScheduler1.DataSource = q;
this.RadScheduler1.Rebind();
How do i do this, is there somewhere where i can change what the Scheduler renders as subject or ?
function
RadTreeView1_OnNodeClick(sender, eventArgs)
{
var tree = $find("ctl00_Main_RadTreeView1");
var node = tree.get_selectedNode();
if(node)
{
node.expand();
if (node.get_value() != '-1')
{
if(node.get_checked())
{
//node.set_checked(false);
node.uncheck();
}
else
{
node.set_checked(true);
node.check();
__doPostBack('ctl00$Main$RadTreeView1', '{"commandName":"Check","index":"1:0"}');
}
}
}
}
This is the only way that I can seem to get the code to fire, however I can't seem to find the index of the checkbox I'm firing the code from. Is there a method to pull the placement index of the child node, eg. 1:0 from the inbuilt methods or am I going to have to add a loop to the treeview to try and build this manually?
Any help would be greatly appreciated.
Cheers
Dale
var editor = $find("<%=txtEditor.textEditor.ClientID%>");
var openArgs = {};
openArgs.sender =
'AppendixRule';
editor.fire(
'TP_EditRule', openArgs);
These parameters can then be read using javascript in the dialog. However I was wondering if there is a way to read these on the server side page load of the ASCX control? ie ...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'HERE
End Sub
Thanks
David

<telerik:RadMenu ID="RedMenuControl" Skin="RadControls/Skins/Inox/Menu.Inox.css" EnableEmbeddedSkins="false" runat="server">
</telerik:RadMenu>
C# codeParentMenuItem =
new RadMenuItem();
ParentMenuItem.CssClass =
"rmRootGroup";
ParentMenuItem.Text = "Name";
RedMenuControl.Items.Add(ParentMenuItem);
Hello,
I have a RadGrid with a ASP:Image in it, i would like to set the image url, i have it stored as a string in the Datasource of the Radgrid. But i can not seem to figure out how to get this value back. This is what i have so far :
<telerik:GridTemplateColumn UniqueName="TemplateColumn">
<ItemTemplate>
<asp:Image ID="Image1" ImageUrl="<% = %>" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
All i need is the javascript code that goes in the <%= %> that returns the value of the Datasource field "pad".
Thanks in advance,
Niels ter Horst