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

is there a specific reason why the RadTreeNodeData is lacking the possiblity to set the Target Property, while supporting the NavigateURL?

Situation:

I have a page with a RadTreeView and an IFrame. The RadTreeView has it's ExpandMode set to WebService and retrieves it's data on demand from a page method, exactly like in the live demo.

Since I want to open the linked URL in the IFrame, I had to go great extents to supply the target with an additional attribute and open the URL clientside via the nodeclicked-event.

Is there a workaround, or is it planned for future releases to also support the target property with RadTreeNodeData?

best regards

Ulrik
Veselin Vasilev
Telerik team
 answered on 29 Apr 2010
6 answers
115 views
I have grid 
the PagerStyle  is NextPrevAndNumeric

in right to left mode (Arabic mode) the number of the pages is come up to each others not beside each others like English


please check the attachment
Hamdy
Top achievements
Rank 1
 answered on 29 Apr 2010
1 answer
179 views
Hi,

    How to Resize Columns when ShowHeader Property is Set to "False" .


 

 

 

<telerik:RadGrid

 

ID="PMGrdPhone" runat="server" CellPadding="0" AutoGenerateColumns="False"

 

 

GridLines="None" ShowHeader="False" AllowMultiRowEdit="True" CellSpacing="0"

 

 

TabIndex="19" Skin="Simple">

 

 

<HeaderContextMenu EnableAutoScroll="True">

 

 

</HeaderContextMenu>

 

 

<MasterTableView EditMode="InPlace">

 

 

<RowIndicatorColumn Visible="True">

 

 

</RowIndicatorColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="155px">

 

 

<ItemTemplate>

 

 

<telerik:RadComboBox ID="tcbNumberType" runat="server" Height="13px"

 

 

Width="153px">

 

 

</telerik:RadComboBox>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="155px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="30px">

 

 

<ItemTemplate>

 

 

<telerik:RadTextBox ID="txtAreacode" runat="server" Height="13px" Width="27px">

 

 

</telerik:RadTextBox>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="30px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="58px">

 

 

<ItemTemplate>

 

 

<telerik:RadTextBox ID="ttxtPhoneNo" runat="server" Height="13px" Width="56px">

 

 

</telerik:RadTextBox>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="58px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="10px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblExt" runat="server" Text="x" Width="7px"></asp:Label>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="10px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="46px">

 

 

<ItemTemplate>

 

 

<telerik:RadTextBox ID="ttxtExtension" runat="server" Height="13px"

 

 

Width="44px">

 

 

</telerik:RadTextBox>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="46px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="45px" ItemStyle-Width="45px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblEmail" runat="server" Text="E-mail :" Width="55px"></asp:Label>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="45px" />

 

 

<ItemStyle Width="45px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn ItemStyle-Width="235px">

 

 

<ItemTemplate>

 

 

<telerik:RadTextBox ID="ttxtEmailAddress" runat="server" Height="13px"

 

 

Width="233px">

 

 

</telerik:RadTextBox>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="235px" />

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

<Resizing AllowColumnResize="True" AllowRowResize="True"

 

 

EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />

 

 

</ClientSettings>

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

 



Protected

 

Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

Dim dtContact As DataTable = New DataTable("Contact")

 

 

Dim row As DataRow = Nothing

 

 

' add columns

 

dtContact.Columns.Add(

"id", Type.GetType("System.Int32"))

 

dtContact.Columns.Add(

"NumberType", Type.GetType("System.String"))

 

dtContact.Columns.Add(

"AreaCode", Type.GetType("System.String"))

 

dtContact.Columns.Add(

"PhoneNumber", Type.GetType("System.String"))

 

dtContact.Columns.Add(

"Extension", Type.GetType("System.String"))

 

dtContact.Columns.Add(

"EmailAddress", Type.GetType("System.String"))

 

 

' set PrimaryKey

 

dtContact.Columns(

"id").Unique = True

 

dtContact.Rows.Add(1,

"", "", "", "", "")

 

dtContact.Rows.Add(2,

"", "", "", "", "")

 

PMGrdPhone.DataSource = dtContact

PMGrdPhone.DataBind()

 

End Sub

 

 

Protected Sub Page_PreRender1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

 

 

If Not Page.IsPostBack Then

 

 

For Each item As GridDataItem In PMGrdPhone.Items

 

item.Edit =

True

 

 

Next

 

PMGrdPhone.Rebind()

 

End If

 

 

End Sub




Thanks & Regards
LijiJose

 

Dimo
Telerik team
 answered on 29 Apr 2010
3 answers
813 views
Hello,
What's the easiest way to get the text of an uploaded file stream? Note I do not plan to save the actual file. Just get it's text and save that.

