Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
299 views
Hi
I am using follwing javascript:

 

 

var grid;  
 
 
 
function RowSelected(rowObject) {  
 
var selRowName = this.GetCellByColumnUniqueName(rowObject, 'name');  
 
 
var selRowId = this.GetCellByColumnUniqueName(rowObject, 'id');  
}  
 
function GridCreated() {  
 
grid = this;  
 
}  
 

but the selrowName and selRowID throws me javascript error: 
"Object doesn't support this property or method"

I have tried following but didn't worked for me.
"Note: The ShowHeader attribute for the RadGrid/MasterTableView should be set to true in order to use this method."

Please help on this.

Sarang
Top achievements
Rank 1
 answered on 21 Apr 2009
3 answers
192 views
hi Community,

I have a problem with the RadMenItems.

I want to build up an Offie 2007 like Ribbon-Menu and review the sample for this.
My probem is that the main menu and its Menuitem the text aren't correctly allign.
First its displayed the picture and in the picture the text. I try a lot to padding the text
or something else but nothign helps.

Please see the picture

    http://x-nation.de/cp/Text-align-Firefox.jpg        (I don't wky but its shows correctly Oo)
    http://x-nation.de/cp/Text-align-IE.jpg                (IE8, possible the problem ?)

Can someone help me out.

How can i allign the text and the picture seperatly. I try to
fixed it in the css skin file but without success.

Thanks.
Christian

Alex Gyoshev
Telerik team
 answered on 21 Apr 2009
1 answer
91 views

Hi,

I have a 

RADComboBox control version 2.3.2.0. I have set the height and width of the RADComboBox control to a fixed value in pixels.

 

The RADComboBox shrinks in size whenever the client-side function AjaxRequest(arguments) is called or the event is fired with AjaxRequestWithTarget(eventTarget, eventArgument). The RADComboBox shrinks in size particularly when the monitor resolution is set above 1280*768 pixels.

 

Thanks,

Venkatesh Santhanam

Veselin Vasilev
Telerik team
 answered on 21 Apr 2009
4 answers
323 views
I have the following code related to a treeview control, where I'm trying to grab the value of a clicked node and use that value to reload a different pane with that url.  This is in the left page and I am reloading content in a right pane based on the node they click:

The problem right now is that this is failing:

var splitter = $find("<%= RadSplitter1.ClientID %>");

 

 

var rightPane = $find("<%= rightPane.ClientID %>");

 

 

 

I am trying to grab the client id values of the splitter and then the right hand pane, but those references are not valid.

<%

@ Page Language="C#" AutoEventWireup="true" Codebehind="HelpTree.aspx.cs" Inherits="X.HelpScreens.Views.HelpTree"

 

 

Title="HelpTree" MasterPageFile="~/Shared/Help.master" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<

 

asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">

 

<

 

script type="text/javascript" language="javascript">

 

 

function ClientNodeClicked(sender, eventArgs) {

 

 

var node = eventArgs.get_node();

 

alert(

"You clicked " + node.get_text() + " with " + node.get_value());

 

 

var splitter = $find("<%= RadSplitter1.ClientID %>");

 

 

var rightPane = $find("<%= rightPane.ClientID %>");

 

 

var pane = splitter.getPaneById(rightPane);

 

 

if (pane) {

 

pane.set_contentUrl(node.get_value());

}

 

else {

 

alert(

"Pane with ID '" + rightPane + "' not found.");

 

}

}

</

 

script>

 

 

<table cellpadding="5">

 

 

<tr>

 

 

<td>

 

 

<telerik:RadTreeView ID="RadTreeView1" Runat="server"

 

 

EnableEmbeddedSkins="False" Skin="X"

 

 

OnClientNodeClicked="ClientNodeClicked">

 

 

</telerik:RadTreeView>

 

 

</td>

 

 

</tr>

 

 

</table>

 

</

 

asp:Content>

Here is the overall page that contains this treeview page in one pane and help content in a right pane:

 

<%

@ Page Language="C#" AutoEventWireup="true" Codebehind="HelpDialog.aspx.cs" Inherits="X.HelpScreens.Views.HelpDialog"

 

 

 

 

 

Title="HelpDialog" MasterPageFile="~/Shared/Help.master" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

 

<

 

asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">

 

 

 

 

 

<telerik:RadSplitter ID="RadSplitter1" Runat="server" Height="470"

 

 

LiveResize="True" Orientation="Vertical" Skin="X" Width="100%">

 

 

 

 

 

<telerik:RadPane ID="leftPane" Runat="server" BackColor="#F0F0F0"

 

 

