Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Dear Telerik,

For navigating through days in my web application, it would be ideal to have a way of selecting a date in the RibbonBar (where all my other buttons are located). I have found that the WinForms variant of this control supports a RadHostItem in which you can place any control. Would something similar be possible with the ASP.Net RadRibbonBar?

Kind regards,

Datamex
Simon
Telerik team
 answered on 24 Mar 2011
2 answers
100 views
Is there any way to allow an overwrite when someone drags a file to a folder that already has a file with that name?  I know it works on the Upload functionality but I need it to allow it for a drag and drop also.

thanks!
Koren
Top achievements
Rank 1
 answered on 24 Mar 2011
1 answer
138 views

Can you explain why the content page continues to blink and why the telerik controls do not work as advertised?

Site Master:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TelerikAjaxStandard.Site1" %>

<!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 runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>



Content Page:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebContentForm1.aspx.cs" Inherits="TelerikAjaxStandard.WebContentForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

   
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>       
       
    </AjaxSettings>
   
</telerik:RadAjaxManagerProxy>

    <telerik:RadGrid ID="RadGrid1" runat="server"
                     DataSourceID="SqlDataSource_Course" GridLines="None"
                     Width="400px"
                     AutoGenerateColumns="False">

        <MasterTableView DataSourceID="SqlDataSource_Course" DataKeyNames="CourseID">
       
            <Columns>
                <telerik:GridBoundColumn UniqueName="Title" DataField="Title" HeaderText="Title" />
                <telerik:GridBoundColumn UniqueName="Credits" DataField="Credits" HeaderText="Credits" />                                
            </Columns>
               
        </MasterTableView>
       
        <ClientSettings EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
       
    </telerik:RadGrid>
   

   
    <asp:SqlDataSource ID="SqlDataSource_Course" runat="server"
        ConnectionString="<%$ ConnectionStrings:SchoolConnectionString %>"
        SelectCommand="SELECT [Title], [Credits], [CourseID] FROM [Course] ORDER BY [Title]"></asp:SqlDataSource>
       
</asp:Content>

Pavlina
Telerik team
 answered on 24 Mar 2011
4 answers
303 views
Hi!
I'm new to telerik components so this is propably very easy.
Could somebody show me how to add a RadDatePicker to Radgrid datefield.
I need the datepicker when in inline editmode.

I'm only interested in how it's done in codebehind (vb.net)

The snippet below shows how i fill the RadGrid and it works fine.
Private Sub test()
 
        With tabell
            .Columns.Add("Test")
            .Columns.Add("TEST!")
            .Columns.Add("KNamn")
            .Columns.Add("W_Name")
            .Columns.Add("W_Message")
            .Columns.Add("date")
            .Columns.Add("Post_ID")
        End With
           ' sql connection goes here.......

            Dim r As DataRow
 
            While SQLReader.Read
                r = tabell.NewRow
                r.Item(0) = (SQLReader("kundNr"))
                r.Item(1) = (Roomname.Dequeue.ToString)
                r.Item(2) = (SQLReader("Kund_Namn"))
                r.Item(3) = (SQLReader("Welcome_Name"))
                r.Item(4) = (SQLReader("Welcome_Message"))
                r.Item(5) = (SQLReader("date"))  ' here i need a RadDatePicker
                r.Item(6) = (SQLReader("Post_Id"))
                tabell.Rows.Add(r)
            End While
            SQLReader.Close()
            SQLConn.Close()
       
        RadGrid1.DataSource = tabell
        RadGrid1.DataBind()
 
 
 
    End Sub
Jarmo
Top achievements
Rank 1
 answered on 24 Mar 2011
3 answers
280 views
I need full postback when one of the buttons within RadAjaxPanel is clicked. I followed the documentation section "Exclude controls from ajaxifying" by registering postback on page load

ScriptManager1.RegisterPostBackControl(Button2);

This works, but only once. When the same or another button is clicked after the first time, nothing happens. No postbacks.

This may have something to do with SharePoint because the code runs fine if the control under ASP.NET, but once the control is deployed to SharePoint, postback occurs only once.

How can I troubleshoot this problem?

Thanks,

-Stan
Maria Ilieva
Telerik team
 answered on 24 Mar 2011
1 answer
199 views


I have a RadGrid bound to an IList<SomeType>, where SomeType is defined as a struct with two string properties (e.g., A and B).  In the Grid, column 0 displays property A and column 1 displays property B.   Both properties contain data in mixed case.

The grid sorts the data in a case-sensitive manner, such that "AA" is the first item and "zz" is the last item, and "Music" and "music" are not next to each other:

Is there a way to make the grid perform the sort in a case-insensitive manner?  How do people normally handle this situation with the RadGrid?   Do I need to do a case-insensitive sort of the data and rebind (AKA "custom sorting")?

Thanks!

Vasil
Telerik team
 answered on 24 Mar 2011
0 answers
50 views
Hello,

I'm facing three problem with the silverlight dialog within the RTL RadEditor:
1) The Dialog is not designed well in RTL mode (Common problem for all dialogs in RTL mode).
Please view the attached image.

2) As you can see in the attached image I can't add InitParameters to the silverlight control. Is there any way to set the InitParameters without using the HTML Mode of the RadEditor (I mean manually)? Is there any way to add fields to this dialog? If it is possible, please explain to me how I can do that?

