Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
201 views
Hi

Iam trying to bind some data to a RadSchedueler, my problem however is that i would like multiple information to be shown, starttime, end time, comment and type

First i tried using LinQ to retrieve the information however it cannot format the information correctly while also Concattinating the strings.

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();

Then i were optimisting and thought maybe i could do it in the DataSubjectField, not possible.

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 ?

Yana
Telerik team
 answered on 21 Jul 2008
2 answers
224 views
Hi,

I'm trying to fire an an OnNodeCheck event from Javascript when the node is selected using the following code:

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

Dale Palmer
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
98 views
I use the RadTreeView Client-Side Object - "Classic" into an existing project. 

I would like to migrate from RadTreeView for ASP.NET to ASP.NET AJAX. I am really interristing on migrating to RadTreeView ASP.NET AJAX.

I would like to know the advantages of using the RadTreeView for ASP.NET AJAX instead of the RadTreeView Classic. Is it really similar ? (more possibilities, ...) ?  

Thanks in advance,
 
Veselin Vasilev
Telerik team
 answered on 21 Jul 2008
5 answers
217 views
Hello

I tried to export the Radgrid data, but the exported PDF was not in the proper format. The columns and the items are not aligned properly.

Can you please tell me any sample application for the same? Or do I need to change my settings while exporting it to the excel?

They are seen like following..

                          Column1                         Column2

row1col1Data                              row1col1Data
row2col2Data                              row2col2Data

Below is my sample code for your reference:

Me.grdview.ExportSettings.OpenInNewWindow = True
Me.grdview.ExportSettings.ExportOnlyData = True
Me.grdview.ExportSettings.IgnorePaging = True
Me.grdview.ExportSettings.FileName ="sampleData"
grdview.MasterTableView.ExportToPdf()

Regards,
Vinit

Sebastian
Telerik team
 answered on 21 Jul 2008
2 answers
144 views
Hi

I'm aware we can pass parameters over when open a dialog via javascript as below:



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

David
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
513 views
Hi,

I am using the RadEditor (for ASP.NET AJAX). Very nice component.

I noted that the default language of RadEditor is English. I would like to change the default language, and choose 'French'. Is it possible ? 

I didn't find informations into this page :
http://www.telerik.com/help/aspnet-ajax/usingglobalresourcefiles.html

Thank you,

Rumen
Telerik team
 answered on 21 Jul 2008
2 answers
225 views
Hi,

I have created a red menu dynamically in *.ascx.

How can i apply CSS or Skin in user control ( *.ascx.cs )? Can you give me working C# example of it.

As documentation say, i made enableEmbadedSkin="False" .... and try to run code like that 

<telerik:RadMenu ID="RedMenuControl" Skin="RadControls/Skins/Inox/Menu.Inox.css"  EnableEmbeddedSkins="false" runat="server">

</telerik:RadMenu>

C# code
---------

ParentMenuItem =

new RadMenuItem();

ParentMenuItem.CssClass =

"rmRootGroup";

ParentMenuItem.Text = "Name";

RedMenuControl.Items.Add(ParentMenuItem);




How would i use all feature (rollover, color, images etc)  of style by using C# as i am creating "user Control".

Please send me response ASAP, my project is stuckup because of this menu.

Hope to hear you fast.

Aamir
Aamir
Top achievements
Rank 1
 answered on 21 Jul 2008
3 answers
175 views
I could not find any Sample Projects for RadToolTip control that I can download and look into. Please let me know where are the sample projects for the RadToolTip control.  Thank you;
Svetlina Anati
Telerik team
 answered on 21 Jul 2008
3 answers
125 views

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

Niels
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
57 views
  I am using RadGrid Control of asp.net ajax Q1 2008
Query.

In first grid  
1> It is not showing column name when binding table have no data.       
In second grid. I use skin as Outlook for the grid

2>Radgrid Headerwidth and itemwidth is not showing same, even though i set same hederwidth and itemwidth .I use skin as Outlook for the grid.
 

3>In radgrid on pageindex change it showing loading panel sometime and sometime it not showing loadingpanel.
Princy
Top achievements
Rank 2
 answered on 21 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?