Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
We have created a page that has a RadTreeView and have subscribed the OnClientKeyPressing event to a function. On IE 6 and 7 the event fires showing an alert but on Firefox it does nothing.

I have attached the aspx page contents below.

Regards
Russell

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="TreeTest.WebForm2" %>

 

<%

@ 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 runat="server">

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

 

<script type="text/javascript">

 

 

function test() {

 

alert(

'hello');

 

}

 

 

</script>

 

 

 

<div>

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" Skin="Outlook"

 

 

MultipleSelect="True" OnClientKeyPressing="test">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Root RadTreeNode1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 3">

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Root RadTreeNode2">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

 

 

<ExpandAnimation Duration="100"></ExpandAnimation>

 

 

</telerik:RadTreeView>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Atanas Korchev
Telerik team
 answered on 20 Nov 2008
3 answers
152 views
Hello,

I am a using a RadGrid with headers set to be right aligned.
I've removed the sort arrows.  The problem I have having is that everytime the column is sorted the header moves about 2px over to the left.  

The header will shift over if the column is sorted Asc, or Desc. 
However onces the sort returns to the original default order the header shifts back to be right aligned.

I want it to remain right aligned no matter what.  Only the header is getting shifted over, the items remain in place. 

This is a sample of my code for one of the columns.

<

 

telerik:GridBoundColumn DataField="ItemQty" HeaderText="Qty"

 

 

SortExpression="ItemQty" UniqueName="ItemQty" ShowSortIcon="false"

 

 

AllowFiltering="False">

 

 

<HeaderStyle HorizontalAlign="Right" Width="40px"></HeaderStyle>

 

 

<ItemStyle HorizontalAlign="Right" Width="40px"/>

 

 

</telerik:GridBoundColumn>

 


Any help on this matter will be greatly appreciated.

Thanks!
Dimo
Telerik team
 answered on 20 Nov 2008
1 answer
195 views
I'm trying to control column width based on the number of resources (fewer resources = wider column width) and window width. The main problems I'm having are getting a final resource count in codebehind without hitting event handlers multiple times (I'm currently using the DataBound handler; is there a better event that fires only once to get the final resource count?), as well as passing the window width to codebehind on page load.

Is there a way to set the RadScheduler ColumnWidth property in Javascript before calling repaint()?
Dimitar Milushev
Telerik team
 answered on 20 Nov 2008
1 answer
192 views
The treeview control requires a height value. If you omit it the control sets the default value. I need a treeview to expand its height based on the content without limit and thus not showing a vertical scroll bar.
How to achieve that?
Atanas Korchev
Telerik team
 answered on 20 Nov 2008
6 answers
427 views
We want to make the ability to see detailtables permission based.  some may get no detail tables, some may get detailtable 0 and others detailtable 1.  Users with no permissions should not see the "+" at all

 grid1.MasterTableView.DetailTables(0).Visible = False

doesn't seem to get the job done.  Any ideas?  Permissions won't be set until after a postback.
Idrise
Top achievements
Rank 1
 answered on 20 Nov 2008
1 answer
121 views
Found a bug involving image borders.

  1. Go here: http://demos.telerik.com/ASPNET/Prometheus/Editor/Examples/SaveInExternalFile/DefaultCS.aspx
  2. Add an image
  3. Go into image properties and set it's border to 2px, red.
  4. Save to file
  5. Image border appears correctly in the editor window
  6. Click the View external file (test.html) in a new window 
  7. Border does not appear

I believe this is caused by no "border style" being set. If I manually add in "solid" into the style applied to the image, then the border appears as expected.

Thanks,
John
Pyron Technologies
Rumen
Telerik team
 answered on 20 Nov 2008
4 answers
274 views
Hey,

For recurring appointments, if not using the DataSourceID option, but manually binding, do I have to create each and every appointment?  I'm testing this out by creating a new appointment, but it didn't create the recurring appointment in the scheduler.  How does the recurring appointments supposed to work?

Thanks.
Peter
Telerik team
 answered on 20 Nov 2008
1 answer
108 views
Hello,

In where the header of the scheduler is, where it shows the current day when in day view, is there a way to put some text next to the current date.  So where it may say:

Tuesday, November 18th 2008

I want to change it to do something like:

Tuesday, November 18th 2008 [Some additional text here]

Is that possible?

Thanks.
Peter
Telerik team
 answered on 20 Nov 2008
1 answer
134 views
Hi,

There is a section called "Creating ItemTemplate/EditItemTemplate of GridTemplateColumn programmatically" in http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html

What I did was to add the following code inside InstantiateIn function
myDropDownList = new DropDownList();
            myDropDownList.DataSource = myDataSource;
            myDropDownList.DataTextField = "resultLegend";
            myDropDownList.DataValueField = "resultOption";
            myDropDownList.DataBind();
            myDropDownList.Items.FindByValue("C+").Selected = true;

I assigned myDataSource and when I checked myDropDownList.Items, the dropdown list has lists I expected.
But the dropdownlist displays options but the default option is not selected.

Appreciate your help in advance,

Toby
Nikita Gourme
Top achievements
Rank 1
 answered on 20 Nov 2008
5 answers
322 views
Is it possible to open the editor in the HTML edit mode, but still retain the option to switch to the other edit modes?  Thank you.
Rumen
Telerik team
 answered on 20 Nov 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?