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

 


I have a basic setup like below for a grid. I just want to have the gradient padded background on the details table that  a lot of the samples have in order to improve how the data appears. I believe it has something to do with the nestedview settings, but I'm not sure how to use it with the detailtables view. For instance, it looks like the samples apply a viewwrap css class to the details, but they all use outputted html, while i'm using a gridtableview. I'm not sure how to apply it in my situation.

<
telerik:RadGrid ID="DevelopmentGoalGrid" runat="server" ..>

 

 

<MasterTableView DataKeyNames="GoalId" DataSourceID="GoalsData" HierarchyDefaultExpanded="true"

 

 

TableLayout="Auto" AllowPaging="false">

 

 

<DetailTables>

 

 

<telerik:GridTableView Name="ActivityDetails" DataKeyNames="ActivityId" Width="100%"

 

 

runat="server" AutoGenerateColumns="false" AllowPaging="false" CssClass="viewWrap" nes >

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="GoalId" MasterKeyField="GoalId" />

 

 

</ParentTableRelation>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridButtonColumn Text="Select" ButtonType="LinkButton" CommandName="SelectActivity" />

 

 

<telerik:GridBoundColumn HeaderText="Activity" UniqueName="ActivityName" DataField="Name"

 

 

SortExpression="Name">

 

 

</telerik:GridBoundColumn></Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn Visible="True">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

Dimo
Telerik team
 answered on 14 Sep 2009
3 answers
139 views
Hi,

The following code produces the right output the first time the button is pressed.
But the second time and there after all menu items will return false when calling get_selected()

Version: Telerik.Web.UI 2009.02.0836.35

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<!

 

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>

 

 

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

 

 

 

 

function populateContextMenu()

 

{

 

var ctxMenu = Sys.Application.findComponent('ctx');

 

ctxMenu.get_items().clear();

 

for (var i = 0; i < 10; i++)

 

{

 

var menuItem = new Telerik.Web.UI.RadMenuItem();

 

ctxMenu.get_items().add(menuItem);

menuItem.set_value(i.toString());

menuItem.set_text(i.toString());

 

 

 

 

if (i == 2)

 

{

menuItem.set_selected(

true);

 

}

Sys.Debug.trace(i.toString() +

': ' + menuItem.get_selected());

 

}

 

return false;

 

}

 

</script>

 

</

 

head>

 

<

 

body>

 

 

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

 

 

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

 

 

<div>

 

 

 

<telerik:radcontextmenu id="ctx" runat="server" skin="Black" >

 

 

 

</telerik:radcontextmenu>

 

 

<asp:Button ID="btn" Text="Populate" runat="server" OnClientClick="populateContextMenu(); return false;" />

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Yana
Telerik team
 answered on 14 Sep 2009
5 answers
137 views
Hi everyone,

i need XML defination for the telerik menu with all the features that xml file support and include like url,group,text...


Its very urgent for me.

thanks

Yana
Telerik team
 answered on 14 Sep 2009
1 answer
150 views
Hello,

I'm trying to integrate RadToolTip with RadTreeView, The user can choose to enter a new column name in the tooltip and on a button click the tool tip, the treeView node name would be updated. I'm using a UserControl to display the controls in the tool tip. 
The button click event on the tooltip user control calls an UpdateNodeName method on the client side, which does the update on the nodename...I've used treeview.trackChanges() and commitChanges(), but the changes are lost on postback. 
 protected void btnAddColumn_Click(object sender, EventArgs e) 
        { 
            string sType = NodeName.Substring(NodeName.IndexOf('(') + 1, NodeName.IndexOf(',') - (NodeName.IndexOf('(') + 1)); 
            NodeName = txtColumnName.Text + "(" + sType + "," + txtLength.Text + ")"; 
            string strScript = string.Empty; 
            strScript += "UpdateNodeName('" + NodeID + "','" + NodeName + "','" + txtLength.Text + "','"+BaseID+"');"; 
            ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "WebUserControlScript", "CloseActiveToolTip();" + strScript, true); 
        } 
 function UpdateNodeName(nodeID, nodeName, attLength, selTreeID) { 
    
    var SelectedTree = $find(selTreeID); 
    if (SelectedTree != null) { 
        SelectedTree.trackChanges(); 
        var RootNode = SelectedTree.get_nodes().getNode(0); 
        if (RootNode != null) { 
            var Node = FindNodeByNodeID(RootNode, nodeID); 
            if (Node != null) { 
                //Node.get_treeView().trackChanges(); 
                Node.set_text(nodeName); 
                SelectedTree.commitChanges(); 
                Node.get_treeView().trackChanges(); 
                Node.get_attributes().setAttribute("attlength", attLength); 
                Node.get_treeView().commitChanges(); 
            } 
             
            //Node.get_treeView().commitChanges(); 
        } 
        
    } 
} 

I would appreciate any help with this problem,

Thank you,
Phani
Yana
Telerik team
 answered on 14 Sep 2009
2 answers
64 views
I have installed RadControls for ASP.NET AJAX Q2 2009 SP1
when i drag a control from the tool box to an aspx page
I am getting an error

see a screnn shot bellow
http://www.screencast.com/users/sujithu/folders/Jing/media/e4600c05-6047-42df-8a5a-e0e0afecc9b7
if i am draging the control in desing  mode of the aspx file the.
not control is added to the aspx file
what can i do.

PureRamu
Top achievements
Rank 1
 answered on 14 Sep 2009
1 answer
162 views
Hi,

We are using radwindow control of Prometheus Q2 2009 version. While printing data in radwindow, The parent pages data is also getting printed.

Problem:  While printing contents in radwindow using javascript:window.print(), both the parent window and radwindow content are  getting printed. Is there any option to print the radwindow content alone while doing client side printing.

Thanks
Shinu
Top achievements
Rank 2
 answered on 14 Sep 2009
1 answer
124 views
Hi
Iam using Rad editor in firefoex and IE and it work fine , when I use it on Mac computer I press upload image ( or any onther type ) then I try to press select but nothing happen , is Rad Editor have problem with mac computers

Thanks

Lini
Telerik team
 answered on 14 Sep 2009
5 answers
286 views
hello

i tried for days and also searched for old forum threads but i couldn't find an answer to my specific problem.

i create a big radgrid with some invisible columns dynamically.
there are about visible 15 columns inside the grid and i set horizontal scroll, frozencolumns,headerwith, UseStaticHeaders="true" SaveScrollPosition="true", tablelayout to fixed in the parent item, overflow:hidden for radgrid.

if i set the frozencolumns to 2 the grid nearly works perfectly, it cuts a little of the last column
but if i set the frozencolumns to 5 which is needed for our scenario the scroll does not reach the last few columns.
i can jump to the last columns by pressing tab but the scroll ends before.

do you have any hint for this specific problem?
i am using IE as browser.

Dimo
Telerik team
 answered on 14 Sep 2009
1 answer
91 views
I have a page with 10 RadComboBoxes with the auto-complete functionality setup. When I am in one combobox I can type and select everything perfectly. If I hit "tab" though, the next control gets focus but if you start typing the list doesn't autocomplete until I hit the down arrow. Is there a way to make it autocomplete automatically upon focus?
Yana
Telerik team
 answered on 14 Sep 2009
6 answers
117 views
I am curious if the rad grid pdf function that is native to the control can print and persist the groups that have been done on the client side. The export to excel works fine but im curious about the grouping aspect.

Thanks
John
Daniel
Telerik team
 answered on 14 Sep 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?