Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
328 views
Hi
How can I change the color of a row depending on the value of a cell in the row. Somebody please help me out.
thanks
Allen
Princy
Top achievements
Rank 2
 answered on 17 Jul 2013
1 answer
250 views
I have a Telerik RAD Grid which i am bindng on client side. i have another button(Button 2) which when clicked will do a postback and get the values of the grid and call the database to perform some activity, but in the Button 2 Click event, values of the grid are lost and also the grid after Button 2 click has empty data. See below sample code.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test1.aspx.cs" Inherits="WebApplication4.test1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ 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>
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
        <script type="text/javascript">
 
    function test() {
                var EmployeeInfo = { "Emp_Number": "12349999" }
                var arr = [];
                arr.push(EmployeeInfo);
                grid = $find("<%=rdEmployeeInfo.ClientID %>");
 
                tableView = grid.get_masterTableView();
                tableView.set_dataSource(arr);
                tableView.dataBind();
            }
 
        </script>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
           <asp:button ID="Button1" runat="server" OnClientClick="test(); return false;" />
            <asp:button ID="Button2" runat="server" onclick="Button2_Click" />
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <br />
        <telerik:RadGrid ID="rdEmployeeInfo" runat="server" AutoGenerateColumns="false" AllowAutomaticInserts="false"
            AllowAutomaticUpdates="false" EnableAJAX="true" Width="100%" GridLines="None"
            PageSize="1" EnableViewState="true">
            <ItemStyle ForeColor="Orange" />
            <MasterTableView Width="100%" AutoGenerateColumns="false">
                <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
                <Columns>
                    <telerik:GridBoundColumn DataField="Emp_Number" HeaderText="Employee Number" ReadOnly="true">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
       
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.Services;
using Telerik.Web.UI;
 
namespace WebApplication4
{
    public partial class test1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataTable dt = new DataTable();
                dt.Columns.Add("Emp_Number");
 
                rdEmployeeInfo.DataSource = dt;
                rdEmployeeInfo.DataBind();
            }
        }
 
      
 
        protected void Button2_Click(object sender, EventArgs e)
        {
 
        }
    }
}
Princy
Top achievements
Rank 2
 answered on 17 Jul 2013
1 answer
101 views
Hi i am using RadWindow.
I just want to open this Window two time.
1st time on a button;s onclick events.
2nd time on a other button;s Onclick Events using Scriptmanager.RegisterStartupScript() ;
at 2nd time its WindowManager is not being set.
so its not showing and my 1st button is being invisible.
Marin Bratanov
Telerik team
 answered on 17 Jul 2013
2 answers
360 views
I have a RadGrid Insert/Edit Form template in which I have a Submit/Update button. This button's submit behavior works perfectly if I do not reference any JavaScript calls in it. However, upon inserting an OnClientClick, it breaks the button. Here is the ASP

<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Save" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' OnClientClick="return CheckWeight()" />

Here is the JavaScript

function CheckWeight() {
                var currentGoalWeightTotal = $("[id$='CurrentGoalWeightTotal']").val();
                var weightInput = $("[name$='AG_Weight']").val();
 
                if (parseInt(weightInput) + parseInt(currentGoalWeightTotal) > 100) {
                    alert("Please make sure that your goal weight total does not exceed 100.");
                    return false;
                }                   
            }

pmourfield
Top achievements
Rank 1
 answered on 17 Jul 2013
4 answers
107 views
We've implemented the RadEditor control with track changes switched on and were hoping that the following scenario would be possible:

  1. User A adds some text, which is recorded as an insert.
  2. User B edits the inserted text by adding some more inside it, which causes a nested insert.

What we've found is that actually, the second edit won't allow changes to be made to the text User A inserted, and any additional text falls outside that original insert.

Is this by design, or is there a way to get it working?


Thanks,

Matt
Matt
Top achievements
Rank 1
 answered on 17 Jul 2013
4 answers
212 views
Hello
  I have a radmenu inside a radpane and there are radpanes within splitbars on left and bottom of the menu i want the parent menu to be inside its own radpane but only the submenu should overlay i have tried styple position and z index when i apply to that to menu the parent radmenu is coming  out of the radpane i just want the submenu to come up i have included an image of the problem.

Thank you
JJ
Kate
Telerik team
 answered on 17 Jul 2013
1 answer
91 views
Hi,

I am using RadCaptcha with audio, but I get warning message in IE 'The webpage wants to run the following add-on: 'Windows Media Player' from 'Microsoft Corporation''. I get same message when I go to telerik RadCaptcha online demo. Checked on multiple computers, and in IE 8, 9, 10 get same warning. Please, help.
Marin Bratanov
Telerik team
 answered on 17 Jul 2013
1 answer
174 views
Hi,

  We are having a custom label control, which is having a Rad tool tip as it's child control. When the control is rendered in page, it is rendered as below,

<span class="aspLabelWithoutFocus" id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents">

<div style="display: none; position: absolute;" id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1" class="tooltipStyle">

 <input id="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1_ClientState" name="SV_704d8aa8-7ffb-4904-8ac0-1715793d4b89_ctl01_OnFocusEvents_RadTooltip1_ClientState" type="hidden" autocomplete="off">

</div>

<span class="aspLabelWithoutFocus" onmouseover="this.className='cssClassMouseOver'" onmouseout="this.className='aspLabelWithoutFocus'"></span>

</span>




  After this if we try to update the lable text from jquery. It is updated successfully, but if we have a post back after that, when the page is reloaded we get a javascript  error as "Two components with same id<RadToolRip's id> cannot be added" .

  This control is being rendered within update panel. Please help us in resolving this issue.
Marin Bratanov
Telerik team
 answered on 17 Jul 2013
1 answer
66 views

Hello,

i am using telerik time picker in asp.net application.

i am using this syntax to save time picker data in database

 timein.text;

but its not giving me Text Property in time picker. 

and also giving me this error

'Telerik.Web.UI.RadTimePicker' does not contain a definition for 'text' and no extension method 'text' accepting a first argument of type 'Telerik.Web.UI.RadTimePicker' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Administrator\Desktop\Server\Attendance System\Attendance\ShiftDefine.aspx.cs 116 36 Attendance

can u provide me a Syntax

Thanks



Shinu
Top achievements
Rank 2
 answered on 17 Jul 2013
2 answers
53 views
Hi all Is it possible to use the export to excel and export to pdf buttons, with other fucntions.

i want to deactivate the expor excel funtion and pdf, and use my own?

is it possible??

Best Regards.
Carlos
Top achievements
Rank 1
 answered on 17 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?