Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
93 views
Hi

I am  very new to telerik controls and still learning how to use them
Currently I have a telerik grid which has a dropdowncolumn getting the selected value fro the database.
but while editing, i want to show the list of values from an enumeration.
Can anybody tell me how to achieve this?
needy
Top achievements
Rank 1
 answered on 29 Dec 2010
2 answers
39 views

The schedular control isn't rendered correctly in any version of Opera as seen in the attached screenshot.

(Opera 11)

Kamen Bundev
Telerik team
 answered on 29 Dec 2010
1 answer
78 views
Telerik.Web.UI v2010.3.1109.35

We have a radgrid (Theme/Skin="Windows7") and we've added a custom header row like this:

// ***** Add Grid Header Summary Row *****
GridItem[] header = this.MyWorkRadGrid.MasterTableView.GetItems(GridItemType.Header);
//get the current THead element   
GridTHead head = ((GridTHead)header[0].Parent.Controls[1].Parent);
 
//create a new GridHeaderItem which will be the new row   
GridHeaderItem newHeaderItem = new GridHeaderItem(this.MyWorkRadGrid.MasterTableView, 0, 0);
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = " " });
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = " " });
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = count, ColumnSpan = 5, Width = new Unit(100, UnitType.Percentage), HorizontalAlign = HorizontalAlign.Left, VerticalAlign = VerticalAlign.Middle });
 
for (int i = 0; i < head.Controls.Count; i++)
{
    // loop through the header controls collection and find the 'row' that has the same type of GridHeaderItem
    // Then insert the new row just above it - remember the 0 based index will push the original header row down
    if (head.Controls[i].GetType() == newHeaderItem.GetType())
    {
        head.Controls.AddAt(i, newHeaderItem);
    }
}

Our custom inserted header row takes on the windows 7 grid theme, which is cool.
But my boss wants to see if we can style this custom row with your existing "sorted by" column css style - which is like a split gradient.

If you look at the attached image (the customer data is fake data) -
The grid data is sorted by the "Contact Name" column, and so that column header has one of your css classes on it (circled in red)
The custom header I added is the one with the text "(9) Recent Contacts" (red arrow) and that is the row we want your sorted css class on.

Thanks,
Ray
Iana Tsolova
Telerik team
 answered on 29 Dec 2010
2 answers
357 views
The bolded item is where I am running into a problem.  When I run I get the javascript object expected error.  And this is what is in the dynamic code:
onclick="return confirmDelete(&quot;911 ETC, Inc.&quot;);"

<telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:Button ID="deleteButton" style="text-decoration:none" CommandName="Delete" runat="server" Text="Delete" CommandArgument='<%# Eval("VendorCode") + "," + Eval("Vendor") %>' OnClick="vendor_Delete" Enabled="false"
OnClientClick='<%# String.Format("return confirmDelete(\"{0}\");", Eval("Vendor"))%>' >
                                </asp:Button>

                                <asp:Button ID="editButton" style="text-decoration:none" CommandName="EditButton" runat="server" OnClick="vendor_Edit"
                                    Text="Edit" CommandArgument='<%# Eval("VendorCode") + "," + Eval("Vendor") %>' >
                                </asp:Button>
                           </ItemTemplate>
                           <ItemStyle Width="115px" VerticalAlign="Top" />
                    </telerik:GridTemplateColumn>
Amanda
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
62 views
hi guys ,
I develop a application page for sharepoint 2010 and use RadScheduler , how i can use resx files ?
where I should copy these files ?
thanks
Kalina
Telerik team
 answered on 29 Dec 2010
5 answers
93 views
Anyone manage to get the lastest release to work..
It appears that the CDN components are not loaded, as S3 cannot find any of the telerick data?

This happens for all telerik CDN resources, the error below is for http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1215/Default/Ajax.Default.css

What gives? anyone know how to fix this as all of our applciations have stopped working!!!

"x-amz-request-id: 5B44F44ED4B57B14
x-amz-id-2: Z++fwv6or8d5hoso5jr0GZmHdDRFIf57sYcyesPhMR6g1i/FwxJM/nAQZhosIhhL
Content-Type: application/xml
Date: Wed, 15 Dec 2010 20:35:00 GMT
Server: AmazonS3
Age: 53
Content-Length: 301
X-Cache: Error from cloudfront
X-Amz-Cf-Id: c27d8db1333d943ccf2c36be42d14904bc31491f6f0a8e6c3521607f05b3fd863bacabf17ccdae0f,11dde9a06e97df6e385ae7edc7d758d152f5950a33898996189845d11ca39d64a7716c1eb6df030e

Via: 1.0 95d61a85e49613d1aeb8bd7a93537154.cloudfront.net:11180 (CloudFront), 1.0 abe5fd7a524d9a9012cf9ddbca030997.cloudfront.net:11180 (CloudFront)"

Connection: close

