Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Hi
I need to use a standalone image editor and have used the example found here:
http://www.telerik.com/community/forums/thread/b311D-bemgcg.aspx

However all i need to do is save the image name to my database so i have adjusted the JavaScript as followed:

function ImageManagerFunction(sender, args)
{
var selectedItem = args.SelectedItem;
var resultImageObject = args.Result;
var Filename;
var txt = $get('<%= txtLinkImage.ClientID %>');
if (document.all)
{
Filename = selectedItem.getPath();
txt.value= Filename.replace('/media/content/','');
}
else
{
txt.value = selectedItem.getPath();
}
}

PROBLEM:
If I re-open the editor it does not show the selected image on the righthand side. Does anyone know a work around.

Many thanks
T
George
Telerik team
 answered on 17 Oct 2008
4 answers
131 views
Hi,

Is it possible to somehow define the YAxis layout mode just like what you can do with XAxis -> LayoutMode="Between"?

Thanks & regards,
Pete
Pete
Top achievements
Rank 1
 answered on 17 Oct 2008
1 answer
99 views
Well, I guess that the title of this post is descriptive enough to clarify the problem.
I'm trying to use ValidatorCalloutExtender control from Ajax Control Toolkit and combine it with RadControls (RadDatePicker, RadNumericTextBox etc.)

Unfortunatelly, dynamic adding of CSS class (by ValidatorCalloutExtender.HighlightCssClass property) doesn't work on Teleriks.

I include a sample application that exposes this problem:
http://tinyurl.com/4hmqxg
( In order to compile it, Telerik dll need to be copied to /Bin folder)

Any help will be appreciated.
Missing User
 answered on 17 Oct 2008
2 answers
122 views
I am trying to create an hierarchical menu using RadPanelBar and Database data

Here are some sample data of my table:
CmaNodeId         ParentID     ValueText
       1                      null              Text1
       2                        1               Text2
       3                        1               Text3
       4                       null             Text4
       5                         4              Text5

These data are supposed to create something like this:
Text1
   Text2
   Text3
Text4
   Text5

Instead i get a
Text1
Text2
Text3
Text4
Text5
all nodes becoming parent

<telerik:radpanelbar id="RadPanelBar1" runat="server" DataSourceID="LLBLGenProDataSource2_2" 
    skin="Black" ExpandMode="FullExpandedItem"  
    DataFieldID="CmaNodeId"  
    DataFieldParentID="ParentId"  
    DataTextField="ValueText"

Anyone has an idea what i am doing wrong is something so simple?
Thanks in advance

Ed
Top achievements
Rank 1
 answered on 17 Oct 2008
1 answer
157 views
Hi.

Fairly new to a couple of the telerik controls, so I'm not even sure which one I should use for my application.  But essentially, I'm looking for something of a gantt chart for multiple projects, each with a certain number of (color-coded) phases.  All phases for a given project would be in-line with each other, so it would, in effect, be a horizontal stacked-bar chart, with a 12-month axis.  As each project can start and stop at a different date, the bars must be able to begin and end anywhere within the chart.

Thoughts?  Is there an example anywhere?  Seems like a pretty routine application, so I'm sure someone has ideas.

Thanks in advance.

John
Peter
Telerik team
 answered on 17 Oct 2008
3 answers
396 views
Hi,

I've got a Radgrid with a detailTable and I want to add an onclick attribute using the ItemCreated function.

I have done this previously in a RadGrid using the following code:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem){
HyperLink editLink = (HyperLink)e.Item.FindControl("UserResults");
editLink.Attributes[
"href"] = "#";
editLink.Attributes[
"onclick"] = String.Format("return ShowUserResults('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["AssessmentId"], e.Item.ItemIndex);}
}


However I am having some trouble referencing the hyperlink now it is in a detailTable.
Can anyone help me rewrite my code to add the attribute to the 'IndividualResults' hyperlink in the following radgrid/detailTable:

 

<telerik:RadGrid ID="RadGrid2" runat="server" Skin="WebBlue" EnableEmbeddedSkins="False"GridLines="None" AllowMultiRowSelection="true" ShowStatusBar="false" ShowFooter="false" ImagesPath="~/img/Grid/" AutoGenerateColumns="False" OnItemCreated="RadGrid2_ItemCreated">

<
MasterTableView AutoGenerateColumns="False" DataKeyNames="UserId">
<Columns>
<telerik:GridBoundColumn DataField="UserId" HeaderText="UserId" ReadOnly="True" SortExpression="UserId" UniqueName="UserId" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StudentName" HeaderText="Name" ReadOnly="True" SortExpression="StudentName" UniqueName="StudentName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UserName" HeaderText="Username" ReadOnly="True" SortExpression="UserName" UniqueName="UserName">
</telerik:GridBoundColumn>
</Columns>

 

 

<DetailTables>
<telerik:GridTableView DataKeyNames="UserId" Width="100%" Name="IndividualAssessments" runat="server" TableLayout="Fixed" AutoGenerateColumns="false" CssClass="subForm">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="UserId" MasterKeyField="UserId" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn DataField="UserId" HeaderText="UserId" ReadOnly="True" SortExpression="UserId" UniqueName="UserId" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="IndividualResults" HeaderText="Results">
<ItemTemplate>
<asp:HyperLink ID="IndividualResults" runat="server">
<asp:Image ID="imgResults" AlternateText="Individual results" ImageUrl="../img/grid/status_report.gif" runat="server" />
</asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="AssessmentName" HeaderText="Name" ReadOnly="True" SortExpression="AssessmentName" UniqueName="AssessmentName">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>

</telerik:RadGrid>

 

pbarron
Top achievements
Rank 1
 answered on 17 Oct 2008
1 answer
119 views
I've added RadEditor via CreateChildControls in a web part. I'm trying to access the RadEditor to insert some text via javascript, but not having much success. I tried getting the RadEditor with GetRadEditor, but that method doesn't seem to exist. Same goes to get_html(). Is there any js files that I need to add?
Lini
Telerik team
 answered on 17 Oct 2008
1 answer
105 views
I have a loading panel associated with a RADGrid, whenever the grid makes an AJAX call, the loading panel attempts to display the loading.gif

All I get is the red cross, so the .gif cant be found.  Ive used an example from the Teleik examples, but it just doesnt display the .gif

src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Web20.Ajax.loading.gif") %>' 
  can anyone tell me why ?
Maria Ilieva
Telerik team
 answered on 17 Oct 2008
1 answer
178 views
Hi
In my application,I used Date Picker & time picker seperately.
I use the below code to avoid null values

If

 

  RadDatePicker1.IsEmpty Then
RadDatePicker1.SelectedDate = "01/01/2000"
End If

My problem is how to clear the data in raddatepicker1 when clicking new button
Also when I retrieve the data from the database, if the date in the database is "01/01/2000"
,I need the raddatepicker1 control data is empty.

 

Princy
Top achievements
Rank 2
 answered on 17 Oct 2008
7 answers
218 views
Hello,

How can I have a dual handle slider with vertical orientation use 100 at the top, and 0 at the bottom?  Also, the tooltips when you drag the handles.

Thanks,
John
Petio Petkov
Telerik team
 answered on 17 Oct 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?