Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
132 views
Hello,

We've been having an issue where users are seeing the upload button within the Upload Dialog of the Image Manager Dialog appears as text with a dashed border around it. I do not know if the button is disabled or not or even if it is functional as a button.

However it is appearing as not a button.

Any ideas on why this may be happening?

Thanks,
Cameron

PS. We are using the 2011.3.1305.40 version of the controls.
Cameron
Top achievements
Rank 1
 answered on 13 Mar 2012
3 answers
355 views
I am able to use this method in asp.net grids but am switching over  to radgrids in new projects.  What happens is that when I click on it it should just open the email, but with the radgird it also wants to try to navigate to the email to as well.  How can I just use it as a way to open the ema
<telerik:RadGrid ID="myRadGrid" runat="server" Width="95%" BorderWidth="1px" CellPadding="6" GridLines="None" BorderColor="#404040" Skin="Web20" ShowFooter="true">
                                <MasterTableView AutoGenerateColumns="false" DataKeyNames="intIssuedID" HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" Name="MasterGrid" 
                                BorderColor="#404040" Font-Size="10" Font-Names="Veranda,arial,sans-serif" HeaderStyle-HorizontalAlign="Center" GridLines="Both" BorderWidth="1px"><ItemStyle HorizontalAlign="Center" />
                                    <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="strAssetNum" HeaderText="ASSET TAG #" />
                                            <telerik:GridBoundColumn DataField="Equip" HeaderText="EQUIPMENT" />
                                            <telerik:GridBoundColumn DataField="dt_Issued" HeaderText="DT_ISSUED" />
                                            <telerik:GridBoundColumn DataField="strLocation" HeaderText="LOCATION" />
                                            <telerik:GridTemplateColumn HeaderText="ISSUED TO">
                                                <ItemTemplate>
                                                     <asp:HyperLink NavigateUrl='<%# Bind("strEmail", "mailto:{0}") %>' Text='<%# Bind("IssuedTo") %>' runat="server" ID="hlEmail"></asp:HyperLink>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn DataField="ftQTY" HeaderText="QTY" />
                                        </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
il of your computer.
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 Mar 2012
3 answers
140 views

I have a RadGrid that I have over a million records on. Currently I use a select * to display everything in the grid, so people can click next, put in a search in the filter, etc.It otherwise works perfect for me.

Under heavy load, I was wondering if there is a more efficient way to use the RadGrid, so instead of doing a select * for all the records, I can select 20 records, but still have the filters on top and the search capacity to search all million records if someone does it at the top. 

Thanks!

Pavlina
Telerik team
 answered on 13 Mar 2012
2 answers
164 views
Hi,

I have a solution that adds tabs and page views dynamically, then based on postback criteria may potentially remove those tabs and add new ones.

The sequence is:
- First Render:
    - Build Tab with PageViewID set
    - Build PageView using known PageViewID
    - Add control to PageView
    - Add PageView to MultiPageView
- Postback (no changes of tab):
    - Find PageView and Add Control
(all working fine so far no matter how many postbacks)
- Postback (changes to tabs):
    - Find PageView
    - Find Tab
    - Remove Tab
    - Remove PageView
    - Perform sequence as per First Render except with different Tab and PageView

Then during this postback there is some code changing tab selection. This code sets  this.{Tab}.Selected = true;
An exception is thrown at this point from the Telerik libraries. 

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Web.UI
  StackTrace:
       at Telerik.Web.UI.ControlItem.get_Index()
       at Telerik.Web.UI.RadTab.set_Selected(Boolean value)

I have tried when adding +/ removing to change the SelectIndex of the RadTabStrip. I have tried selecting another (known to exist) tab. some general stuff like:

if

(tabStrip.Tabs.Count > 1)

{

    tabStrip.Tabs[0].Selected = true;

    tabStrip.Tabs[0].PageView.Selected = true;

}


Nothing I have tried is preventing this exception. I have not seen any demo or example of adding then removing + adding during page life cycles.

The other question I have is why do the RadTabStrip and MultiPageView recreate the dynamic tabs. This is not like normal ASP.NET controls which you must recreate every postback in the same order. Is there a way to prevent automatic recreation of tabs?

Thanks.

Dimitar Terziev
Telerik team
 answered on 13 Mar 2012
10 answers
386 views
I found an exmaple here How print Radgrid, but only print current page.
I need print whole RadGrid.
how I can you this?

thanks
Pavlina
Telerik team
 answered on 13 Mar 2012
2 answers
95 views
Hi,I am a beginner and i would like to create a slidershow by using a RedControl,can any body help me please !
Berrabah
Top achievements
Rank 1
 answered on 13 Mar 2012
0 answers
105 views
xx
xx
Shinu
Top achievements
Rank 1
 asked on 13 Mar 2012
1 answer
92 views
Hi,