ContentUrl="HelpTree.aspx" Width="33%">

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

<telerik:RadSplitBar ID="RadSplitBar1" Runat="server" CollapseMode="Forward"

 

 

Width="25px" />

 

 

 

 

 

<telerik:RadPane ID="rightPane" Runat="server" BackColor="#CCFFCC"

 

 

ContentUrl="Default.aspx">

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

</telerik:RadSplitter>

 

</

 

asp:Content>

In case it matters, here's the master page below.

Given this info, what's the correct way to get references to the right pane so I can call its set_contentUrl method?

Thx

Master page is:

 

<%

@ Master Language="C#" AutoEventWireup="true" Codebehind="Help.master.cs"

 

 

 

 

 

Inherits="X.Shell.MasterPages.Help" %>

 

 

 

<!

 

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

 

 

 

 

 

<title><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:WebResources, HelpTitle %>"/></title>

 

 

 

 

 

<link href="/common.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="/help.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="../Skins/X/Splitter.LiquidBrochure.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="../Skins/X/PanelBar.LiquidBrochure.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="../Skins/X/Slider.LiquidBrochure.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="../Skins/X/Splitter.LiquidBrochure.css" rel="stylesheet" type="text/css" />

 

 

 

 

 

<link href="../Skins/X/TreeView.LiquidBrochure.css" rel="stylesheet" type="text/css" />

 

</

 

head>

 

<

 

body>

 

 

 

 

 

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

 

 

 

 

 

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

 

 

 

 

 

</asp:ScriptManager>

 

 

 

 

 

<div id="content">

 

 

 

 

 

<asp:ContentPlaceHolder ID="DefaultContent" runat="server" />

 

 

 

 

 

<div id="helpfooter">

 

 

 

 

 

<table style="width:100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td>

 

 

 

 

 

&nbsp;

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Svetlina Anati
Telerik team
 answered on 21 Apr 2009
1 answer
157 views
Hello experts,

with which property can I fix the Column width so that the user can't resize the column with?

Thanks

Christian
Princy
Top achievements
Rank 2
 answered on 21 Apr 2009
2 answers
337 views

Hello,

I am trying to set up a rad grid to render two table rows for each data item. This is because of the way the data needs to be displayed, an approximation of which is below:

____________________________________________________

|____Field1_____|_______Field2______|_______Field3_______|

|____________Field4 (Long Text Field)_____________________|

So far, the only way I have found to do this is by using the "NestedViewTemplate" property of the MasterTableView. So my first question is, is there a better way of doing this, or is the "NestedViewTemplate" my only option?

Secondly, if the "NestedViewTemplate" is the only way to do it, then how do I remove the automatically generated column which has the button to expand the nested view template? I will be using "HierarchyDefaultExpanded" property of the MasterTableView to make sure the nested view is always displayed, but I don't want users to be able to hide it. Obviously, the buttons could be hidden using CSS, but that still leaves the column generated for them, and no specific CSS classes appear to be applied to it so I cannot use CSS to hide the column (also cannot use CSS selectors (i.e. GridRow>td:first-child) for reasons beyond the scope of this question).

Any help much appreciated,

Andrew

Andrew
Top achievements
Rank 1
 answered on 21 Apr 2009
2 answers
202 views
Hi

When I invoke the above method from javascript is there anyway of giving it a clientside callback to fire when it completes?

If not how would you suggest I return something to the client after i've called the ajaxRequest method? So for instance I supply it with an ID and it returns a persons name which I then display on the page somewhere.

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 21 Apr 2009
1 answer
155 views
I am tying to set the chart title using the line of code shown below

RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font.Name =

"Arial";

however, when I try to compile this code I get error

Property or indexer 'System.Drawing.Font.Name' cannot be assigned to -- it is read only C:\Test_Prog\Chart\Default.aspx.cs

Is there a way to set the Char Title's font programmatically?

 

Dessy
Telerik team
 answered on 21 Apr 2009
3 answers
201 views
We are using a checkbox check to open a radwindow.  This works great.   However the checkbox does not remain checked.

Any ideas?

Thanks
Georgi Tunev
Telerik team
 answered on 21 Apr 2009
1 answer
78 views
Hi there,

I've created a simple export page using the RadGrid and exporting to Excel. I'm fairly sure there's no footprint, but I'd like to know for sure. Are any files stored anywhere on the server when the export occurs? We need to be certain the exported file does not sit on the web server.

Thanks so much for any assistance,

Marco

Yavor
Telerik team
 answered on 21 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?