Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
404 views
Hi All,

I have taken a telerik:RadDateTimePicker control.
how to get or set its values in "dd MMM yyyy hh:mm:ss" format using javascript.
DOes anybody know then please tell me.

I will be highly greatful to yours!!!!!!!!!!!!


Regards
Brijendra Pandey
Daniel
Telerik team
 answered on 18 Jul 2011
1 answer
159 views
I have a grid where the columns are created via code, not the markup. When I sort on this grid, the column header text goes blank!
I've isolated this bug into a test project, here's the complete code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadGridDynamicColumns._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Sample Rad Grid Example</title>
</head>
<body>
    <form id="form1" runat="server">
<telerik:RadScriptManager runat="server" />
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="gvwPlayers" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
     
    <telerik:RadGrid
        id="_radGrid"
        runat="server"
        OnNeedDataSource="radGrid_NeedDataSource"
        AllowSorting="true"
        AutoGenerateColumns="false"
        Width="100mm">
    </telerik:RadGrid>
    </form>
</body>
</html>

And the Code-Behind:

using System;
using Telerik.Web.UI;
 
namespace RadGridDynamicColumns
{
    // A test data class
    public class Widget
    {
        public string Name { get; set; }
        public string Description { get; set; }
    }
 
 
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this._radGrid.Columns.Add(new GridBoundColumn { HeaderText = "Name", DataField = "Name" });
                this._radGrid.Columns.Add(new GridBoundColumn { HeaderText = "Description", DataField = "Description" });
            }
        }
 
        public Widget[] TestData = new[]
                                    {
                                        new Widget { Name = "FooBar", Description = "WidgetFooBar" },
                                        new Widget { Name = "Harold", Description = "Biggles" }
                                    };
        protected void radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            this._radGrid.DataSource = this.TestData;
        }
    }
}

Princy
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
158 views
Hello Support

My onclientclose event is not firing please suggest me where I made mistake

var wnd = radopen("url", "RadWindow" );
            wnd.set_modal(false);
            
            var oManager = GetRadWindowManager();
            var oWindow = oManager.GetWindowByName("RadWindow" + i.toString());
            oWindow.SetModal(false);
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);
            oWindow.setSize(440, 260);
            oWindow.moveTo(parseInt(x), 320);
            oWindow.OnClientClose = function() {
                alert('hi');
            }
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
76 views
I want manual row reorder like in this example: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

The problem is that this is the example for RadGrid, but I need the same functionality for "GridTableView" control, since I'm using hierarchy, and cannot replace gridtableview with radgrid (or can I?)
Genti
Telerik team
 answered on 18 Jul 2011
1 answer
171 views
Hello,

Looking for input on FlowDirection for a RadTreeView. My limitation is that I have to stay at 3.5 framework and Telerik version 2010.1.519.35 (existing project). My RadTreeView works nicely but of course has a vertical flow and the UX person wants it to flow horizontal..so forgive the lame ASCII art something like this:

WRONG:
+ Node1
- Node2
    Sub2
    Sub2a
    Sub2b
+Node3

Right:
+Node1                -Node2                    +Node3
                                Sub2
                                Sub2a
                                Sub2b

The only solution I have been able to think of is to implement 3 trees on different panels and split the data up so it binds to the tree I want it to.....this seems lame so I am hoping someone can enlighten me on a better way.

Thanks
JB
Plamen
Telerik team
 answered on 18 Jul 2011
1 answer
114 views
Hi

how to create radcombobox and datepicker from clientside


thanks & Regards
Rashmi
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2011
3 answers
72 views
I want to create parent/child relationships in my RadGrid without using a NestedViewTemplate or Detailed GridTableView.  The parent records should be able to expand/collapse to show the child rows.  I would like to have just the MasterTableView because I need the child rows to have the exact same columns as the parent rows.  I also do not want to go through the trouble of making sure the column sizes are in sync after a user changes the column.  I don't see any obvious way to do this.  Am I missing something?

I tried using a DetailTableView to do this.  I added the same columns to it as the MasterTableView and the columns did not match up.

Vasil
Telerik team
 answered on 18 Jul 2011
5 answers
52 views
Hi

Currently using radeditor on SharePoint 2007. Using IE 8 on compatibility mode  we encountered a problem where the scroll bar resets to the top when the mouse hover outside the text box area. This is only occurring in IE8 Compatibility View.  

As our text area are small(news column size) and contain  a large amount of text, resetting the scroll bar is proving to be annoying

Is this expected behavior,? if so can this be disabled


Cheers

Yan 
Stanimir
Telerik team
 answered on 18 Jul 2011
4 answers
190 views
Rad Editor not showing bullet points in Design or Preview, it does show it in the html. I'm thinking it is a CSS taking precedence. Has anyone else experienced this issue and if yes let me know the fix.
i'm using new rad controls 3.5 framework and using master pages.
Thanks in advance
Madhuka
Top achievements
Rank 1
 answered on 18 Jul 2011
1 answer
89 views
Hello, I have a Datatable (5 Column) , i want to add first Column is DataValueField,Second and Third column is DataTextFied ( using C# code in page_load Event)
Excample :http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx 


Thanks,
Trung Hiếu
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?