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

I have a RadCalendar inside an asp:Repeater, and am trying to find out how I can know from what # RepeaterItem a

"OnSelectionChanged" event is coming from.
I.e. What I am trying to do is, when a date is clicked in my RadCalendar I need to know the state of a CheckBox inside the same RepeaterItem.

I have looked at the following candidates to do this:

1. Through Repeater_ItemCommand, but RadCalendar does not support attribute "CommandName", and this event does not seem to fire for the Repeater control when a date in radControl is clicked.

2. By trying to find the active RepeaterItem in event handler "SelectedDateChange(object sender, SelectedDatesEventArgs e)". Tried using the FindControl() through .Parent.Parent... but without luck.

would love help on this
Axel G.

 

Axel
Top achievements
Rank 2
 answered on 14 Sep 2009
5 answers
323 views
Hi.,

Can i know how to Expand the row When i DoubleClick On the RadGrid  "SelectedRow"

Thank you
Suresh K
Top achievements
Rank 1
 answered on 14 Sep 2009
1 answer
94 views
Hello,

This was logged as a support ticket too.  Using Telerik 2008.3.1125.35, the RadSpell spellcheck popup interface looks very bad.  It's not rendering any of the styles that I can see, though it is referencing the parent class correctly.

Now I am using a custom skin, and it works for everything else... it does look like it's referring to the correct class here, but no styles get applied.  For the spell checker popup, is there anything else I need to setup when using a custom skin?

Thanks.
Martin
Telerik team
 answered on 14 Sep 2009
21 answers
839 views
Hi, is there any issue that may let scrollbar position reset to the top after RadAjaxManager update a region?

I try to dynamically load user controls in the Templated Columns, but after load it, the scrollbar's location always go to the top.

Cheer for your help.
Ricky.
Sebastian
Telerik team
 answered on 14 Sep 2009
8 answers
210 views
I have ELMAH running on my server which reports and logs errors that might otherwise not be seen. Running on IIS 7 server fully patched. I have a web application that after I updated to the latest build (2009.1.527.35) starts throwing this error


System.Web.HttpException: Server cannot append header after HTTP headers have been sent.

Generated: Mon, 01 Jun 2009 18:55:13 GMT


System.Web.HttpException: Server cannot append header after HTTP headers have been sent.
   at System.Web.HttpResponse.AppendHeader(String name, String value)
   at Telerik.Web.UI.RadCompression.application_EndRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Sebastian
Telerik team
 answered on 14 Sep 2009
1 answer
128 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
135 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
129 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
141 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
58 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?