Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
198 views
Hi.
Is something very curious with the RadDatePicker performance in Chrome (I have the latest version: 26.0.1410.64 m)
My code is very simple:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadDatePicker ID="RadDatePicker1" runat="server">
</telerik:RadDatePicker>
<telerik:RadButton ID="RadButton1" runat="server" Text="RadButton">
</telerik:RadButton>

If you use the RadDatePicker calendar before any button click, you can use the navigation arrows quickly, but if you use the RadDatePicker after some button clicks, the arrow navigation performance starts to decrease and the calendar freezes. This issue is not present in Internet Explorer or Firefox.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
    </telerik:RadDatePicker>
    <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton">
    </telerik:RadButton>
</telerik:RadAjaxPanel>

On the other hand, if you add a RadAjaxPanel the RadDatePicker performance is okay even after a few postbacks if you click the button in Chrome.

Best regards.
Juan
Top achievements
Rank 2
 answered on 21 May 2013
1 answer
129 views
I also have a double postback issue but I think it will be resolved once this issue is resolved. I have this radgrid that appears to be getting data but it is not displaying. After binding the grid, the grid.Items.Count is set to the number of rows expected. I'll include the ajax manager settings and grid. Thanks!

<telerik:radajaxmanager id="RadAjaxManager1" runat="server">
         <clientevents onrequeststart="onRequestStart" />
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1">
                </telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadBtnRetrieve">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" loadingpanelid="RadAjaxLoadingPanel1">
                </telerik:AjaxUpdatedControl>
                <telerik:ajaxupdatedcontrol controlid="RadAjaxPanel1" loadingpanelid="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadGridPartsWashers">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridPartsWashers" loadingpanelid="RadAjaxLoadingPanel1">
                </telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:radajaxmanager>
<telerik:radajaxpanel ID="RadAjaxPanel1" runat="server" loadingpanelid="RadAjaxLoadingPanel1" enableajax="true">
        <table>
            <tr>
                <td>
                    <telerik:RadGrid ID="RadGridPartsWashers" runat="server" Width="100%" AllowPaging="True"
                        CellSpacing="0" GridLines="None" AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="RadGrid.rgMasterTable" onneeddatasource="RadGridPartsWashers_NeedDataSource">
                        <ClientSettings>
                            <Selecting AllowRowSelect="True"></Selecting>
                            <Scrolling AllowScroll="True" ScrollHeight="" UseStaticHeaders="True"></Scrolling>
                            <Resizing AllowColumnResize="true" />
                        </ClientSettings>
                        <MasterTableView EnableHeaderContextMenu="true" EnableNoRecordsTemplate="true" DataKeyNames="AssetNumber"
                            EnableSplitHeaderText="true" TableLayout="Auto" Width="100%">
                            <PagerStyle AlwaysVisible="true" />
                            <NoRecordsTemplate>
                                <div>
                                    There are no records to display
                                </div>
                            </NoRecordsTemplate>
                            <Columns>
                              .....
                             </Columns>

Will Lopez
Top achievements
Rank 1
 answered on 21 May 2013
1 answer
121 views
Good Morning, I have a RadGrid that inserts and updates records through a usercontrol in development pc, it works perfectly, but in the usercontrol Server does not appear when you click on "GridEditCommandColumn" or the Add Record button RadGrid.
I've also noticed that deleting a record in the server before asking me for confirmation through the RadWindows, while the development PC only delete it once results confirmed the deletion.
The development pc has Windows 7 with IIS 6.1.
The server has Windows Server 2003 R2 Standard Edition SP2
The application works with FW4 and other RadControls work well.
Pavlina
Telerik team
 answered on 21 May 2013
3 answers
386 views

 have a Rad Calender. I have to apply some code logic with database and If my code logic gives me FALSE for a particular selected date of Rad Calender than I have to show that Date in RED color of that Rad Calender. In other words I have to set RED color for different dates of Rad Calender through Server Side.

For a brief view I am attaching some Screen shots that will elaborate my Scenrio

1- http://screencast.com/t/LJUhqaLM
2- http://screencast.com/t/BOPDNNMJuh

Any Help ?

Regards: Kamran

Angel Petrov
Telerik team
 answered on 21 May 2013
