Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Hello friends. I have a radMenu on my MasterPage. when i hover the mouse on it at runtime it suddenly dissapears. and also some of its items have right alignment for text and some of them have left. 
What can i do for this problem?
Kate
Telerik team
 answered on 05 Sep 2012
3 answers
102 views
Need Urgent Help.  I am much tense.

As seen in attached image, all of sudden controls have stopped rendering properly on screen.
Aligment is off track.

Menus now shows extra row, menu items itself is not aligned properly.
numeric controls shows '0' outside of textbox.

To confirm i created another test project and inserted few controls.  there too, the issues are same.
eg. see how Radbutton is displayed in second image.

Please Advice. What's going wrong.

Regards
Ivan Zhekov
Telerik team
 answered on 05 Sep 2012
2 answers
81 views
Good Afternoon all,

I am hoping to get some help with a simple grid setup that I am working on. I am researching how the Rad Grid control works in order to use it in our production environment. I have little knowledge of the control or its interworkings. I've read through the online documentation and have tried to recreate the example demo with focus toward how I would use it in production. I have a basic Dataset whichi I populate manually for my example. On the aspx page i'm using a basic RadGrid and set the OnNeedDatatSource, I set the MasterTableView EditMode to InPlace and have the columns auto generated. The issue i am seeing is when i click the edit button the RadGrid1_ItemCreated Event is fired but none of theobjects coming in are of type GridDataInsertItem and the IsInEditMode property is always false resulting in a grid that only display "No Records to Display". I'm not sure what i'm missing. Any help would be appreciated. My code is below:

ASPX
<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="TelerikGridControlProject._Default" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
   
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" Visible="true">
    <MasterTableView EditMode="InPlace" AutoGenerateColumns="True" Visible="true">
        <Columns>
           <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
        </Columns>
    </MasterTableView>
    </telerik:RadGrid>
   
</asp:Content>


Code Behind:
Imports Telerik.Web.UI
  
Public Class _Default
    Inherits System.Web.UI.Page
    Private _myDataTable As New DataTable
    Private _nameColumn As DataColumn
    Private _myObjectDataSource As ObjectDataSource
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            BuildDataTable()
            FillDataTable()
        End If
    End Sub
    
  
    Private Sub FillDataTable()
        Dim dataRow As DataRow
        For i As Integer = 0 To 1
            dataRow = MyDataTable.NewRow()
            dataRow("CIFNUMBER") = 1
            dataRow("CustomerName") = String.Format("Customer {0}", i)
            dataRow("BusinessType") = String.Format("Business {0}", i)
            dataRow("Role") = "Role"
            dataRow("RelationshipToPrimary") = "Spouse"
            dataRow("VotingRights") = i
            dataRow("Scored") = i * 100
            MyDataTable.Rows.Add(dataRow)
        Next
    End Sub
  
    Private Sub BuildDataTable()
        Dim nameList As List(Of String) = New List(Of String)(New String() {"CIFNUMBER", "CustomerName", "BusinessType", "Role", "RelationshipToPrimary", "VotingRights", "Scored"})
  
        For i As Integer = 0 To nameList.Count - 1
            MyDataTable.Columns.Add(i)
            MyDataTable.Columns.Add(nameList(i))
        Next
  
    End Sub
  
    Public Property MyDataTable As DataTable
        Get
            Return _myDataTable
        End Get
        Set(value As DataTable)
            _myDataTable = value
        End Set
    End Property
  
    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = MyDataTable
    End Sub
  
    Private Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
        If (TypeOf e.Item Is GridDataInsertItem AndAlso e.Item.IsInEditMode) Then
            'init insert operation triggered
            Dim myString As String = "NOTHING"
  
        ElseIf (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
            'edit operation triggered
            Dim myString As String = "NOTHING"
        End If
    End Sub
  
End Class
David
Top achievements
Rank 1
 answered on 05 Sep 2012
5 answers
477 views
When I have a RadListBox that allows multiple selections, such as:

<telerik:RadListBox ID="rlbItems" runat="server" AutoPostBack="true" Height="200px"
SelectionMode="Multiple" OnSelectedIndexChanged="items_SelectedIndexChanged" />

The server side event only fires when a single selection is made via a click. If the user clicks to drag across several items, then the event never fires. Is there another event I should be using, or another way to make this even fire appropriately when the selected items change?
Nencho
Telerik team
 answered on 05 Sep 2012
21 answers
214 views
I am using RADPanel bar Q2 2008 in my application. I am able to successfully use the control except for a problem in animation.

The animation is showing a flicker on expand or collapse. I digged in to the issue and found that this is occuring only if i remove following string in the aspx header:

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

If the string is present, the animation works fine but my page breaks. This application is an old application and difficult to debug why it is breaking. I guess the problem is with some not well written HTML. Is there any way i can get the animation working flawlessly with the above string not present in the page?

 

 

Kate
Telerik team
 answered on 05 Sep 2012
1 answer
117 views
I wrote a generic HTTP handler for submitting forms that is shared throughout my site like this:

<form action="formmail.ashx" method="post">
     <!-- form contents here -->
</form>

This is so the graphic artists on my team can put anything they want inside it form-wise and it doesn't rely on a form that has runat="server" in it (so no postbacks in the typical sense that we're all used to). Given that, I'm also not doing any server checking for whether the page is valid behind the button itself which is where my real question lies. Is it possible to utilize RadCaptcha in this manner and it still prevent the form from submitting? Or do I have to migrate to an ASP.NET form that can do a Page.IsValid?
Slav
Telerik team
 answered on 05 Sep 2012