Pavel
Telerik team
 answered on 29 Dec 2010
6 answers
236 views

hi,

I Got this error and my radstriptab , OnTabClick occur error. all ajax process failed.. "Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method."

When RadTabStrip clicked, I got this error. I use like that.. Also there is no error on 'Telerik.Web.UI_2010_2_826'  , but I update to 'Telerik.Web.UI_2010_3_1215' version and error occur..  Why the newest version occur that error. ? help...

 

 

<asp:MultiView ID="mwMainProcess" runat="server" ActiveViewIndex="1">
<asp:View ID="vMProcessList" runat="server">
  /// some control
</asp:View>
<asp:View ID="vMProcessEntry" runat="server">
<telerik:RadTabStrip ID="rtsProcess" runat="server" MultiPageID="mwProcess" SelectedIndex="0" OnTabClick="rtsSite_TabClick">
<Tabs>
<telerik:RadTab Selected="True" Text="Deka Emri" Value="0"></telerik:RadTab>
<telerik:RadTab Text="Mteri Bilgileri" Value="1"></telerik:RadTab>
<telerik:RadTab Text=" Bilgileri" Value="2"></telerik:RadTab>
<telerik:RadTab Text="Dkman" Value="3"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="mwProcess" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="vProcessIE" runat="server">
    <uc1:ProcessOrder ID="ProcessOrder1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessCInfo" runat="server">
    <uc2:ProcessOrderCINFO ID="ProcessOrderCINFO1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessJobInfo" runat="server">
    <uc3:ProcessOrderJobInfo ID="ProcessOrderJobInfo1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessDoc" runat="server">
    <uc4:UploadDocuments ID="UploadDocuments1" runat="server" DocumentType="IE" />
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:View>
</asp:MultiView>

 

Pavel
Telerik team
 answered on 29 Dec 2010
3 answers
60 views
Breaks the clientside selection
Pavel
Telerik team
 answered on 29 Dec 2010
1 answer
99 views
I have a combobox on my page and want to have a tooltip applied to each item in the combobox.
Similar to what is shown for the Telerik RadTree at http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultvb.aspx is the "look" I want for the Combobox Items.

Protected Sub RadComboBox1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles RadComboBox1.ItemCreated
For Each domElementID As String In e.Item.Value
'  use domElementID.ToString()  to load a tooltip similar to the link I provided above
Next
End Sub
Kalina
Telerik team
 answered on 29 Dec 2010
3 answers
177 views
Can you Help?

The Radrotator displays prefectly when running the website locally using Visual Studio 2010 but as soon as I upload the website to my webspace the Radroator within the usercontrol doesn't show. I've tested the usercontrol displays by just adding some random text, so I must be missing something with the Rotator somewhere.

Has anyone got any ideas what the problem might be? What am I missing chaps?:

Rotator.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Rotator.ascx.vb" Inherits="Controls_Rotator" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
                   <telerik:RadRotator ID="RadRotator1" runat="server" Width="300px" Height="600px" ScrollDuration="5000" FrameDuration="5000"
                    ItemWidth="300" ScrollDirection="Down" ItemHeight="300">
                    <ItemTemplate>
                        <div class="itemTemplate">sadasdsasadsadadsa
                            <img src='<%# Page.ResolveUrl("~/Pictures/") + Container.DataItem %>.jpg' alt="Customer Image" />
                        </div>
                    </ItemTemplate>
                </telerik:RadRotator>
             </telerik:RadAjaxPanel>


************
Rotator.ascx.vb

Partial Class Controls_Rotator

    Inherits System.Web.UI.UserControl
    Private Property clients As String()
    Private Property document As Object

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        RadRotator1.DataSource = GetRotatorDataSource()
        RadRotator1.DataBind()
    End Sub

    Private Function GetRotatorDataSource() As String()
        Dim Currentpage As String
        Currentpage = System.IO.Path.GetFileName(Request.Url.ToString())
        If Currentpage = "New_Builds.aspx" Then
            ' MsgBox("heloo")
            Dim clients As String() = {"new_1", "new_2", "new_3", "new_4"}
            Return clients
        ElseIf Currentpage = "Landscaping.aspx" Then
            Dim clients As String() = {"land_1", "land_2", "land_3", "land_4", "land_5"}
            Return clients
        ElseIf Currentpage = "Renovations-Extensions.aspx" Then
            Dim clients As String() = {"ren_1", "ren_2", "ren_3", "ren_4", "ren_5", "ren_6"}

            Return clients
        End If
        Return clients
    End Function
End Class

ASPX Page

%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="New_Builds.aspx.vb" Inherits="Pages_New_Builds" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register src="../Controls/Rotator.ascx" tagname="Rotator" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
   
    <div class="ex">
    
        <uc1:Rotator ID="Rotator1" runat="server" />
    
    </div>


Fiko
Telerik team
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?