Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
170 views
Is there a way to alter the properties of the built in tool tip for each appointment.  More specifically, i need to adjust the AutoCloseDelay property so the tool tip stays on the user's screen longer.  Right now the tool tip contains too much information to take in when it fades away after a few seconds.

Thanks,

Luke Wautier
Ivan Zhekov
Telerik team
 answered on 31 Aug 2011
1 answer
178 views
Hi,

In the following demo page, there are CSS animations which include cursor change and arrow indicator in group pane when I drag-n-drop a column into group pane:

http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx

How do I style these animations?

TIA
Pavlina
Telerik team
 answered on 31 Aug 2011
1 answer
95 views
I have a RadGrid in UpdatePanel1 and a Listbox and a Button in Updatepanel2.

The button in UpdatePanel2 adds items to the listbox.
 
What I'm not understanding is why when I click the button in Updatepanel2 it runs the click event and then triggers the RadGrid.NeedDataSource sub routine.Shouldn't the the click event in Updatepanel2 only post back and refresh the controls in that updatepanel?


Tsvetina
Telerik team
 answered on 31 Aug 2011
1 answer
143 views
Hello,
I have a template column which contains a lookup label. Label takes text from dictionary by ID contained in column. Column also has a templated filter which contains a combobox. When I select new item from dropdown, filter command fires and column must be filtered by combobox's ItemValue which is GUID. I  must say there is an extension method in my solution called ToGuid() which I use to convert string values. And now, when filtering command passes to server, I get the following error:

Sys.WebForms.PageRequestManagerServerErrorException: No applicable method 'ToGuid' exists in type 'Convert' (at index 9) в Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) в Telerik.Web.UI.ExpressionParser.ParseTypeAccess(Type type) в Telerik.Web.UI.ExpressionParser.ParseIdentifier() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.ParseParenExpression() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.Parse(Type resultType) в Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) в Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() в Telerik.Web.UI.GridDataTableFromEnumerable.FillData() в Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() в Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridTableView.get_ResolvedDataSource() в Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) в System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) в System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) в Telerik.Web.UI.GridTableView.PerformSelect() в Telerik.Web.UI.GridTableView.DataBind() в Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I'm not sure whether this is an error in your code or mine or whatever else. Can you please check this out?
Thank you.
Tsvetina
Telerik team
 answered on 31 Aug 2011
1 answer
115 views
I've added an ASP.NET required validator on a Telerik textbox.  I've noticed that the validator reports the contents of the textbox to be empty when the screen is first rendered, even though the textbox was prepopulated with text from a database.  Refreshing the screen seems to make the validator recognize the text again.

I know telerik textboxes render as three input controls.  Could the validator be trying to read the wrong input control?

<!-- FULL NAME -->
<div class="FixedBlockCtrl" style="top:10px;left:60px;">   
    <asp:Label ID="lblFullNameB" cssclass="standardLabel" runat="server" 
        Text="Name *" ></asp:Label>
</div
<div class="FixedBlockCtrl" style="top:10px;left:100px;">    
<telerik:RadTextBox ID="txtFullNameB" Label="" 
        cssclass="standardTextbox"   runat="server" 
        Width="200px" >
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="reqFullNameB" runat="server" EnableClientScript="False" ControlToValidate="txtFullNameB"
ToolTip="First and last names required" Display="Dynamic" Text="*" 
ErrorMessage="Enter the first and last names of the coordinator" Enabled="true" ></asp:RequiredFieldValidator>    
</div>
<!-- EOF FIRST NAME -->

Iana Tsolova
Telerik team
 answered on 31 Aug 2011
5 answers
265 views
Hello,

Can I create the following table?

 

 

A

B

C

D

E

I

F

G

H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
I would like to merge some of the columns.

Can you show me a sample code?


Thank you for your help.
Minkyu Lee.

Jason
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
183 views
I'm using the keyboard controls for the RadGrid, however, when i hit enter on a line to edit it, i need it to go to a column that i specify.

The RadGrid has AutoGenerated Columns, and editting is in place.