1 answer
66 views
Hi,

I would like the RadSlidingZone of my project to be invisible when a certain SlidingPane ist expanded (and regain it's visibility when that SlidingPane collapses). I've tried the following code, but it doesn't seem to work:

function OnClientDock(sender, eventArgs)
{
                var slidingZone = $find("<%=RadSlidingZone1.ClientID %>");
                slidingZone.Width = "0px"; ;
}
 
function OnClientUndock(sender, eventArgs)
 {
                var slidingZone = $find("<%=RadSlidingZone1.ClientID %>");
                slidingZone.Width = "22px";
}


<telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" DockedPaneID="RadSlidingPane1" >
 
            <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server"  Title="SlidingPane"
                    EnableResize="False" OnClientBeforeDock="OnClientDock" OnClientBeforeUndock="OnClientUndock">
 
             [...]
 
             </telerik:RadSlidingPane>
 
</telerik:RadSlidingZone>

Any suggestions on how to fix this would be of great help.
Thanks in advance,
Robin
Vessy
Telerik team
 answered on 05 Sep 2012
33 answers
1.8K+ views
I am using the RadTextBox control with the Password input.  When I retrieve data using a DataTable, the password charicters appear for a second, then dissapear.  If I set the imput type to singleline, it works fine.  Is there a bug here, or am I doing something wrong?  I have verified that I have the lastest version of the control.

Thank you,

Matt
darren
Top achievements
Rank 1
 answered on 05 Sep 2012
1 answer
96 views
Hi, I will upload exe and rar files and use their links in RadEditor, how can i do it?

with many thanks in advance.
Rumen
Telerik team
 answered on 05 Sep 2012
5 answers
315 views
Hi -

I am new to RadControls, and I am having an issue accessing the RadUpload control when it is nested deep inside a RadGrid.

The RadUpload is inside of a RadMultiPage, in the FormTemplate of a RadGrid.  I am trying to manipulate the uploaded files, but I can't figure out how to get a reference to the RadUpload when my submit button is clicked.  Below is my aspx code for the entire RadGrid:

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  
                        AllowSorting="True" Skin="Black" 
                        AllowPaging="True" PageSize="5" GridLines="None" DataSourceID="SqlDataSource1" 
                        AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"  
                        ShowDesignTimeSmartTagMessage="False" ShowGroupPanel="true"
                        <PagerStyle Mode="NumericPages" /> 
                        <MasterTableView CellSpacing="-1" DataKeyNames="IDDepartment" DataSourceID="SqlDataSource1" EditMode="EditForms" 
                            EnableTheming="true" CommandItemDisplay="Top"
                            <EditFormSettings EditFormType="Template"
                                <FormTemplate> 
                                    <asp:Panel ID="InnerContainer" runat="server" Visible="true" style="padding:15px;"
                                        <telerik:RadTabStrip ID="RadTabStrip1" runat="server"  
                                            MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Black"
                                            <Tabs> 
                                                <telerik:RadTab runat="server" PageViewID="RadPageView1" Text="Dept Info"
                                                </telerik:RadTab> 
                                                <telerik:RadTab runat="server" PageViewID="RadPageView2" Text="Dept Contacts"
                                                </telerik:RadTab> 
                                                <telerik:RadTab runat="server" PageViewID="RadPageView3" Text="Dept Files"  
                                                    Selected="True"
                                                </telerik:RadTab> 
                                            </Tabs> 
                                        </telerik:RadTabStrip> 
                                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
                                            <telerik:RadPageView ID="RadPageView1" runat="server" BorderColor="Black"  
                                                BorderStyle="Solid" BorderWidth="1px"
                                                <table> 
                                                    <tr> 
                                                        <td> 
                                                            Name:</td> 
                                                        <td> 
                                                            <asp:TextBox ID="Name" runat="server" Text='<%# Bind( "Name" ) %>'></asp:TextBox> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            Description:</td> 
                                                        <td align="center"
                                                            <telerik:RadEditor ID="Description" runat="server" BackColor="White"  
                                                                HTML='<%# Bind( "Description" ) %>' Skin="Black"
                                                                <CssFiles> 
                                                                    <telerik:EditorCssFile Value="~/css/Styles1.css" /> 
                                                                </CssFiles> 
                                                                <Content> 
                                                                 
                                                                </Content> 
                                                            </telerik:RadEditor> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </telerik:RadPageView> 
                                            <telerik:RadPageView ID="RadPageView2" runat="server" BorderColor="Black"  
                                                BorderStyle="Solid" BorderWidth="1px"
                                                <table> 
                                                    <tr> 
                                                        <td></td
                                                        <td>Hold Ctrl to select multiple<br /></td
                                                    </tr> 
                                                    <tr> 
                                                        <td>Contacts:</td> 
                                                        <td> 
                                                            <asp:ListBox ID="lstContacts" runat="server" DataSourceID="SqlDataSource2"  
                                                                DataTextField="FullName" DataValueField="IDEmployee"  
                                                                ondatabound="lstContacts_DataBound" SelectionMode="Multiple" Width="250px"></asp:ListBox> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </telerik:RadPageView> 
                                            <telerik:RadPageView ID="RadPageView3" runat="server" BorderColor="Black"  
                                                BorderStyle="Solid" BorderWidth="1px"
                                                <telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="False"  
                                                    AllowSorting="True" Skin="Black" AllowPaging="True" PageSize="5"  
                                                    GridLines="None" 
                                                    ShowDesignTimeSmartTagMessage="False" ShowGroupPanel="True"  
                                                    onneeddatasource="RadGrid2_NeedDataSource"
                                                    <MasterTableView CellSpacing="-1"
                                                        <RowIndicatorColumn> 
                                                            <HeaderStyle Width="20px" /> 
                                                        </RowIndicatorColumn> 
                                                        <ExpandCollapseColumn> 
                                                            <HeaderStyle Width="20px" /> 
                                                        </ExpandCollapseColumn> 
                                                        <Columns> 
                                                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  
                                                                ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?" 
                                                                UniqueName="Delete"
                                                            </telerik:GridButtonColumn> 
                                                            <telerik:GridBoundColumn DataField="FileName" HeaderText="File Name"  
                                                                SortExpression="FileName" UniqueName="FileName"
                                                            </telerik:GridBoundColumn> 
                                                            <telerik:GridBoundColumn DataField="Description" HeaderText="Description"  
                                                                SortExpression="Description" UniqueName="Description"
                                                            </telerik:GridBoundColumn> 
                                                        </Columns> 
                                                    </MasterTableView> 
                                                </telerik:RadGrid> 
                                                
                                                <table width="100%"
                                                    <tr> 
                                                        <td>Upload file: </td> 
                                                        <td> <div class="FileDetails"
                                                            <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="5"  
                                                                OnClientAdded="addTitle"  
                                                                TargetFolder="~/files" EnableFileInputSkinning="true"  
                                                                ControlObjectsVisibility="RemoveButtons, AddButton" Skin="Black"
                                                            </telerik:RadUpload> 
                                                            <div class="UploadButton"><asp:Button Width="75px" id="buttonSubmit" runat="server" OnClick="buttonSubmit_Click" text="Upload" /></div></div> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td align="center" colspan="2"
                                                           <telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="Black"
                                                                <Localization Uploaded="Uploaded" /> 
                                                            </telerik:RadProgressArea> <br /><br /> 
                                                             
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                             
                                            </telerik:RadPageView> 
                                        </telerik:RadMultiPage> 
                                        <table width="100%"
                                            <tr> 
                                                <td align="center"
                                                    <asp:Button ID="Update" runat="server" Text="Update" CommandName="Update" /> 
                                                    <asp:Button ID="Cancel" runat="server" Text="Cancel" CommandName="Cancel" /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </asp:Panel> 
                                </FormTemplate> 
                            </EditFormSettings> 
                            <Columns> 
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit"
                                </telerik:GridEditCommandColumn> 
                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name"  
                                    SortExpression="Name" UniqueName="Name"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="Description" HeaderText="Description"  
                                    SortExpression="Description" UniqueName="Description"
                                </telerik:GridBoundColumn> 
                                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  
                                    ConfirmDialogType="RadWindow"  
                                    ConfirmText="Are you sure you want to delete this record?" Text="Delete"  
                                    UniqueName="Delete"
                                </telerik:GridButtonColumn> 
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 

Can someone tell me how to access RadUpload1 from the buttonSubmit_Click event?
Peter Filipov
Telerik team
 answered on 05 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?