3) What does the following properties means:
    a. Windowless
    b. Auto Upgrade
    c. Enable Hml Access

Please, I need your help in order to solve the above problems.
It is apreciared to send me a code which solves the first two problems and an explaination for the third problem.

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 24 Mar 2011
3 answers
120 views
Hi there,

I'm facing the following problem:

First I had a web page that consisted of a RadTabStrip. When you clicked on any of its tabs, a RadGrid would be shown (related to its tab). There was one Radgrid in particular that when you double clicked on a row a RadWindow would show and render a PDF as its contents. As anyone might imagine for this I had to set the RadGrid's OnRowDblClick ClientSetting-ClientEvents to a javascript function.
<ClientSettings...
   <ClientEvents OnRowDblClick="RowDblClickAC" />

and the function:
function RowDblClickAC(sender, eventArgs) {
                var oWnd = window.radopen("../Catalogos/CatContent.aspx?" +
                    "NoCredito=" + eventArgs.getDataKeyValue("ID") +
                    "&FechaRegistro=" + eventArgs.getDataKeyValue("DateTrans"),
                    "uld");
                oWnd.setSize(800, 500);
                oWnd.center();
                oWnd.set_modal(true);
                oWnd.set_title = "PDF Content";
            }

and I also had the RadWindowManager code:
<telerik:RadWindowManager ID="rwm" runat="server" Skin="Outlook">
        <Windows>
            <telerik:RadWindow ID="uld" runat="server"
                AutoSize="true" VisibleTitlebar="true"
                VisibleStatusbar="false"
                ReloadOnShow="true" Modal="true" ShowContentDuringLoad="false"         
                Skin="Outlook" />
        </Windows>
    </telerik:RadWindowManager>

As anyone can see this code, everything worked OK as soon as the controls were declared declaratively. For performance reasons, I had to re-create the webpage by now loading dynamically each RadGrid. Now when I want to double click on a row, the RadWindow pops up but it stays there "forever" (with a circular loading panel) but without presenting the PDF. As I just mentioned, before everything worked OK.

Please, can someone shed some light on this?

Felix
Svetlina Anati
Telerik team
 answered on 24 Mar 2011
3 answers
81 views
I have a RadScheduler whose data source is a SiteFinity event one. In the RadScheduler_AppointmentClick event, I have access to the Appointment class, but I can't seem to gain access to properties such as the location, description, etc.

Michael
Top achievements
Rank 1
 answered on 24 Mar 2011
2 answers
120 views

Ok.  This is driving me nuts, because I'm missing what's causing this to happen.  I am creating RadGrid columns programmatically, using one grid (aspx page) for 7 different datasources, controlled by a Case statement.  My problem is that if I click either on the Edit button( GridEditCommandColumn) or on the Delete button (GridButtonColumn), the Delete button disappears on postback.  All other columns(GridBoundColumn) reappear just fine.  Here is the snippet of code. It appears in a Page Load event.  The DataSourceID is supplied with a NeedDataSource event which is why it is commented out in the snippet.  What am I missing?  Thanks in advance.

If Not IsPostBack Then
            Dim intReport As Integer = Request("Report")
            Select intReport
                Case 0
                    ' Comments
                    'rgDisplay.DataSourceID = "CommentsDS"
                    rgDisplay.MasterTableView.DataKeyNames = New String() {"CMT_REC_ID"}
                    rgDisplay.Width = Unit.Percentage(90)
                    rgDisplay.PageSize = 5
                    rgDisplay.AllowPaging = True
                    rgDisplay.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
                    rgDisplay.AutoGenerateColumns = False
                    rgDisplay.Skin = "Hay"
                    rgDisplay.MasterTableView.PageSize = 20
                    rgDisplay.MasterTableView.Width = Unit.Percentage(100)
                    rgDisplay.MasterTableView.EditMode = GridEditMode.InPlace
                    Dim colEdit As GridEditCommandColumn
                    colEdit = New GridEditCommandColumn
                    colEdit.UniqueName = "EditCommandColumn"
                    colEdit.ItemStyle.Width = Unit.Pixel(25)
                    rgDisplay.MasterTableView.Columns.Add(colEdit)
                    Dim colDel As GridButtonColumn
                    colDel = New GridButtonColumn
                    colDel.Visible = True
                    colDel.CommandName = "Delete"
                    colDel.UniqueName = "cmdDelete"
                    colDel.Text = "Delete"
                    colDel.ItemStyle.Width = Unit.Pixel(25)
                    rgDisplay.MasterTableView.Columns.Add(colDel)
                    Dim colBound As GridBoundColumn
                    colBound = New GridBoundColumn
                    rgDisplay.MasterTableView.Columns.Add(colBound)
                    colBound.DataField = "CMT_REC_ID"
                    colBound.HeaderText = "Number"
                    colBound.UniqueName = "CMTRecID"
                    colBound = New GridBoundColumn
                    rgDisplay.MasterTableView.Columns.Add(colBound)
                    colBound.DataField = "CMT_DESCRIPTION"
                    colBound.HeaderText = "Description"
                    colBound.UniqueName = "CMTDescription"
Chuck Harrington
Top achievements
Rank 1
 answered on 24 Mar 2011
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?