Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
231 views
I recently had a bug reported to me from a customer.  They said they were seeing record getting deleted when they didn't intend to delete them.  In my research, I found the following:

When the user would click the "Edit" icon to edit a particular row, they were able to perform all edit functions.  When they would click on a textbox and hit the "Delete" key on their keyboard, characters within the textbox would be deleted as expected.

When the user would double-click the row to edit it, however, and press of the delete key would remove the row.  Even if they were inside a textbox attempting to delete characters, pressing the delete key would remove the row.

I remedied the situation by disabling double-click editing but would really like to know why pressing the delete key while in double-click edit mode would remove the row, especially if the user was actively editing a textbox.

Thank you.
Marin
Telerik team
 answered on 13 Sep 2013
3 answers
520 views
Hi,

I have a RadNotification which uses a ContentTemplate. The title icon and title text sometimes defaults to the normal info "i" icon and nothing for the title text. These properties are set on the server on the Master page to be a custom image and text. The content in the template area always appears correctly but title icon and text sometimes don't work and it appears to be happening at random.

Thanks,
Dariaus
Slav
Telerik team
 answered on 13 Sep 2013
1 answer
95 views
Hi,
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2013
6 answers
223 views
I have installed the latest trial package on VS 2012.
I am trying to upgrade a project from a Telerik 2012 version made on VS 2010 but I get this error at the end of the wizard:

The wizard encountered an error while trying to handle user event.

