Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I need to test whether or not a RadWindow is in the Windows collection of a RadWindowManager.

"Easy" I thought, I'll add an extension method ...

public static RadWindow FindWindowByID(this RadWindowManager WindowManager, string ID)
{
    if (String.IsNullOrWhiteSpace(ID))
    {
        throw new InvalidOperationException("Searching for a blank ID is not supported)");
    }
    string id = ID.ToLower();
    if (WindowManager.Windows.Count == 0)
    {
        return null;
    }
    RadWindow result = null;
    foreach (RadWindow window in WindowManager.Windows)
    {
        if (window.ID.ToLower() == id)
        {
            result = window;
            break;
        }
    }
    return result;
}

However, when called it always throws an exception in the test if(window.ID.ToLower() == id) and reports the window.ID is null.

If I drill down through the object's structure all the way to WebControl I can see that, in fact, ID is set but it isn't my value (the one assigned in the markup), but, rather is an automagically assigned value like cl001.

OK, so you are managing the ID, but I can't find a property anywhere that has the value that I assigned and that I can test against.

What am I missing?

-- 
Stuart
Marin Bratanov
Telerik team
 answered on 17 May 2011
2 answers
109 views
I have a project that previously used asp dropdown lists.  I am switching these over to telerik controls for increased functionality.  However, I need to be able to dynamically reference and populate the controls in the page load event.  Here is how I used to accomplish this:

Dim dropDown As New DropDownList
dropDown = CType(Me.Master.FindControl("id_" & dynamic_code), DropDownList)
 
With dropDown
    .Enabled = True
    .DataSource = SqlDataReader
    .DataValueField = "code"
    .DataTextField = "desc"
    .DataBind()
End With


How do I replicate this behavior with a telerik control?  I've tried something like this:

Dim dropDown As RadComboBoxItem
Dim instance As RadComboBoxItem
 
dropDown = instance.FindControl("id_" & dynamic_code)
 
With dropDown
    .Enabled = True
    .DataSource = SqlDataReader
    .DataValueField = "code"
    .DataTextField = "desc"
    .DataBind()
End With

But the properties I'm trying to set are invalid and do not exist.  Suggestions or help appreciated.
Karl
Top achievements
Rank 1
 answered on 17 May 2011
1 answer
73 views
Hi,

The radeditor flickers a lot when using IE (only tested with IE9), when setting ContentMode to Div and using AutoResize to fit content height.

This is easy to demonstrate in your Demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx

1. Check the Auto resize button.
2. Make a lot of new lines at the end of the editor (large content).
3. Start typing and press enter, continue typing and pressing enter.

This makes the entire page to flicker a lot.

Regards
Caesar
Rumen
Telerik team
 answered on 17 May 2011
1 answer
68 views

This one is complicated even to explain. I have .aspx page in my project, which uses JSON to load some parts of page. In old version of this page, I have text area, which was replaced with fckeditor using javascript. Now, I am trying to change old fckeditor with new RAD editor.
My problem is, that when I change textarea to radeditor, I get this error :


Sys.Res is undefined


 if (!element) throw Error.argument('element', Sys.Res.createNoDom);

When editor should appear, on FF4, I see unconfigured editor, which do not responds to any of my actions, on IE8 - text area without toolbar.

Any ideas how to make this work?

Rumen
Telerik team
 answered on 17 May 2011
3 answers
161 views
Hi,

Autocomplete feature gets disabled when the radcombobox is used in ajax poastback. eg. I have a radcombobox which postback after index changed. It is also registered for ajax postback like below

 

<telerik:AjaxSetting AjaxControlID="cboCountry">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="cboStates" />

 

 

<telerik:AjaxUpdatedControl ControlID="cboProduct" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 


Now when page is loaded for the first time the cbostates and cboproducts will autocomplete but after the ajaxpost back autocomplete feature gets disabled. Please reply for the same its kinda urgent. Thanks.
Kate
Telerik team
 answered on 17 May 2011