I've been looking through the forums & KB for the resolution and i see demos and answers if you use an edit form.

I tried to use the following code to set the focus, but the focus isn't really set on the text box, and causes a javascript error when you stop editting.

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item.IsInEditMode)
            {
                string script = String.Format("$get('{0}').focus(); $get('{0}').select();", ((TextBox)e.Item.FindControl("ctl01")).ClientID);
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "myscript", script, true);
            }
        }
Corey
Top achievements
Rank 1
 answered on 30 Aug 2011
2 answers
139 views
Hi,

i'm adding validator through the ItemCreated for the datetime column. The grid is giving me
Unable to cast object of type 'System.Web.UI.WebControls.Panel' to type 'System.Web.UI.WebControls.TableCell'.

the following is my c# code.

 

 

GridDateTimeColumnEditor editorStartTime = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("StartRunTimeColumn");

 

cell = (

 

TableCell)editorStartTime.SharedTimeView.Parent;

 

RequiredFieldValidator

 

 

Validator =

 

new RequiredFieldValidator();

 

editorStartTime.SharedTimeView.ID =

 

"StartRunTimeColumn";

 

Validator.ControlToValidate = editorStartTime.TextBoxControl.ID;

Validator.BackColor = System.Drawing.

 

Color.Red;

 

Validator.ErrorMessage =

 

"*";

 

cell.Controls.Add(Validator);

Elliott
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
103 views

 

 

hi all,

<
telerik:RadGrid ID="grid1" runat="server" GridLines="Both" HeaderStyle-Width="100px"

 

 

 

Width="500px" OnItemDataBound="grid1_ItemDataBound" CssClass="rgTwoLines"

 

 

 

Skin="Outlook" ItemStyle-HorizontalAlign="Left" AlternatingItemStyle-HorizontalAlign="Left"

 

 

 

MasterTableView-TableLayout="Fixed" Style="overflow: auto" >

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">

 

 

 

</Scrolling>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

Above is my code. i am using this to freeze column and also for static header. one of the problem is that, even though grid has one row the height has still same and shows with unneccessary white space in height.
But if many rows then it is working fine as what i expected. Please see image for reference.
Any solution for this?

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
223 views
Hi,

We have just purchased the RadControls for ASP.Net/Ajax, and I am working in .Net 3.5.

I have a radmenu nested in a splitter that's working fine in IE, but the dropdowns are not overlaying in Chrome.

aspx Code:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PMRep._Default" %>

 <!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="Head1" runat="server">

<title></title>

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

<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="http://localhost/favicon.ico" />

<style type="text/css">

.menuPanes

{

overflow: visible !important;

}

.TelerikModalOverlay

{

filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=10) !important;

background: blue !important;

opacity: .1 !important;

-moz-opacity: .1 !important;

}

</style>

</head>

 <body>

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

 <telerik:RadScriptManager ID="RadScriptManagerDefault" runat="server">

<Scripts>

<%

--Needed for JavaScript IntelliSense in VS2010--%>

<%

--For VS2008 replace RadScriptManager with ScriptManager--%>

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />

</Scripts>

</telerik:RadScriptManager>

<script type="text/javascript">

//Put your JavaScript code here.

</script>

<telerik:RadAjaxManager ID="RadAjaxManagerDefault" runat="server">

</telerik:RadAjaxManager>

<telerik:RadSkinManager ID="RadSkinManagerDefault" runat="server">

</telerik:RadSkinManager>

<div>

<telerik:RadSplitter ID="RadSplitterTop" runat="server" Orientation="Horizontal" Width="100%"

Height="32px">

<telerik:RadPane ID="RadPaneTop" runat="server">

<div style="position: relative; z-index: 100;">

<telerik:RadMenu ID="RadMenuHome" runat="server" Height="30px" Width="100%" Visible="True"

OnItemClick="RadMenuHome_ItemClick" OnItemCreated="RadMenuHome_ItemCreated"