System.ArgumentException: Formato del percorso non valido.
   in System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   in System.IO.Path.GetDirectoryName(String path)
   in Telerik.VSX.Controls.BackupFolderSelector.GetInitialFolder(WizardContext context)
   in Telerik.VSX.Controls.BackupFolderSelector.InitModel(IPropertyDataDictionary allPropertyValues, WizardContext context)
   in Telerik.VSX.WizardEngine.Controls.WizardControlBase.Init(IPropertyDataDictionary allPropertyValues, WizardContext context)
   in Telerik.VSX.Controls.EnableStateWizardControl`2.Init(IPropertyDataDictionary allPropertyValues, WizardContext context)
   in Telerik.VSX.WizardEngine.Controls.WizardControlBase.Telerik.WizardFramework.ScenarioDriven.IWizardControl.Init(IPropertyDataDictionary allPropertyValues, IWizardContext context)
   in Telerik.VSX.WizardFramework.Pages.DynamicPageController.InitControls()
   in Telerik.VSX.WizardFramework.Pages.DynamicPageController.Init(IWizardPageDef pageDefinition, IWizardContext wizardControlContext, IPropertyDataDictionary allGatheredData)
   in Telerik.WizardFramework.ScenarioDriven.ScenarioWizard.OnBeforeShow(Boolean movingNext)
   in Telerik.WizardFramework.Wizard.PostMove(Boolean movingNext)
   in Telerik.WizardFramework.Wizard.OnMoveNext()
   in Telerik.WizardFramework.Wizard.UI_Next(Object sender, EventArgs e)
   in Telerik.WizardEngine.Helpers.EventHelper.<>c__DisplayClass1.<RaiseEvent>b__0()
   in Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)

What am I supposed to do?
I can I solve such problem?
Thanks
Felice
Felice
Top achievements
Rank 1
 answered on 13 Sep 2013
1 answer
152 views
In my page,there are 2 web user controls,and I used the RadAjaxManager as well.
Every controls had been bind with RequiredFieldValidator.
The validation works when I clicke the submit button for the first time.
I mean,after I chosen a item from a combobox ,autopostback enabled,the validation would not work any more.
I think ,there must be something wrong with  RadAjaxManager.
coz it works fine without RadAjaxManager.but I must use it in the page.
Thanks in advance.
Nencho
Telerik team
 answered on 13 Sep 2013
6 answers
243 views
Hi Team,
I have an editable radgrid and I want to export it to excel.

This is my aspx:
 

<telerik:RadAjaxPanel ID="rjxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">

        <asp:UpdatePanel ID="updtPanel" runat="server">

<ContentTemplate>

<telerik:RadButton ID="btnExport" runat="server" OnClick="btnExport_Click" Text="Export" />


<telerik:RadGrid ID="rgCostAllocation" runat="server"  OnNeedDataSource="rgCostAllocation_NeedDataSource"

                                OnItemDataBound="rgCostAllocation_ItemDataBound" OnDeleteCommand="rgCostAllocation_DeleteCommand"

                                ShowFooter="true">

                                <ExportSettings Excel-Format="ExcelML" ExportOnlyData="true" IgnorePaging="true" HideStructureColumns="true"></ExportSettings>

                                <MasterTableView CommandItemDisplay="Top">

                                    <CommandItemSettings ExportToExcelText="Export" ShowExportToExcelButton="true" />

                                    <Columns>

<telerik:GridBoundColumn DataField="CostAllocationId" HeaderText="CostAllocationId"

                                            UniqueName="CostAllocationId" Display="false">

                                        </telerik:GridBoundColumn>

                                        <telerik:GridTemplateColumn DataField="AllocationLevel" HeaderText="Level" UniqueName="AllocationLevel"

                                            AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" Display="false">

                                            <ItemTemplate>

                                                <telerik:RadNumericTextBox ID="txtLevel" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.AllocationLevel") %>'

                                                    NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="0" />

                                            </ItemTemplate>

                                            <FooterTemplate>

                                                <telerik:RadNumericTextBox ID="txtFLevel" runat="server" NumberFormat-AllowRounding="false"

                                                    NumberFormat-DecimalDigits="0" />

                                            </FooterTemplate>

                                        </telerik:GridTemplateColumn>

                                        <telerik:GridTemplateColumn DataField="SenderDescription" HeaderText="Sender" UniqueName="SenderCostCenterId" AllowFiltering="true"

                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">

                                            <ItemTemplate>

                                                 <telerik:RadComboBox ID="rcbSender" runat="server"

                                                              MarkFirstMatch="True" AutoPostBack="true"

                                                              Width="170px" OnItemsRequested ="rcbSender_ItemsRequested"

                                                              height="200px" EnableLoadOnDemand="True" 

                                                              ItemRequestTimeout ="500"   DropDownWidth="280px"

                                                              DataTextField="CostCentreDescription"

                                                              DataValueField="CostCentreID"  ExpandEffect="pixelate">

                                                      <headertemplate>

                                                        <table width="92%">

                                                            <tr>                                                                

                                                                <td style="font-weight:bold; width:50%;">&nbsp; Cost Centre Description</td>

                                                                <td style="font-weight:bold; width:50%;">Cost Centre Code</td>

                                                               

                                                          </tr>

                                                        </table>                                

                                                      </headertemplate>

                                                      <itemtemplate>

                                                        <table width="100%">

                                                            <tr>

                                                                <td style="width: 50%; font-size: 8pt; font-family: Arial;" align="left">

                                                                    &nbsp;

                                                                    <%# DataBinder.Eval(Container, "Attributes['DataValue']") %>

                                                                </td>

                                                                <td align="left" style="font-size: 8pt; width: 50%; font-family: Arial;">

                                                                    <%# DataBinder.Eval(Container, "Attributes['DataText']")%>

                                                                </td>

                                                            </tr>

                                                        </table>

                                                    </itemtemplate>

                                            </telerik:RadComboBox>

                                            </ItemTemplate>

                                            <FooterTemplate>

                                              

                                             <telerik:RadComboBox ID="rcbFSender" runat="server"

                                                              MarkFirstMatch="True" AutoPostBack="true"

                                                              Width="170px" OnItemsRequested ="rcbFSender_ItemsRequested"

                                                              height="200px" EnableLoadOnDemand="True"  ItemRequestTimeout ="500"

                                                              DataTextField="CostCentreDescription"

                                                              DataValueField="CostCentreID"

                                                              DropDownWidth="280px"

                                                              ExpandEffect="pixelate" >

                                                      <headertemplate>

                                                        <table width="92%">

                                                            <tr>                                                               

                                                                <td style="font-weight:bold; width:50%;">&nbsp; Cost Centre Description</td>

                                                                <td style="font-weight:bold; width:50%;">Cost Centre Code</td>

                                                               

                                                          </tr>

                                                        </table>                               

                                                      </headertemplate>

                                                      <itemtemplate>

                                                        <table width="100%">

                                                             <tr>

                                                                <td style="width: 50%; font-size: 8pt; font-family: Arial;" align="left">

                                                                    &nbsp;

                                                                    <%# DataBinder.Eval(Container, "Attributes['DataValue']") %>

                                                                </td>

                                                                <td align="left" style="font-size: 8pt; width: 50%; font-family: Arial;">

                                                                    <%# DataBinder.Eval(Container, "Attributes['DataText']")%>

                                                                </td>

                                                            </tr>

                                                            </tr>

                                                        </table>

                                                    </itemtemplate>

                                            </telerik:RadComboBox>

                                           

                                            </FooterTemplate>

                                        </telerik:GridTemplateColumn>

<telerik:GridTemplateColumn DataField="AllocationPercentage" HeaderText="Percentage"

                                            UniqueName="AllocationPercentage" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">

                                            <ItemTemplate>

                                                <telerik:RadNumericTextBox Width="60px" ID="txtPercentage" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.AllocationPercentage") %>'

                                                    Type="Percent" />

                                            </ItemTemplate>

                                            <FooterTemplate>

                                                <asp:Label ID="lblSumPercentage" runat="server" />

                                             

                                                <telerik:RadNumericTextBox Width="60px" ID="txtFPercentage" runat="server" Type="Percent" />

                                                <telerik:RadButton ID="btnAddNew" runat="server" OnClick="btnAddNew_Click" Text="Add New" />

                                            </FooterTemplate>

                                            <ItemStyle Width="15%" />

                                        </telerik:GridTemplateColumn>

                                        <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteCommandColumn"

                                            HeaderText="Delete" ConfirmText="Are you sure you want to delete?" Text="Delete">

                                            <ItemStyle HorizontalAlign="Center" Width="3%" />

                                            <HeaderStyle HorizontalAlign="Center" Width="3%" />

                                        </telerik:GridButtonColumn>

                                    </Columns>

                                </MasterTableView>

                            </telerik:RadGrid>

     

</ContentTemplate>

        </asp:UpdatePanel>

</telerik:RadAjaxPanel>


 This is my .cs

protected void btnExport_Click(object sender, EventArgs e)

{

            try

            {

                rgCostAllocation.MasterTableView.ExportToExcel();

            }

            catch (Exception ex)

            {

                XITingExceptionProcessor.ProcessException(this, ex);

            }

}


I have a master page with RadAjaxManager.
When I try to export to excel, it doesn't work because of RadAjaxPanel.
So when I try to export by commenting the RadAjaxPanel, it exports to excel but with no data, a totally blank sheet.

Could you please help me with this?

Thanks,
Lok..
Lokesh
Top achievements
Rank 1
 answered on 13 Sep 2013
1 answer
122 views
 Hi,
I would like to set the datasource of RadTimepIcker.TimeView using javascript.


var MRTimePicker= $find("<%= MRTimePicker.ClientID %>");
MRTimePicker.TimeView.DataList.DataSource = null;  //set avalilable time using javascript

Is it possible?

Thanks,
Prava
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2013
1 answer
111 views

I have the following markup on my aspx page:

<
telerik:RadAjaxManagerProxy runat="server" ID="MyAjaxManagerProxy">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="MyRadGrid1">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="MyRadGrid1" LoadingPanelID="AjaxLoadingPanel1" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
   </telerik:RadAjaxManagerProxy>
   <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Transparency="20">
       <telerik:RadCodeBlock ID="VpLaborHourlyRadCodeBlock1" runat="server">
           <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
               style="border: 0;" />
       </telerik:RadCodeBlock>
   </telerik:RadAjaxLoadingPanel>

My radgrid declaration immediately follows.

I have a delete button in each row of my radgrid. The delete event handler is implemented in ItemCommand as so:

protected void MyRadGrid_ItemCommand(object sender, GridCommandEventArgs e)
   {
     if (e.CommandName == RadGrid.InitInsertCommandName)
     {
      // Save the row into database.
     }
     else if (e.CommandName == RadGrid.DeleteCommandName)
     {
      // Delete the row from the database.
     }
   }
The delete function works fine, that is, the row does get deleted from the database.  There is only one problem as described below.

The first time I delete a row, ajax works perfectly, no full postback, the grid stays where it is and get rebound nicely after delete completes.

The second time I delete a row, it still successfully deletes the row from the database, but it does a full postback, and the entire page reloads, totally without the nice ajax feature.

What's wrong? Any hint please?









Princy
Top achievements
Rank 2
 answered on 13 Sep 2013
1 answer
236 views
I have a multiple selection checkbox combobox, i've seen threads that say i should be using selectedIndexChanged but also threads that say i should be using TextChanged. Essentially both events are doing the same thing for me, is there one that i should/should not be using? 
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2013
5 answers
741 views
I have a master page where I integrated 6 telerik:RadMenu inside a <table></table> tag. and I would like to align these menus to the right. I try to add the align="right" property to the table. when I execute the page with 1024*768 resolution it works but if i changed the resolution, it does not work.

here is my code :
<table cellspacing="0" cellpadding="0" width="95%" style="text-align:right" border="1"> 
                                            <tr> 
                                                <td style="width:auto"></td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuRootTop" runat="server" DataSourceID="sitemapWto" Skin="WtoRootTop" 
                                                        EnableEmbeddedSkins="false" /> 
                                                    <asp:SiteMapDataSource ID="sitemapWto" runat="server" SiteMapProvider="wtoTopMenu" /> 
                                                </td> 
                                                <td> 
                                                    <img alt="" src="../Images/separator.gif" /> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuNewsTop" runat="server" DataSourceID="sitemapNews" Skin="WtoNewsTop" 
                                                        EnableEmbeddedSkins="false" EnableAutoScroll="true" /> 
                                                    <asp:SiteMapDataSource ID="sitemapNews" runat="server" SiteMapProvider="newsTopMenu" /> 
                                                </td> 
                                                <td> 
                                                    <img alt="" src="../Images/separator.gif" /> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuTradeTop" runat="server" DataSourceID="sitemapTrade" Skin="WtoTradeTop" 
                                                        EnableEmbeddedSkins="false" /> 
                                                    <asp:SiteMapDataSource ID="sitemapTrade" runat="server" SiteMapProvider="tradeTopMenu" /> 
                                                </td> 
                                                <td> 
                                                    <img alt="" src="../Images/separator.gif" /> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuRessTop" runat="server" DataSourceID="sitemapRess" Skin="WtoRessTop" 
                                                        EnableEmbeddedSkins="false" /> 
                                                    <asp:SiteMapDataSource ID="sitemapRess" runat="server" SiteMapProvider="ressTopMenu" /> 
                                                </td> 
                                                <td> 
                                                    <img alt="" src="../Images/separator.gif" /> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuDocsTop" runat="server" DataSourceID="sitemapDocs" Skin="WtoDocsTop" 
                                                        EnableEmbeddedSkins="false" /> 
                                                    <asp:SiteMapDataSource ID="sitemapDocs" runat="server" SiteMapProvider="docsTopMenu" /> 
                                                </td> 
                                                <td> 
                                                    <img alt="" src="../Images/separator.gif" /> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadMenu ID="mnuForumsTop" runat="server" DataSourceID="sitemapForum" Skin="WtoForumsTop" 
                                                        EnableEmbeddedSkins="false" /> 
                                                    <asp:SiteMapDataSource ID="sitemapForum" runat="server" SiteMapProvider="forumTopMenu" /> 
                                                </td>                                                
                                            </tr> 
                                        </table> 

And Thnks
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?