I am using Telerik Rad Controls Chart for ASP.Net Ajax. 
Does Telerik Chart Control support more than two Y scales?


Best regards,
Rok Pahulje 
Richard
Top achievements
Rank 1
 answered on 13 Mar 2012
1 answer
57 views
Hi,

  i am using  RadAjaxManager for showing the image whenever the server is responding, it was working fine. When i am using the code for printing the page using javascript. To print the page, the page has to go to server and get the details, when i am assign the radajaxManger it was not working.

my radajaxManager:

<telerik:AjaxSetting AjaxControlID="imgPrint">
                            <UpdatedControls>
                                                   <telerik:AjaxUpdatedControl ControlID="pnlBellMaintainanceServices" />                              
                            </UpdatedControls>
                        </telerik:AjaxSetting>
Maria Ilieva
Telerik team
 answered on 13 Mar 2012
3 answers
255 views

Hi,
I am using Visual Studio 2008 and Telerik Controls Version 2009.3.1103.20.

I am developing ASP.Net Website.

I have so many different WebPages and I want to implement AJAX on my page so that I can display rotating image during postback when system is processing something.

I tried code from Telerik Demo, tried using "telerik:RadAjaxPanel" and also tried to add ajaxsettings using "telerik:RadAjaxManager" but somehow I always ended up having javascript errors on some controls. So finally I thought to post my question here for help.

I am PASTING html for my sample UI. Can you please help me what is the best way to implement this on this page?

In the attached sample HTML, I removed all of my events and other source code and just putting my basic UI design with minimum fields.

My purpose is to know hot to implement AJAX on these pages.
Please provide me working setting for AJAX on these pages as I have already tried so many different options.

I HAVE SAMPLE PROJECT BUT DONT KNOW HOW TO UPLOAD IT HERE. SO I AM PASTING ONE OF MY PAGE CODE HERE. IF THERE IS ANY WAY TO UPLOAD .ZIP FILE WITH NEW THREAD, PLEASE DO LET ME KNOW AND I WILL UPLOAD MY SAMPLE PROJECT.

Can you help me with these items? -->
 1. is it possible to display loadingpanel image for whole page and its ok to refresh whole page if we can display loading image during postback
 2. in general, for grid, whenever any paging number is clicked, it should display loadingpanel for grid
 3. CompletedRequestsDetail.aspx
           --> When "btnUpdateGeneratedPONo" or "btnCompleteRequest" is clicked which is inside ItemTemplate, it should display loadingpanel for grid
           --> when "btnViewAllSelected" or "btnViewAllSelectedSupplierCopy" is clicked, it should display loadingpanel for whole page