OnItemDataBound="RadMenuHome_ItemDataBound" EnableShadows="true" ExpandDelay="5"

EnableOverlay="true" EnableTheming="true" EnableRoundedCorners="true">

</telerik:RadMenu>

</div>

</telerik:RadPane>

</telerik:RadSplitter>

<telerik:RadSplitter ID="RadSplitterMain" runat="server" Orientation="Vertical" Height="880px"

Width="100%">

<telerik:RadPane ID="MainPane" runat="server" Width="100%">

<telerik:RadMultiPage ID="RadMultiPageMainPane" runat="server" SelectedIndex="0">

<telerik:RadPageView ID="RadPageViewMain" runat="server" BackColor="Transparent" Height="800">

</telerik:RadPageView>

</telerik:RadMultiPage>

</telerik:RadPane>

</telerik:RadSplitter>

</div>

</form>

</body>

</html>

 

c#:
using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

using System.Windows.Forms;

using System.Web.Security;

using System.Data;

using System.Drawing;

using Telerik.Web.UI;

 

namespace

PMRep

{

public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

FillRadMenuHome();

if (Request.QueryString["repGrp"] != null)

RadPageViewMain.ContentUrl = "/Reports/" + Request.QueryString["repGrp"].ToString() + "/Default.aspx";

if (Request.QueryString["repID"] != null)

Application["repID"] = Request.QueryString["repID"].ToString();

if (!IsPostBack)

{

RadSkinManagerDefault.Skin = RadSkinManagerDefault.GetSkinChooser().SelectedValue;

}

}

 

private void FillRadMenuHome()

{

PMRep.DataAccess.AppStructure.BuildMenu bm = new PMRep.DataAccess.AppStructure.BuildMenu();

DataTable dt = bm.DataSetMenuItems();

 

RadMenuHome.DataSource = dt;

RadMenuHome.DataTextField = "MenuItemText";

RadMenuHome.DataValueField = "MenuItemID";

RadMenuHome.DataNavigateUrlField = "MenuItemURL";

RadMenuHome.DataFieldID = "MenuItemID";

RadMenuHome.DataFieldParentID = "MenuItemParentID";

RadMenuHome.EnableShadows = true;

RadMenuHome.DataBind();

 

RadMenuItem btnHome = new RadMenuItem(); 

btnHome.Text = "Home";

btnHome.NavigateUrl = "../Default.aspx";

RadMenuHome.Items.Insert(0, btnHome);

 

RadMenuItem pmlogo = new RadMenuItem();

pmlogo.ImageUrl = "/Images/pmlogo.gif";

RadMenuHome.Items.Add(pmlogo);

 

RadMenuItem chooseritem = new RadMenuItem();

HtmlGenericControl div = new HtmlGenericControl("div");

RadSkinManagerDefault.ShowChooser = true;

div.Controls.Add(RadSkinManagerDefault);

chooseritem.Controls.Add(div);

RadMenuHome.Items.Insert(RadMenuHome.Items.Count, chooseritem);

 

RadMenuItem btnLogout = new RadMenuItem();

btnLogout.Text = "Log Out";

btnLogout.Style.Add("float", "right");

RadMenuHome.Items.Add(btnLogout);

}

 

protected void RadMenuHome_ItemCreated(object sender, RadMenuEventArgs e)

 

{

}

 

protected void RadMenuHome_ItemDataBound(object sender, RadMenuEventArgs e)

 

{

}

 

protected void RadMenuHome_ItemClick(object sender, RadMenuEventArgs e)

 

{
if (e.Item.Text == "Log Out")

{

 

FormsAuthentication.SignOut();

Response.Redirect(Request.RawUrl);

}

}

 

}

}


I've also noticed that the float: right doesn't seem to be rendering properly in chrome.  I'd actually like the logout and skin chooser menu items to be aligned to the right, but I'm having issues with that too.  I have tried palying with the z-index but that doesn't seem to help.

Any help would be greatly appreciated.  Thanks!
Dawn
Top achievements
Rank 2
 answered on 30 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?