1 answer
107 views
Hello, i have RadRotator inside of RadListView, when I click on the linkbutton (RadRotator) the RadAjaxLoadingPanel just appears for an instant but the end of request never waits for the response ??

I mean, the RadAjaxLoadingPanel  is never waiting to the Itemclick event of the rad rotator inside of radlistview..

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007"
    meta:resourcekey="RadAjaxLoadingPanel1Resource1" />
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
    <script type="text/javascript">
        function showNextItem(clickedButton, rotator, direction) {
            rotator.showNext(direction);
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxPanel ID="radAjaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
    HorizontalAlign="NotSet" meta:resourcekey="radAjaxPanelResource1">
    <telerik:RadDataPager ID="RadDataPager2" runat="server" PagedControlID="RadListView1"
        Width="685px" meta:resourcekey="RadDataPager2Resource1">
        <Fields>
            <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
            <telerik:RadDataPagerButtonField FieldType="Numeric" />
            <telerik:RadDataPagerButtonField FieldType="NextLast" />
            <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
            <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TextBoxWidth="15" meta:resourcekey="RadDataPagerGoToPageFieldResource1" />
            <telerik:RadDataPagerTemplatePageField>
                <PagerTemplate>
                    <div style="float: right">
                        <b>Items
                            <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1 %>"
                                meta:resourcekey="CurrentPageLabelResource1" />
                            to
                            <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>"
                                meta:resourcekey="TotalPagesLabelResource1" />
                            of
                            <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount %>"
                                meta:resourcekey="TotalItemsLabelResource1" />
                            <br />
                        </b>
                    </div>
                </PagerTemplate>
            </telerik:RadDataPagerTemplatePageField>
        </Fields>
    </telerik:RadDataPager>
    <div style="background-image: url('/images/detallefoto_2.jpg'); background-repeat: repeat-y;
        text-align: center; width: 705px; clear: both">
        <telerik:RadListView ID="RadListView1" Width="540px" AllowPaging="True" AllowCustomPaging="True"
            runat="server" AllowSorting="false" ItemPlaceholderID="ProductsHolder" OnPageIndexChanged="RadListView1_PageIndexChanged"
            DataKeyNames="MatchID" OnItemDataBound="RadListView1_ItemDataBound" OnNeedDataSource="RadListView1_NeedDataSource"
            meta:resourcekey="RadListView1Resource1">
            <LayoutTemplate>
                <asp:Panel ID="ProductsHolder" runat="server" meta:resourcekey="ProductsHolderResource1" />
                <br style="clear: both" />
            </LayoutTemplate>
            <ItemTemplate>
                <div style="clear: left;">
                    <div style="background-image: url('../images/faq_1.jpg'); background-repeat: no-repeat;
                        height: 54px; text-align: left">
                        <div style="width: 549px; position: relative; left: 65px; top: 22px; height: 14px;">
                            <asp:Label ID="MyData" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#999999"
                                Text='<%# Eval("NumberID") %>' meta:resourcekey="MyDataResource1"></asp:Label>
                        </div>
                    </div>
                    <table style="width: 700px; padding: 0px; margin: 0px; height: 300px" border="0">
                        <tr>
                            <td width="20">
                                <asp:HyperLink ID="rightButtonHyperLink" runat="server" ImageUrl="~/images/flechaiz.jpg"
                                    NavigateUrl="#" BorderWidth="0px" meta:resourcekey="rightButtonHyperLinkResource1" />
                            </td>
                            <td valign="top">
                                <telerik:RadRotator ID="RadRotator1" runat="server" Width="100%" ItemWidth="230px"
                                    RotatorType="FromCode" OnItemDataBound="RadRotator1_ItemDataBound" meta:resourcekey="RadRotator1Resource1"
                                    Height="350px" onitemclick="RadRotator1_ItemClick"  AutoPostBack="true" EnableAjaxSkinRendering="true" FrameDuration="2000"
                                    onitemcreated="RadRotator1_ItemCreated" SlideShowAnimation-Duration="4000">
                                    <ItemTemplate>
                                        <div>
                                            <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0" align="center">
                                                <tr>
                                                    <td colspan="3" style="text-align: center">
                                                        <div style="background-position: 15px 12px; background-image: url('/images/foto_1.jpg');
                                                            height: 20px; background-repeat: no-repeat;">
                                                        </div>
                                                        <div style="padding: 5px 0px 5px 0px; background-position: 15px 0px; background-image: url('/images/foto_2.jpg');
                                                            background-repeat: repeat-y; text-align: center">
                                                            <asp:HyperLink ID="photoImageButton" runat="server" ImageUrl='<%# Eval("ThumbsPath") %>'
                                                                meta:resourcekey="photoImageButtonResource1" />
                                                        </div>
                                                        <div style="background-position: 15px -16px; background-image: url('/images/foto_3.jpg');
                                                            height: 19px; background-repeat: no-repeat;">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center;">
                                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Description") %>' meta:resourcekey="Label2Resource1"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        <asp:HyperLink ID="userNameHyperLink" runat="server" Text='<%# Eval("UserName") %>'
                                                            NavigateUrl='<%# "/member/" + Eval("UserName") %>' meta:resourcekey="userNameHyperLinkResource1" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="text-align: center">
                                                        <img alt="" src="/images/vinetaverde.jpg" height="10" width="10" />
                                                        <asp:Label ID="uploadedDateLabel" runat="server" meta:resourcekey="uploadedDateLabelResource1" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        <asp:Label ID="numberVotesLabel" runat="server" Text='<%# Eval("NumberVotes") %>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        <asp:ImageButton ID="voteNowImageButton" runat="server" meta:resourcekey="voteNowImageResource1"
                                                            CommandName="Vote" CommandArgument='<%# Eval("PhotographyID") %>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        <asp:ImageButton ID="denunceNowImageButton" runat="server" meta:resourcekey="denunceNowImageResource1"
                                                            CommandName="Denounce" CommandArgument='<%# Eval("PhotographyID") %>' />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadRotator>
                            </td>
                            <td width="20">
                                <asp:HyperLink ID="leftButtonHyperLink" runat="server" ImageUrl="~/images/flechade.jpg"
                                    NavigateUrl="#" BorderWidth="0px" meta:resourcekey="leftButtonHyperLinkResource1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
        </telerik:RadListView>
    </div>
    <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
        Width="685px" meta:resourcekey="RadDataPager1Resource1">
        <Fields>
            <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
            <telerik:RadDataPagerButtonField FieldType="Numeric" />
            <telerik:RadDataPagerButtonField FieldType="NextLast" />
            <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
            <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TextBoxWidth="15" meta:resourcekey="RadDataPagerGoToPageFieldResource2" />
            <telerik:RadDataPagerTemplatePageField>
                <PagerTemplate>
                    <div style="float: right">
                        <b>Items
                            <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1 %>"
                                meta:resourcekey="CurrentPageLabelResource2" />
                            to
                            <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>"
                                meta:resourcekey="TotalPagesLabelResource2" />
                            of
                            <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount %>"
                                meta:resourcekey="TotalItemsLabelResource2" />
                            <br />
                        </b>
                    </div>
                </PagerTemplate>
            </telerik:RadDataPagerTemplatePageField>
        </Fields>
    </telerik:RadDataPager>
</telerik:RadAjaxPanel>


Niko
Telerik team
 answered on 17 May 2011
2 answers
271 views
I'm attempting to get a selected item to scroll into view.  When I use the code posted in this article, I have a couple of problems.
1. First I get a JavaScript error that states that the "GridCreated" function can't be found.  If I remove the RadUpdate Panel from the page, this goes away (I need it to work in an update panel though).  
2.  After removing the update panel from the page, var scrollArea = document.getElementById(this.ClientID + "_GridData"); returns null.
3. this.MasterTableView is null.

I'm using the 2011.1.413.35 version of the Telerik.Web.UI.dll.  I have copied the code from the article into a completely clean project to make sure my code was not interfering with it, and the problems still occur.

Could you please point me in the right direction?

Regards,

John B.
John Brogdon
Top achievements
Rank 1
 answered on 17 May 2011
6 answers
205 views
I have a radgrid. It opens modal popup for edit/insert. inside this edit template there's another radgrid. it opens modal popup for edit/indert also. Problem is, second grid popup is not modal. Also from fist grid, when popup modal opens, page disables, as it should be, but radmenu still works... I tried very simple samples of hierarchy radgrid samples and grid-> modal popup - grid -> modalpopup combination always gives same result. "Radgrid poopup's edit functionality is not working IF they are another radgrid's modal edit popup"

Also you can see attached imate to understand what I mean & problem about radmenu. as you can see though modal opous opened mouse can still drop menu items and if you click them you can navigate.

any suggestions please ?

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" CodePage="1254" AutoEventWireup="false"  
    CodeFile="Satinalmalar.aspx.vb" Inherits="Satinalmalar" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 29px;
        }
        .style3
        {
        }
        .style4
        {
            width: 155px;
        }
        .style5
        {
            width: 256px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        Products
    </h2>
    <br />
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Sunset">
    </telerik:RadWindowManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
        DataSourceID="SqlDataSource_Faturalar" GridLines="None" AllowAutomaticDeletes="True"
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" Width="469px" Skin="Sunset">
        <MasterTableView DataKeyNames="ID, Guidid" DataSourceID="SqlDataSource_Faturalar"
            CommandItemDisplay="Top" EditMode="PopUp">
            <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Yeni kayıt"
                ShowRefreshButton="False"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column"
                    HeaderText="ID" ReadOnly="True" Visible="false" SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FirmaAdi" FilterControlAltText="Filter FirmaAdi column"
                    HeaderText="FirmaAdi" SortExpression="FirmaAdi" UniqueName="FirmaAdi">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FaturaNo" FilterControlAltText="Filter FaturaNo column"
                    HeaderText="FaturaNo" SortExpression="FaturaNo" UniqueName="FaturaNo">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Tarih" FilterControlAltText="Filter Tarih column"
                    HeaderText="Tarih" SortExpression="Tarih" UniqueName="Tarih">
                </telerik:GridBoundColumn>
                <telerik:GridEditCommandColumn CancelText="İptal" EditText="Güncelle" FilterControlAltText="Filter EditCommandColumn column"
                    InsertText="Ekle" UpdateText="Kaydet">
                </telerik:GridEditCommandColumn>
                <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Kaydı silmek istediÄŸinize eminmisiniz ?"
                    ConfirmTitle="KarinaMira" FilterControlAltText="Filter column column" UniqueName="column"
                    ConfirmDialogType="RadWindow" Text="Sil">
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings EditFormType="Template" InsertCaption="Yeni Kayıt" CaptionFormatString="Güncelleme">
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
                <FormTemplate>
                    <table class="style1">
                        <tr>
                            <td class="style2">
                            </td>
                            <td class="style3">
                                Firma Adı
                            </td>
                            <td>
                                <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource_Firmalar"
                                    DataTextField="FirmaAdi" DataValueField="Guidid" EmptyMessage="Seçiniz" Skin="Outlook"
                                    OnDataBound="RadComboBox1_DataBound" SelectedValue='<%# Bind("FirmaGuidid") %>'>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="RadComboBox1"
                                    ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                            </td>
                            <td class="style3">
                                Fatura No
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FaturaNo") %>'></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox2"
                                    ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                            </td>
                            <td class="style3">
                                Tarih
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Tarih") %>'></asp:TextBox>
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                            </td>
                            <td class="style3">
                            </td>
                            <td>
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                  
                            </td>
                            <td class="style3" colspan="2">
                                detay<br />
                                <telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid2_NeedDataSource"
                                    OnUpdateCommand="RadGrid2_UpdateCommand" OnInsertCommand="RadGrid2_InsertCommand"
                                    OnItemCommand="RadGrid2_ItemCommand" AutoGenerateColumns="False" DataKeyNames="No"
                                    OnDeleteCommand="RadGrid2_DeleteCommand" CellSpacing="0" GridLines="None">
                                    <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" EditMode="PopUp"
                                        ShowHeadersWhenNoRecords="true">
                                        <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Yeni fatura kalemi"
                                            ShowRefreshButton="False" />
                                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        </ExpandCollapseColumn>
                                        <Columns>
                                            <telerik:GridTemplateColumn DataField="No" DataType="System.Int32" FilterControlAltText="Filter No column"
                                                Visible="false" HeaderText="No" SortExpression="No" UniqueName="No">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="NoTextBox_" runat="server" Width="40px" Text='<%# Bind("No") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="NoLabel" runat="server" Text='<%# Eval("No") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn DataField="Urun" FilterControlAltText="Filter Urun column"
                                                HeaderText="Ürün" SortExpression="Urun" UniqueName="Urun">
                                                <EditItemTemplate>
                                                    <telerik:RadComboBox ID="RadComboBoxUrun_" runat="server" DataSourceID="SqlDataSource_Urunler"
                                                        DataTextField="UrunAdi" DataValueField="Guidid" EmptyMessage="Seçiniz" Skin="Outlook"
                                                        OnDataBound="RadComboBoxUrun_DataBound" SelectedValue='<%# Bind("UrunGuidid") %>'>
                                                    </telerik:RadComboBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5_" runat="server" ControlToValidate="RadComboBoxUrun_"
                                                        ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="UrunLabel" runat="server" Text='<%# Eval("Urun") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn DataField="Miktar" FilterControlAltText="Filter Miktar column"
                                                HeaderText="Miktar" SortExpression="Miktar" UniqueName="Miktar">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="MiktarTextBoxX" runat="server" Width="40px" Text='<%# Bind("Miktar") %>'></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6x" runat="server" ControlToValidate="MiktarTextBoxX"
                                                        ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="MiktarLabel" runat="server" Text='<%# Eval("Miktar") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn DataField="Birim" FilterControlAltText="Filter Birim column"
                                                HeaderText="Birim" SortExpression="Birim" UniqueName="Birim">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="BirimTextBox_" runat="server" Width="40px" ReadOnly="true" Text='<%# Bind("Birim") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="BirimLabel" runat="server" Text='<%# Eval("Birim") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn DataField="BirimFiyat" FilterControlAltText="Filter BirimFiyat column"
                                                HeaderText="Birim Fiyat" SortExpression="BirimFiyat" UniqueName="BirimFiyat">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="BirimFiyatTextBox_" runat="server" Width="40px" Text='<%# Bind("BirimFiyat") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="BirimFiyatLabel" runat="server" Text='<%# Eval("BirimFiyat") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn DataField="ToplamFiyat" FilterControlAltText="Filter ToplamFiyat column"
                                                HeaderText="ToplamFiyat" SortExpression="ToplamFiyat" UniqueName="ToplamFiyat">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="ToplamFiyatTextBox_" runat="server" Width="60px" ReadOnly="true"
                                                        Text='<%# Bind("ToplamFiyat") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="ToplamFiyatLabel" runat="server" Text='<%# Eval("ToplamFiyat") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridEditCommandColumn CancelText="İptal" EditText="Güncelle" FilterControlAltText="Filter EditCommandColumn column"
                                                InsertText="Ekle" UpdateText="Kaydet">
                                            </telerik:GridEditCommandColumn>
                                            <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Kaydı silmek istediÄŸinize eminmisiniz ?"
                                                ConfirmTitle="KarinaMira" FilterControlAltText="Filter column column" UniqueName="column"
                                                ConfirmDialogType="RadWindow" Text="Sil">
                                            </telerik:GridButtonColumn>
                                        </Columns>
                                        <EditFormSettings EditFormType="Template">
                                            <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UpdateText="Kaydet"
                                                CancelText="İptal" UniqueName="EditCommandColumn1">
                                            </EditColumn>
                                            <FormTemplate>
                                                <table class="style1">
                                                                                                        <tr>
                                                        <td class="style5">
                                                            Ãœrün
                                                        </td>
                                                        <td>
                                                            <telerik:RadComboBox ID="RadComboBoxUrun" runat="server" DataSourceID="SqlDataSource_Urunler"
                                                                DataTextField="UrunAdi" DataValueField="Guidid" EmptyMessage="Seçiniz" OnDataBound="RadComboBoxUrun_DataBound"
                                                                SelectedValue='<%# Bind("UrunGuidid") %>' Skin="Outlook">
                                                            </telerik:RadComboBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="RadComboBoxUrun"
                                                                ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                                                        </td>
                                                        <td>
                                                              
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="NoTextBox" runat="server" Text='<%# Bind("No") %>' Visible="false"
                                                                Width="40px"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                        </td>
                                                        <td>
                                                        </td>
                                                    </tr>
 
                                                    <tr>
                                                        <td class="style5">
                                                            Miktar
                                                        </td>
                                                        <td>
                                                            <telerik:RadNumericTextBox ID="MiktarTextBox"  runat="server" Width="40px" Culture="tr-TR"
                                                                DbValue ='<%# Bind("Miktar") %>'>
                                                            </telerik:RadNumericTextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="MiktarTextBox"
                                                                ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300"></asp:RequiredFieldValidator>
                                                            <asp:RangeValidator ID="RangeValidator1" runat="server" MinimumValue="0" MaximumValue="999999999"  ErrorMessage="**" Font-Bold="True" Font-Size="Small" ForeColor="#CC3300" ControlToValidate="MiktarTextBox"></asp:RangeValidator>
                                                        </td>
                                                        <td>
                                                              
                                                        </td>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style5">
                                                            Birim
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="BirimTextBox" runat="server" Width="40px" ReadOnly="true" Text='<%# Bind("Birim") %>'></asp:TextBox>
                                                        </td>
                                                        <td>
                                                              
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style5">
                                                            Birim Fiyat
                                                        </td>
                                                        <td>
                                                            <telerik:RadNumericTextBox ID="BirimFiyatTextBox" runat="server"  dbvalue='<%# Bind("BirimFiyat") %>'
                                                              Culture="tr-TR"   Width="40px">
                                                            </telerik:RadNumericTextBox>
                                                        </td>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style5">
                                                            Toplam Fiyat
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="ToplamFiyatTextBox" runat="server" ReadOnly="true" Text='<%# Bind("ToplamFiyat") %>'
                                                                Width="60px"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style5">
                                                            ddd
                                                        </td>
                                                        <td colspan="2">
                                                            <table style="width: 374px">
                                                                <tr>
                                                                    <td>
                                                                        <telerik:RadButton ID="RadButton11" runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                                                            Skin="Hay" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Ekle", "Kaydet") %>'
                                                                            Width="80px">
                                                                        </telerik:RadButton>
                                                                    </td>
                                                                    <td>
                                                                        <telerik:RadButton ID="RadButton33" runat="server" CausesValidation="False" CommandName="Cancel"
                                                                            Skin="Hay" Text="İptal" Width="90px">
                                                                        </telerik:RadButton>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </FormTemplate>
                                            <PopUpSettings Modal="True" Height="300px" />
                                        </EditFormSettings>
                                    </MasterTableView>
                                    <FilterMenu EnableImageSprites="False">
                                    </FilterMenu>
                                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                    </HeaderContextMenu>
                                </telerik:RadGrid>
                                <p>
                                </p>
                                <p>
                                </p>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_Guidid" runat="server" Visible="false" Text='<%# Bind("Guidid") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                  
                            </td>
                            <td class="style3">
                                  
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                  
                            </td>
                            <td class="style3" colspan="2">
                                <table style="width: 374px">
                                    <tr>
                                        <td>
                                            <telerik:RadButton ID="RadButton11" runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                                Skin="Hay" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Ekle", "Kaydet") %>'
                                                Width="80px">
                                            </telerik:RadButton>
                                        </td>
                                        <td>
                                            <telerik:RadButton ID="RadButton33" runat="server" CausesValidation="False" CommandName="Cancel"
                                                Skin="Hay" Text="İptal" Width="90px">
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                  
                            </td>
                            <td class="style3">
                                  
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                  
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
                <PopUpSettings Modal="True" Width="800px" ShowCaptionInEditForm="true" />
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource_Faturalar" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
        DeleteCommand="DELETE FROM [Faturalar] WHERE [ID] = @ID" InsertCommand="INSERT INTO [Faturalar] ([FirmaGuidid], [FaturaNo], [Tarih], Guidid) VALUES (@FirmaGuidid, @FaturaNo, @Tarih, @Guidid)"
        SelectCommand="SELECT * FROM [Faturalar_View]" UpdateCommand="UPDATE [Faturalar] SET [FirmaGuidid] = @FirmaGuidid, [FaturaNo] = @FaturaNo, [Tarih] = @Tarih, Guidid = @Guidid WHERE [ID] = @ID">
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="FirmaGuidid" Type="String" />
            <asp:Parameter Name="FaturaNo" Type="String" />
            <asp:Parameter Name="Tarih" Type="String" />
            <asp:Parameter Name="Guidid" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="FirmaGuidid" Type="String" />
            <asp:Parameter Name="FaturaNo" Type="String" />
            <asp:Parameter Name="Tarih" Type="String" />
            <asp:Parameter Name="ID" Type="Int32" />
            <asp:Parameter Name="Guidid" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource_Firmalar" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
        SelectCommand="SELECT [FirmaAdi], [Guidid] FROM [Firmalar] ORDER BY [FirmaAdi]">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource_Urunler" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
        SelectCommand="SELECT UrunAdi, [Guidid] FROM Urunler ORDER BY UrunAdi"></asp:SqlDataSource>
</asp:Content>

Maria Ilieva
Telerik team
 answered on 17 May 2011
3 answers
97 views
Hi,

in the demo of the RadRotator with Ticker ..
 
the data source that I'm using is SqlDataSource .. and I can access the items in the Rotator ... but I have

a problem access the RadTickerItem inside it which is inside the RadTicker .. 

so .. any help I will be grateful.
Niko
Telerik team
 answered on 17 May 2011
5 answers
147 views
I am trying to enable the inline spell check for the editor.  The editor is inside RadGrid / MasterTableView / EditFormSettings / FormTemplate.

The inline spell check doesn't work, but explicit call to the AJAXSpellEdit does work properly.  I have followed the instruction to copy the dictionary files to App_Data/RadSpell, add the handler in web.config.

<telerik:RadEditor runat="server" ID="txtDescription" Width="99%" ToolsFile="Styles/defaultTools.xml" EditModes="Design" Content='<%# Bind("Desc") %>' >
                    <Languages>
                        <telerik:SpellCheckerLanguage Code="en-US" Title="English" />
                    </Languages>
                    <SpellCheckSettings AllowAddCustom="true" SpellCheckProvider="PhoneticProvider" DictionaryLanguage="en-US" />
 
                    <CssFiles>
                        <telerik:EditorCssFile Value="Styles/empty.css" />
                    </CssFiles>
 
                    <Modules>
                        <telerik:EditorModule Name="RadEditorStatistics" />
                        <telerik:EditorModule Name="RadEditorDomInspector" />
                    </Modules>
                </telerik:RadEditor>
Rumen
Telerik team
 answered on 17 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?