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

I have a fieldset with legend text as an element on a nestedviewtemplate and I would like to be able to change the text dynamically from the codebehind. The usual methods don't seem to work -  I can't seem to cast an item as type legend so I'm unsure how to find the control. What is the best way of going about this?

Cheers,
Christian

Edit:

FWIW I have made my own workaround for this issue. I placed a label within the legend tags and then used casting and the FindControl method to locate and edit this element (this is the usual way). I would still be interested as to how one would access the legend element directly, however this is no longer a pressing issue. Thanks.
Daniel
Telerik team
 answered on 02 Feb 2012
1 answer
85 views
How to access the cell value from client side in a button click?
Princy
Top achievements
Rank 2
 answered on 02 Feb 2012
4 answers
774 views

<
telerik:RadGrid ID="RadGrid1" runat="server" Skin="Sitefinity"
           onitemcommand="RadGrid1_ItemCommand"
           onitemdatabound="RadGrid1_ItemDataBound1" >
           
       <MasterTableView AutoGenerateColumns="false" GridLines="None">
        <Columns>
        
       <telerik:GridButtonColumn DataTextField="firstname" UniqueName="col1" ButtonType="LinkButton" CommandName="detail"></telerik:GridButtonColumn>
         
        </Columns>
         
     
     
</MasterTableView>
 
           <HeaderContextMenu EnableAutoScroll="True">
           </HeaderContextMenu>
 
       </telerik:RadGrid

Now I want to assign the command argument of GridButtonColumn   with id(pk) from my db table,

so that every row is corresponding to an id which I can access later withour shpwng on the grid view 
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Feb 2012
2 answers
118 views
Hi
I am very new to telerik
how can edit text which we inserted in image editor?
Can we apply image layering in rad image editor ?
how we can track inserted text for further editing ?
is there any way to do that?
Pradnya
Top achievements
Rank 1
 answered on 02 Feb 2012
1 answer
89 views
Hello,

I'm writing a page where the user can select multiple items in a grid and then press 'edit' to edit the items in a popup screen. If the items contain different values for one field I want the relevant control to be greyed out until they edit it and I need to be able to detect whether they have altered the value or not when they postback the page. Are there any telerik controls that can do this?

E.g. The user selects 5 students from a grid and clicks 'edit'. The edit window pops up. As all the students have different names, the text box for entering the name field is greyed out. If the user clicks on the text box it turns white and they can type in a value. When the page is submitted, if the user has not edited the field then all the students retain their old name but if the user has typed in the text box then all students will have their name changed to the same value.
Andrey
Telerik team
 answered on 02 Feb 2012
1 answer
119 views
Hi guys I have the next mapped image
<img src="../App_Themes/img/estados.png" width="630" height="439" border="0" usemap="#EA70" />
                                                    <MAP NAME="EA70">
                                                    <area shape="rect" coords="309,101,428,123" href="iuEvalSolc.aspx" title="Solicitudes Enviadas 1004">
                                                    <area shape="rect" coords="159,179,279,201" href="EA82.htm" title="Solicitudes Rechazadas 620">
                                                    <area shape="rect" coords="460,179,580,201" href="iuRevDoc.aspx" title="Solicitudes Aceptadas 557">
                                                    <area shape="rect" coords="460,324,580,345" href="iuRegProvContr.aspx" title="Solicitudes Dictaminadas 941">
                                                    <area shape="rect" coords="459,408,579,430" href="EA75.htm" title="Solicitudes Cerradas 278">
                                                    <area shape="rect" coords="159,20,279,42" href="iuSolRegistrada.aspx">
                                                    <area shape="rect" coords="9,101,129,123" href="iuSolCancelada.aspx" title="Solicitudes Canceladas 334">
                                                    <area shape="rect" coords="460,249,580,271" href="iuRevDoc.aspx" title="Solicitudes en Revision 775">
                                                    </MAP>
