Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
204 views
Hello,

when I resize the raddock to fit it's contents (usually the radDock's width is increaed; the radDock contains a radGrid), the title bar doesn't resize properly.
The width changes correctly, but the "drag zone" doesn't get wider.
For example if the radDock's width is increased from 100px to 200px, the left half of the title can be used to drag the radDock (the curser changes to the move icon when hovering) but when I hover the right part of the title it doesn't work.

After dragging the radDock a bit using the left half of the title, the right part also works correctly.

What can I do about this issue?
The resizing is done client side using the set_width property of the rad dock. The function is called by using:

Sys.Application.add_load(initializeRadDockResources);

I also tried using the OnClientInitialize event, but when using that the whole title has no "drag zone" after resizing. Also the title text is missing. But when the RadDock is opened a second time everything works.

Thanks!

Edit: I just checked something and the problem in OnClientInitialize is the same as in the load event handler. I just set the width to 0 before. It seems that when the radDock is opened and I set the width as described above, the value is not used until the radDock is opened the next time.
Dobromir
Telerik team
 answered on 31 Aug 2011
3 answers
167 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
176 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
94 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
139 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
259 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
180 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
137 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
101 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
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?