Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 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
152 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
102 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
254 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
193 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
91 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
133 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
6 answers
107 views
Hi,
We are experiencing something I am unsure if it is a bug or a limitation in RadEditor.

Here are the steps to reproduce
1. In desing mode, insert a "select" form element
2. Click on the newly inserted "select" element
3. The property panel is empty; the properties of the select element cannot be edited (name, id, witdth, height, tooltip, etc) .

This behavior can be reproduced in the current online demos. It is the same in ie6 and ie8.

Are the properties editable in any way? Also, is there any mean for the user to edit the options available in the select control ?

Thanks !
Rumen
Telerik team
 answered on 17 May 2011
4 answers
74 views
Hi
I am using file download control in my Edit Popup as given below;
<input type="file" id="file1" runat="server" name="file1" />

But when i try to  get the value from the control i am getting null value though i selected the desired file i want to download.
string fileName = (e.Item.FindControl("file1") as HtmlInputFile).PostedFile.FileName;

I am also not able to empty validation with traditional asp.net required field validator. But in normal form it works fine as desired.
So please let me know how to get and validate the value from filedownload control as soon as possible

-thanks
John John
Top achievements
Rank 1
 answered on 17 May 2011
1 answer
103 views
I'm just curious, but are the images that are used in the demos available for download or are they installed somewhere when installing teh controls? I know in the older, non-AJAX versions, all the skins had all the toolbar button images, but that doesn't appear to be the case anymore.

Thanks,
Adam

Kate
Telerik team
 answered on 17 May 2011
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?