Thanks in advance,
Nirav

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="CompletedRequestsDetail.aspx.cs" Inherits="CompletedRequestsDetail"
    Title="All Completed/Cancelled Requests" %>
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="ContentPlaceHolder2" ContentPlaceHolderID="ContentPlaceHolder1"
    runat="server">
  
    <script type="text/javascript" language="javascript">
    </script>
  
    <table>
        <tr>
            <td colspan="100%" valign="top">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr valign="top">
                        <td valign="top">
                               
                            <asp:ImageButton runat="server" ID="imgExportToExcel" ImageUrl="~/Images/Excel-19.png"
                                CausesValidation="false" OnClick="imgExportToExcel_Click" BorderWidth="0" ToolTip="Click here to export displayed list to Excel" />
                                
                            <asp:ImageButton runat="server" ID="imgExportToWord" ImageUrl="~/Images/Word-19.png"
                                CausesValidation="false" OnClick="imgExportToWord_Click" BorderWidth="0" ToolTip="Click here to export displayed list to Word" />
                                
                            <asp:Button CssClass="ButtonCSS" runat="server" ID="btnViewAllSelected" Text="View All Selected Requests as pdf"
                                ToolTip="Click here to view all selected requests as pdf" CausesValidation="false"
                                OnClick="btnViewAllSelected_Click" OnClientClick="javascript:Page_BlockSubmit = false;buttonClicked_WithObj(this);" />
                                      
                            <asp:Button CssClass="ButtonCSS" runat="server" ID="btnViewAllSelectedSupplierCopy"
                                Text="View All Selected Requests Supplier Copy" ToolTip="Click here to view all selected requests Supplier Copy"
                                CausesValidation="false" OnClick="btnViewAllSelectedSupplierCopy_Click" 
                                OnClientClick="javascript:Page_BlockSubmit = false;buttonClicked_WithObj(this);" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="100%">
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                <asp:Panel runat="server" ID="pnlPendingRequests" CssClass="panelStyle">
                    <table cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <%--<div class="Scrollgrid" style="WIDTH: 1100px; HEIGHT: 600px;">--%>
                                <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" AllowSorting="true"
                                    AllowFilteringByColumn="true" AutoGenerateColumns="False" GridLines="Both" OnNeedDataSource="RadGrid1_needdatasource"
                                    OnItemDataBound="RadGrid1_ItemDataBound" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
                                    AllowMultiRowSelection="true" OnItemCreated="RadGrid1_ItemCreated" OnItemCommand="RadGrid1_ItemCommand"
                                    SelectedItemStyle-CssClass="SelectedItem" Skin="Default">
                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" AlwaysVisible="true" />
                                    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                        <Selecting AllowRowSelect="true" />
                                    </ClientSettings>
                                    <MasterTableView ShowHeadersWhenNoRecords="true" AllowFilteringByColumn="true" DataKeyNames="RequestInfoID"
                                        Name="ApprovalsMaster">
                                        <DetailTables>
                                            <telerik:GridTableView DataKeyNames="RequestInfoID" Width="80%" Name="ApprovalsDetail"
                                                AllowPaging="false" runat="server" AllowSorting="false">
                                                <ParentTableRelation>
                                                    <telerik:GridRelationFields DetailKeyField="RequestInfoID" MasterKeyField="RequestInfoID" />
                                                </ParentTableRelation>
                                                <HeaderStyle CssClass="InnerHeaderStyle" />
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="ApproverEmailAddress" HeaderText="ApproverEmailAddress"
                                                        SortExpression="ApproverEmailAddress">
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                            </telerik:GridTableView>
                                        </DetailTables>
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderStyle-Width="10px" AllowFiltering="false" UniqueName="selectrow">
                                                <HeaderTemplate>
                                                    <input id="chkSelectAll" type="checkbox" onclick="return CheckAllCheckboxes(this,'chkSelectRow');" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" ID="chkSelectRow" />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridNumericColumn DataField="RequestInfoID" HeaderText="Request No." SortExpression="RequestInfoID"
                                                DataType="System.Int64" FilterControlWidth="40px">
                                            </telerik:GridNumericColumn>
                                            <telerik:GridTemplateColumn HeaderText="Total Amount" SortExpression="TotalAmount"
                                                DataType="System.Decimal" DataField="TotalAmount" HeaderStyle-HorizontalAlign="Right"
                                                ItemStyle-HorizontalAlign="Right">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="lblTotalAmount" Text='<%#  Eval("CurrencySymbol").ToString() + Eval("TotalAmount","{0:#,##0.00}").ToString() %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn HeaderText="Update Generated PO No./Invoice No." UniqueName="updategeneratedpono"
                                                AllowFiltering="false" SortExpression="generatedpono">
                                                <ItemTemplate>
                                                    <asp:TextBox Width="150px" runat="server" MaxLength="150" ValidationGroup="vgGeneratedPONo"
                                                        ID="txtGeneratedPONo" ToolTip="Enter Generated PO No."></asp:TextBox>
                                                    <asp:Button runat="server" ID="btnUpdateGeneratedPONo" Text="Update" CssClass="ButtonCSS"
                                                        ValidationGroup="vgGeneratedPONo" ToolTip="Click here to update information for Generated PO No./Invoice No."
                                                        OnClick="btnUpdateGeneratedPONo_Click" OnClientClick="javascript:return confirm('Are you sure you want to update this Generated PO No./Invoice No.? ');"
                                                        CommandArgument='<%# Eval ( "RequestInfoID").ToString() %>' />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn HeaderText="Complete Request" UniqueName="completerequest"
                                                SortExpression="CompletedStatus" DataField="CompletedStatus">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblCompletedStatus" runat="server" Text='<%# Eval ( "CompletedStatus").ToString()%>'></asp:Label>
                                                    <asp:Button runat="server" ID="btnCompleteRequest" Text="Complete" CssClass="ButtonCSS"
                                                        ToolTip="Click here to complete Request" CausesValidation="False" OnClick="btnCompleteRequest_Click"
                                                        OnClientClick="javascript:var agree= confirm('Are you sure you want to complete this Request? '); if(agree){ Page_BlockSubmit = false;buttonClicked_WithObj(this); return true; };else {return false;};"
                                                        CommandArgument='<%# Eval ( "RequestInfoID").ToString() %>' />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                        <EditFormSettings>
                                            <PopUpSettings ScrollBars="None" />
                                        </EditFormSettings>
                                        <ExpandCollapseColumn Resizable="False" Visible="False">
                                            <HeaderStyle />
                                        </ExpandCollapseColumn>
                                        <RowIndicatorColumn Visible="False">
                                            <HeaderStyle />
                                        </RowIndicatorColumn>
                                    </MasterTableView>
                                </telerik:RadGrid>
                                <br />
                                <%--</div>--%>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td>
                                <hr class="hrClass" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <div class="WaitDisplay" id="divWait" style="display: none; width: auto;">
        <img alt="" src="Images/spinner2.gif" />
        <div id="divWaitMessage">
            Processing...
        </div>
    </div>
</asp:Content>


Maria Ilieva
Telerik team
 answered on 13 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?