Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
213 views
I'm sorry. Something is wrong with my internet connection I've posted thread few times.
Yavor
Telerik team
 answered on 07 Dec 2009
1 answer
125 views
how can i change text and tool tip of editor?
i wanna change text of something for example when mouse over some object like Bold show thing that i wanna.
how can i do ?

tnx guys
Martin
Telerik team
 answered on 07 Dec 2009
1 answer
81 views
Hi all
I has trying to addColumns Dinamycally to a RadGrid
Here is the Code Snippet
 protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
            { 
                // SET GRID VIEW 
                setGridEvoColumns(RadGridEvoStats); 
            } 
        } 
 
public void setGridEvoColumns(RadGrid Grid,ArrayList years, DataTable Source) 
        { 
 
            GridBoundColumn boundColumn; 
            GridTemplateColumn gtc; 
            StatsColumn sc; 
            StatsColumnHeader sch; 
 
 
            boundColumn = new GridBoundColumn(); 
            Grid.MasterTableView.Columns.Add(boundColumn); 
            boundColumn.HeaderText = "Country"; 
            boundColumn.DataField = "Country"; 
            boundColumn.UniqueName = "Country"; 
 
 
 
            string sufix = ""; 
            foreach (string year in years) 
            { 
                sufix = "_" + year; 
 
                gtc = new GridTemplateColumn(); 
                sc = new StatsColumn(); 
                sch = new StatsColumnHeader(); 
                 
                Grid.MasterTableView.Columns.Add(gtc); 
                 
                gtc.HeaderTemplate = sch; 
                gtc.ItemTemplate = sc; 
                 
            } 
        } 

I create a custom Header and ItemTemplate to the GridTemplateColumn

The Problem is when there are a PostBack on Page the TemplateColumns are cleared (lost their header values as Item values), but bound columns mantain theirs values and Headers.
I'm using NeedDataSource Event to Bound The Grid Also.

I Have already read this Article but it does not have an example with TemplateColumn.

Can anyone help me with this?

Thanks In Advance


Vlad
Telerik team
 answered on 07 Dec 2009
1 answer
139 views
Hi All,
I found that when I put a custom user control(I call it Parent User Control below) between <NestedViewTemplate ></NestedViewTemplate >.
And the Parent User Control also have another User Control(I call it Children User Control). The Children User Control has some script code between <RadCodeBlock ></RadCodeBlock >. But when the RadGrid renders, I found that the Children User Control's script code between <RadCodeBlock ></RadCodeBlock > can't be loaded? Could anyone tell me how to solve this problem? Thank you in advance.

My Code:

......
<
NestedViewTemplate > 
       <Test:TaskControl ID="TaskControlMain" runat="server" /> 
</NestedViewTemplate>
........

Parent User Conrol "TaskControl.ascx":

<DIV>
<Test:flowAssignee ID="Assignee" runat="server" />
<DIV>
 

Children User Control "flowAssignee.ascx":

<DIV> 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
    <script type="text/javascript"> 
         function checkAssignee() 
         { 
            alert("2323") 
         }  
</script> 
</telerik:RadCodeBlock> 
<div> 
    <telerik:RadTextBox ID="Relationship" runat="server" onblur="checkAssignee" Width="200" /> 
</div> 
 
 
Vlad
Telerik team
 answered on 07 Dec 2009
1 answer
155 views

why doesn't the GridDropDownColumn have the HTMLEncode propery???
I works well in the combobox but in the grid there will be problems without the encoding.

Do I need to HTMLEncode in databound? How?

Princy
Top achievements
Rank 2
 answered on 07 Dec 2009
1 answer
140 views
Telerik hasn't  autoComplete textbox(input)?
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2009
2 answers
136 views
hi, i have a text box that need to be fill in the email address. Before i am posting the value, i need the email address text box should not be empty and in the correct form.
I have using the RadInputManager  to control the regular expression for the email address and the required field but, when i have load the page, the regular expression will always load finally in the page. will the rad Input Manager for each field can only be control at once times? how can i load the validate for required field first and the regular expression in second instance?

best regard;
sookkien

sk
Top achievements
Rank 1
 answered on 07 Dec 2009
2 answers
113 views
Hi. I have a nested grid. When I press my 'book' link button (same as insert record) it opens up a web user control. I've trapped any exceptions that might come up and noticed that the exception that is raised is an 'Object reference not set to an instance of an object', when click on my 'book' button. The form comes up okay but cannot insert or even cancel the record. Here is parts of my code:

ASPX
<telerik:GridTemplateColumn UniqueName="ExpandCollapse" HeaderStyle-Width="3%"> 
    <ItemTemplate> 
        <asp:LinkButton ID="lbBook" Text="Book" CommandName="book" runat="server"></asp:LinkButton> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

CS
protected void rgEnvironments_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        try 
        { 
            if (e.CommandName == "book") 
            { 
                e.Canceled = true; 
                rgEnvironments.EditIndexes.Clear(); 
                e.Item.OwnerTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl; 
                e.Item.OwnerTableView.EditFormSettings.UserControlName = "/teams/im/environment_usage/insert_usage_form.ascx"; 
                e.Item.OwnerTableView.InsertItem(); 
            } 
 
        } 
        catch (Exception ex) 
        { 
            Intranet.AppendLogFile(ex.Message + ex.StackTrace); 
        } 
    } 

Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 07 Dec 2009
1 answer
222 views
Hi,

I am using raddatetime pickers (Q3 2009) throughout my application and am stuggling a little to get the international date formats working correctly.

I have added datetimepicker to a page and removed all culture information, and also tried culture="(Default)", but when I change culture in the browser dates always appear in UK English format (dd/mm/yyyy).

I have tried adding the following code:

            Dim cultureInfo As CultureInfo = cultureInfo.CurrentCulture  
            dteLeaveStart.Culture = cultureInfo 

But dates still appear in UK format.  If I change the line to cultureinfo.InvariantCulture then they do appear in mm/dd/yyyy format, but do this even if the culture is set to UK.

I have also tried using a RadInputManager but cannot find how to set this programatically to use the culture information.

I am assuming there must be some fairly simple method I am missing here and any guidance would be greatly appreciated.

David Penny
David Penny
Top achievements
Rank 2
 answered on 06 Dec 2009
3 answers
169 views

Does anyone know if it's possible to get a RadScheduler layout like the attached picture?
If the Appointments cannot get bigger it would be nice if they go to vertical scroll.

Thanks in advance for thinking about it :-)

Rick
Rick Rehorst
Top achievements
Rank 1
 answered on 05 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?