The image corresponds each area corresponds a stage in my application.
What I want to do is on mouseover each area display a tooltip that shows the count of records for each stage, I'm using Entity framwork.
Hope your help.
Shinu
Top achievements
Rank 2
 answered on 02 Feb 2012
1 answer
132 views
Hi,

I have a telerik radgrid with a page size of 10 and am using static header for freezing columns. I need a vertical scrollbar to appear when I expand rows to see the detail view and when I scroll, the header should be static. Currently, no matter what scroll height I set, the page height increases along with the grid (and I have to use the browser scroll bar to go down which means I cannot view the header) but no vertical scrollbar appears when viewing the detail table. Is this how the radgrid is supposed to work.. I mean is the scrollheight just for the mastertable and does not take into account detail view?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 02 Feb 2012
2 answers
138 views

Here is my code for Rad Schduler

HTML source

<head runat="server">
<title></title>
    rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs();
    });
</script>
<style>
    .rsMonthView .rsApt
    {
        width: 100% !important;
    }
</style>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Scheduler1</a></li>
        <li><a href="#tabs-2">Scheduler2</a></li>
    </ul>
    <div id="tabs-1">
        <telerik:RadScheduler ID="RadScheduler1" runat="server" Height="700px" Skin="Windows7"
            DataStartField="sdate" DataSubjectField="tasks" DataEndField="sdate" DataKeyField="ts_key"
            AllowDelete="false" AllowEdit="false">
            <TimelineView UserSelectable="false" />
        </telerik:RadScheduler>
    </div>
    <div id="tabs-2">
        <telerik:RadScheduler ID="RadScheduler2" runat="server" Height="700px" Skin="Windows7"
            DataStartField="sdate" DataSubjectField="tasks" DataEndField="sdate" DataKeyField="ts_key"
            AllowDelete="false" AllowEdit="false">
            <TimelineView UserSelectable="false" />
        </telerik:RadScheduler>
    </div>
</div>
</form>

code behind

protected void Page_Load(object sender, EventArgs e)
{
    SqlConnection con = new SqlConnection("Connection String");
    SqlDataAdapter adp = new SqlDataAdapter();
    adp.SelectCommand = new SqlCommand();
    adp.SelectCommand.CommandType = CommandType.StoredProcedure;
    adp.SelectCommand.CommandText = "GetScheduleView";
    adp.SelectCommand.Connection = con;
    DataSet ds = new DataSet();
    con.Open();
 
    adp.Fill(ds, "Appointment");
 
    RadScheduler1.DataSource = ds.Tables[0].DefaultView; ;
 
    RadScheduler1.DataBind();
 
    RadScheduler1.SelectedView = SchedulerViewType.MonthView;
 
    RadScheduler2.DataSource = ds.Tables[0].DefaultView; ;
 
    RadScheduler2.DataBind();
 
    RadScheduler2.SelectedView = SchedulerViewType.MonthView;
}

this works fine in IE Browser

but in mozilla firefox when I resize the browser then only radscheduler in 2nd tab is displayed.

how can it be displayed on tab change only.means when 2nd tab is selected.

how can i resolve this?

Reshma
Top achievements
Rank 1
 answered on 02 Feb 2012
2 answers
69 views
Hi;

I need to add a time picker right after 'End by' field inside the recurrence editor control, however I have not yet been able to do this. I was wondering if anyone could help me out with this as I need to implement a custom recurrence editor for our project. I have attached an image for a reference.

Thanks,
Amir
Top achievements
Rank 1
 answered on 02 Feb 2012
4 answers
183 views
Which is the fastest and optimized way to add tree nodes on the client side. I am following this approach : 
var treeNodeCollection = currentNode.get_nodes();
var node = new Telerik.Web.UI.RadTreeNode();
node.set_text("Text1");
node.set_value("Value1");
treeNodeCollection.add(node);

The reason I am asking because i have nodes in thousands to add to through client, so was looking for the most optimized and fastest way to do it.
mirang
Top achievements
Rank 1
 answered on 02 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?