// save 
        if (RadUploadSQL.UploadedFiles.Count>0) 
        { 
            foreach (UploadedFile validFile in RadUploadSQL.UploadedFiles) 
            { 
                // open sql file 
 
                byte[] Filedata; 
                int Filesize; 
                Filesize = Convert.ToInt32(validFile.InputStream.Length); 
                validFile.InputStream.Read(Filedata, 0, Filesize);
// What to do here?
 
                 
            } 
 
        } 
Genady Sergeev
Telerik team
 answered on 29 Apr 2010
1 answer
202 views
for example :
we can use "UpdatePanel2.Update();" for update updatePanel2.
is there such function in RadAjaxPanel?

thank you.
Daniel
Maria Ilieva
Telerik team
 answered on 29 Apr 2010
1 answer
74 views
Is it feasible to create a wizard experience using the ASP.NET Ajax controls. I have a scenario which requires 3 or 4 pages on a wizard and I'd like to do this with modal dialogs and the usual Next/Previous/Cancel buttons. Is this a viable approach and, if so, are there any samples or demos for me to consider?

Thanks.

Mark
Sebastian
Telerik team
 answered on 29 Apr 2010
1 answer
221 views
Hi Everyone,
My problem goes like these.
i ve two dockzone of different height and width based on raddocks in them.
when i drag and drop the dock from one webzone to other, these works fine.
along with these i need to exchange two dockzones height and width whilei drag and drop docks.
Do suggest.

Pero
Telerik team
 answered on 29 Apr 2010
3 answers
202 views
I have a RadSlidingPane with its PersistScrollPosition set to true.  However, when I scroll to a particular position and collapse the SlidingPane and later when I open it, it takes me to the top of the content in the SlidingPane.  Am I missing something?

I'm using Q3 2009 SP2

Here is my .aspx code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Telerik._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">  
<style type="text/css">  
html, body, form  
{  
    height: 100%;  
    margin: 0px;  
    padding: 0px;  
    overflow: hidden;  
    font-size: 9px;  
    font-family: Verdana;  
}  
</style> 
 
</head> 
<body> 
    <form id="frmDefault" runat="server">  
          
        <asp:ScriptManager ID="smgrMain" runat="server" /> 
 
        <div id="dvMain" style="height: 100%;">  
            <telerik:RadSplitter   
                ID="splMain"   
                runat="server"   
                Orientation="Horizontal"   
                Height="100%" 
                Width="100%" 
                BorderSize="0" 
                VisibleDuringInit="false"   
                ResizeWithBrowserWindow="true"   
                Skin="Office2007">  
                <telerik:RadPane   
                    ID="paneTop"   
                    runat="server"   
                    Height="50"   
                    Locked="true" 
                    Scrolling="none">  
                    Header  
                </telerik:RadPane> 
                <telerik:RadPane   
                    ID="paneLeftRight"   
                    runat="server"   
                    Scrolling="None"   
                    MinWidth="500">  
                    <telerik:RadSplitter   
                        ID="splLeftRight"   
                        runat="server"   
                        Skin="Office2007" 
                        VisibleDuringInit="false"   
                        ResizeWithBrowserWindow="true" 
                        ResizeWithParentPane="true" 
                        LiveResize="true">  
                        <telerik:RadPane   
                            ID="paneLeft"   
                            runat="server"   
                            Width="20" 
                            MinWidth="120"   
                            MaxWidth="300"   
                            Scrolling="None">  
                            <telerik:RadSlidingZone ID="slzLeft" runat="server" ClickToOpen="false">  
                                <telerik:RadSlidingPane   
                                    ID="slpFirst"   
                                    runat="server"   
                                    Title="First"   
                                    DockText="First" 
                                    UndockText="First"   
                                    PersistScrollPosition="true" 
                                    Width="250">  
                                    <asp:Literal ID="litTest" runat="server" /> 
                                </telerik:RadSlidingPane> 
                                <telerik:RadSlidingPane ID="slpSecond" runat="server" Title="Second" Width="250px"/>  
                            </telerik:RadSlidingZone> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="spbLeftRight" runat="server" /> 
                        <telerik:RadPane ID="paneRight" runat="server" ContentUrl="about:Blank" Scrolling="Both"/>  
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </div> 
    </form> 
</body> 
</html> 
 

And my codebehind

protected void Page_Load(object sender, EventArgs e)  
        {  
            string strData = string.Empty;  
            for (int intCounter = 0; intCounter < 500; intCounter++)  
            {  
                strData += intCounter + "<br />";  
            }  
            litTest.Text = strData;  
        } 
Jones
Top achievements
Rank 1
 answered on 29 Apr 2010
2 answers
155 views
I want my textbox to accept empty string or a string that matches my regular expression. I tried setting the IsRequiredFields to false but still it doesnt work. Thanks
Web team
Top achievements
Rank 1
 answered on 29 Apr 2010
1 answer
125 views
can anyone tell me the telerik themes for asp.net button, checkbox, radiobutton, linkbutton, image, image button, panel, tables, hyperlink, dropdown controls and for asp.net page.
Sebastian
Telerik team
 answered on 29 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?