1 answer
192 views
Hi I am relatively new to Ajax so bear with me.  I have an RadAjaxPanel on my page.  inside the radajaxpanel i have two dropdown list, calender and a button.  The button is not firing.  However, when i move the radbutton outside of the radajaxpanel it works just fine.  Please help........... how do i get the radbutton inside the radajaxpanel to work.  Code is below..... btnViewReport is the one not working

                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="188px" 
                    style="margin-top: 0px" width="568px">
                    <telerik:RadComboBox ID="cbxRecipe" Runat="server" DataSourceID="dsRecipe" 
                   Height="600px" Width="250px" EnableLoadOnDemand="true"
                            DropDownWidth="249px" 
    EmptyMessage="Select a Recipe" HighlightTemplatedItems="true"
                 EnableAutomaticLoadOnDemand="True" 
                    DataTextField="RecipeCode" DataValueField="RecipeCode" 
                    AutoPostBack="True"  >
                        <HeaderTemplate>
                            <table style="width: 249px" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="width: 40px;">
                                        Recipe</td>
                                    <td style="width: 149px;">
                                        Description</td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table style="width: 249px" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="width: 40px;">
                                        <%# DataBinder.Eval(Container.DataItem, "RecipeCode")%>
                                    </td>
                                    <td style="width: 149px;">
                                        <%# DataBinder.Eval(Container.DataItem, "Recipe")%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:RadComboBox>
                    <asp:SqlDataSource ID="dsRecipe" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:oCon_Riverside %>" SelectCommand="select RecipeCode, Recipe
from [dbo].[CCFIProduction_recipe]
Order by RecipeCode "></asp:SqlDataSource>
                    <br />
                    <br />
                    <telerik:RadComboBox ID="RadComboBox1" Runat="server" AutoPostBack="True" 
                        DataSourceID="dsGetUBI" DataTextField="UBI" DataValueField="UBI" 
                        DropDownWidth="298px" EmptyMessage="Select a UBI" Enabled="False" 
                        Height="600px" HighlightTemplatedItems="True" ShowDropDownOnTextboxClick="True" 
                        Width="300px">
                        <HeaderTemplate>
                            <table cellpadding="0" cellspacing="0" style="width: 298px">
                                <tr>
                                    <td style="width: 40px;">
                                        Recipe</td>
                                    <td style="width: 60px;">
                                        PackingDate</td>
                                    <td style="width: 80px;">
                                        MakingBatch</td>
                                    <td style="width: 60px;">
                                        UBI</td>
                                    <td style="width: 20px;">
                                        Shift</td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" style="width: 298px">
                                <tr>
                                    <td style="width: 40px;">
                                        <%# DataBinder.Eval(Container.DataItem, "RecipeCode")%>
                                    </td>
                                    <td style="width: 60px;">
                                        <%# DataBinder.Eval(Container.DataItem, "PackingDate")%>
                                    </td>
                                    <td style="width: 80px;">
                                        <%# DataBinder.Eval(Container.DataItem, "MakingBatch")%>
                                    </td>
                                    <td style="width: 60px;">
                                        <%# DataBinder.Eval(Container.DataItem, "UBI")%>
                                    </td>
                                    <td style="width: 20px;">
                                        <%# DataBinder.Eval(Container.DataItem, "Shift")%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:RadComboBox>
                    <asp:SqlDataSource ID="dsGetUBI" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:oCon_Riverside %>" 
                        
                        SelectCommand="SELECT recipe.RecipeCode, Packing.MakingBatch, CONVERT(varchar(20), Packing.PackingDate, 101) as PackingDate, Packing.SellByLetter, Packing.UBI, Packing.Shift FROM recipe INNER JOIN Packing ON recipe.RecipeCode = Packing.RecipeCode WHERE (Packing.PackingDate &gt; dateadd(yyyy,-1,GETDATE())) AND (recipe.RecipeCode = @recipeCode) AND (NOT (Packing.UBI IS NULL)) ORDER BY recipe.RecipeCode, Packing.PackingDate DESC, Packing.SellByLetter">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="cbxRecipe" Name="recipeCode" 
                                PropertyName="SelectedValue" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:Label ID="Label1" runat="server" Font-Size="Small" 
                        Text="*Last 12 months shown"></asp:Label>
                    <br />
                    <br />
                    <asp:Label ID="LblMkDate" runat="server" Text="Select Make Date:"></asp:Label>
                    <telerik:RadDatePicker ID="RadDatePicker1" Runat="server" AutoPostBack="True" 
                        Culture="en-US">
                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
                        </Calendar>
                        <DateInput AutoPostBack="True" DateFormat="M/d/yyyy" 
                            DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                        </DateInput>
                        <DatePopupButton HoverImageUrl="" ImageUrl="" />
                    </telerik:RadDatePicker>
                    <br />
                    <br />
                    <telerik:RadButton ID="btnViewReport" runat="server" Text="View Report" AutoPostBack="True">
                    </telerik:RadButton>
                </telerik:RadAjaxPanel>


thanks
Pavlina
Telerik team
 answered on 21 May 2013
6 answers
493 views
Hello everyone,

On button click, confirm box gets open, but it does not trigger the "btnDelete_Click" event on clicking of OK button.
Below is the code:

<asp:Button ID="btnDelete" runat="server" Text="Delete" OnClientClick="return radconfirm('Delete Item?');"         OnClick="btnDelete_Click"  />


Please suggest me, where I am getting mistacke.


I have also tried  OnClientClick="return radconfirm('Delete Item?', event);"
but i am getting following error:
                    Object doesn't support this property or method
Elias
Top achievements
Rank 2
 answered on 21 May 2013
1 answer
59 views
I am using an editor and an image manager. I have written a custom file provider for this. It pulls the images, but my upload button is blocked out in the image manager. I have gone through the forums and haven't been able to find anything that will help me with this issue.
Vessy
Telerik team
 answered on 21 May 2013
2 answers
112 views
I have a grid, and in IE and FF it displays correctly.  However, in Chrome the last column is expanded way way off the page.  I tried using the css trick to shrink the filter box [thinking that was the issue] in http://www.telerik.com/community/forums/aspnet-ajax/grid/filtercontrolwidth-default-100.aspx, but that didn't work either [in turn, it EXPANDED the rest of the filter boxes - to be expected].

I do have HeaderStyle-Width properties set, but it still displays funny in Chrome.

Grid code:
<telerik:RadGrid runat="server" ID="radListDocuments" AllowPaging="True" AllowSorting="True" ShowHeader="True" AutoGenerateColumns="False" GridLines="None" CssClass="table_data" Width="100%"
                OnNeedDataSource="radListDocuments_NeedDataSource">
                <MasterTableView CommandItemDisplay="None" AutoGenerateColumns="False" DataKeyNames="document_id" AllowSorting="True" AllowMultiColumnSorting="False"
                    AllowFilteringByColumn="True" NoMasterRecordsText="No document records" PageSize="20">
                    <Columns>
                        <telerik:GridTemplateColumn AllowFiltering="False" HeaderStyle-Width="1%">
                            <ItemTemplate>
                                <a href='ViewDocument.aspx?id=<%# Eval("document_id") %>&type=division' target="_blank">
                                    <img src="~/images/icons/magnifier.png" alt="View" style="border: 0" /></a>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn AllowFiltering="False" HeaderStyle-Width="1%">
                            <ItemTemplate>
                                <a href="javascript:OpenModalWindow('EditDocument.aspx?documentid=<%# Eval("document_id") %>',450,200)">
                                    <img src="~/images/icons/page_edit.png" alt="Edit Attachment" style="border: 0" /></a>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn AllowFiltering="False" HeaderStyle-Width="1%">
                            <ItemTemplate>
                                <img src='~/images/icons/<%# FileHelper.DisplayDocumentIcon( Eval("filetype").ToString() ) %>' />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="filename" HeaderStyle-Width="30%" HeaderText="Document Name" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="True"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn DataField="type_desc" HeaderText="Doc Type" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="15%" HeaderStyle-Font-Bold="True"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn DataField="division_description" HeaderText="Division" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="15%" HeaderStyle-Font-Bold="True"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn DataField="create_by" HeaderText="Created By" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="15%" HeaderStyle-Font-Bold="True"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridDateTimeColumn DataField="create_date" HeaderText="Create Date" ItemStyle-HorizontalAlign="Center" PickerType="DatePicker"
                            DataFormatString="{0:MMM dd, yyyy}" HeaderStyle-Width="15%" HeaderStyle-Font-Bold="True" AutoPostBackOnFilter="True" ItemStyle-Width="15%">
                        </telerik:GridDateTimeColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

and I've attached a screenshot of the display issue.

Telerik version: 2013.1.417.40
Chrome: 26.0.1410.64 m

How can I fix it?
Mike
Top achievements
Rank 1
 answered on 21 May 2013
1 answer
94 views
var grid = $find('<%=rgdBieu1.ClientID %>'); 
      var MasterTableView = grid.get_masterTableView();
       var maNV = MasterTableView.get_dataItems()[args.get_commandArgument()].getDataKeyValue("MA_DV");
Hello everybody,
I have a problem. I use get_masterTableView(), it work in firefox and google chorme but can't work in internet explorer. In IE, function get_masterTableView() return null.
Have any ideas ?
Thanks you very much!
Viktor Tachev
Telerik team
 answered on 21 May 2013
1 answer
150 views
When trying to process the uploaded files for the RadAsyncUploader control I am getting an error "The device is not ready".

Does anyone have any ideas as to what may be causing this?

For Each file As Telerik.Web.UI.UploadedFile In Me.Uploader.UploadedFiles
 
                Dim targetFile = String.Format("{0}\{1}", targetFolder, file.GetName)
                file.SaveAs(targetFile)
 
            Next

I am using the latest version of the AsyncUploader control.
targetFile is a validly formed filename and the user has write access to the target folder.
Hristo Valyavicharski
Telerik team
 answered on 21 May 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?