Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
196 views
Hi,
i am using GridClientSelectColumn for header checkbox to check all records at one click but when i chek that checkbox it gets checked ,but after refresh all records wiil be unchecked
Below is my code for reference
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True" AllowPaging="True"
         PageSize="5" AllowSorting="True"
         OnNeedDataSource="RadGrid1_NeedDataSource" CellSpacing="0"
         GridLines="None" ShowGroupPanel="True" Skin="Default"
         onitemcommand="RadGrid1_ItemCommand" onprerender="RadGrid1_PreRender">
         <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
         <ClientSettings Selecting-AllowRowSelect="true" AllowDragToGroup="True" EnablePostBackOnRowClick="true" >
             <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting>
 
 
         </ClientSettings>
         <MasterTableView DataKeyNames="UserId">
             <Columns>
              
                 <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
             </Columns>
             <PagerStyle AlwaysVisible="True"></PagerStyle>
         </MasterTableView>
     </telerik:RadGrid>

Thanks.
Angel Petrov
Telerik team
 answered on 22 Aug 2013
3 answers
152 views
Hi,

I would like to bind Radscheduler with a web service, will I loose any functionality on doing so?
Currently I am using following following functionality:

1. Drag and drop to reschedule appointments
2. Timer to refresh scheduler 
3. Button to refresh scheduler
4. Double click an appointment to edit it
5. Right click an appointment to open context menu
6.Drag and drop from grid to scheduler to create an appointment
7. Colour appointment by appointment type/other properties
8. Recurring appointments
9. Delete an appointment


Thanks,
Prava
Plamen
Telerik team
 answered on 22 Aug 2013
0 answers
64 views
hello
when I run my web application on Internet Explorer the Radwindow appears with Scroll as shown in image below
and in Mozilla there is no scroll

I don't want scroll for Radwindow
how to resolve this problem
Kishor
Top achievements
Rank 2
 asked on 22 Aug 2013
3 answers
102 views
hello

 I have used Radchart (Bar) with 2 series.
 I want to hide series at run time
 I can hide the series but the name of series remains as it is  at right side( Cost_Of_Job)
how can I hide it

also
I want to rotate legends to 45 degree as shown if image
how to do it

waiting for reply
Ves
Telerik team
 answered on 22 Aug 2013
1 answer
167 views
Hi Telerik ,

Would like to hide timepicker control by defaullt. As per my filter criteria on other controls, I shd be able to show/hide the radTimepicker again. Can this be achieved by using javascript/Jquery? Or any direct prop for the control itself?

Regards,
San
Shinu
Top achievements
Rank 2
 answered on 22 Aug 2013
14 answers
217 views
Hello,
I am using RadUpload (ASP.NET AJAX) control along with progress bar in my ASP.NET application which is working fine with IE 8 and IE 9. But with the Release previow of Windows 8, a number of our customers have started using Windows 8 which has release preview version of IE 10 and it seems that with IE 10 on Windows 8, the progress bar won't go away and eventually ends up in a time out.

Has anybody else experienced this issue and is there a workaround for this? Attached is an image of the borgress bar which won't go away.

Any help in this regard would be appreciated.

Thanks,

Zafar
Peter Filipov
Telerik team
 answered on 22 Aug 2013
1 answer
227 views
Hi Follows, First Sorry about my english.

I am with the following problem.

I Have a "Radgridview" configured with options for export to excel, pagination, pagesized and sorting and it are inside a "RadAjaxPanel" basically.

follows the structure:
<telerik:RadAjaxPanel ...
<telerik:RadGrid OnItemCommand="GridView_RowCommand" OnPageIndexChanged="GridView_Pagination"
                OnPageSizeChanged="GridView_PageSize"
...

the function "export to excel" needs of real postback to do the exportation, for this I've been used the "RegisterPostBackControl" forcing the button of the exportation to do the postback.

Follows the code:

ScriptManager.GetCurrent(Page).RegisterPostBackControl(exportButton);

I Don't use DataSource plugged on RadGrid, in all interaction like pagination or change page size or sorting, I use method on the code-behind to do the search again and I force the RegisterPostBackControl again.


Basically the methods apply the instructions and do the new search. OBS: Pagination, pagesized, Sorting are Ok.

The Problem:

When I changed the page or sorting or pagesized, and after any this actions I try to export to excel, the all grid rebind but without pagination control, pagesized control and the sorting and the export dont work.



 protected virtual void GridView_RowCommand(object sender, GridCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case SharedHardCode.CommandName.View:
                    this.ViewObject(sender, e);
                    break;
                case SharedHardCode.CommandName.Active:
                    this.ActiveObject(sender, e);
                    break;
                case RadGrid.ExportToExcelCommandName:
                    this.ExportToExcel(((RadGrid)sender));
                    break;
                case SharedHardCode.CommandName.ExportToPdf:
                    this.ExportToPdf(((RadGrid)sender));
                    break;
            }
        }


   protected void GridView_Pagination(object sender, GridPageChangedEventArgs e)
        {
            this.PaginationHelper((RadGrid)sender);
        }

    protected void GridView_Bind(object dataSource, RadGrid grid)
        {
            grid.DataSource = dataSource;
            grid.DataBind();
            grid.Rebind();

            //Registra controles de exportação como postback
            this.RegisterPostBackControl(ExportToExcelButton);
            }





Eyup
Telerik team
 answered on 22 Aug 2013
4 answers
129 views
I created a grid list. However the UI does not display properly in IE 9. It works in Chrome. Can anyone help me?
Page Code:
<%@ Page Title="" Language="C#" MasterPageFile="~/APPmaster.master" AutoEventWireup="true" CodeFile="FacultyAdvisorBulkUpload.aspx.cs" Inherits="Common.Common_FacultyAdvisorBulkUpload" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function DownloadTemplate() {
            var url = '../Common/Templates/FacultyAdvisors.csv';
            //location.href = url;
            window.open(url, 'Download');
        }
    </script>
    <script type="text/javascript">
        // This function helps to make the page tab fit the height of RadGrid
        function GridCreated(sender, args) {
            //alert(document.getElementById(sender.get_id()).clientHeight);
            var gridObj = document.getElementById(sender.get_id());
            var tabObj = document.getElementById('<%=RadMultiPage.ClientID %>');
            var searchObj = document.getElementById('search-area');
            tabObj.style.height = (gridObj.clientHeight + searchObj.clientHeight) + 'px';
        }
        // When clicking export, disable the AJAX
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportTo") >= 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
    <br /><br />
    <telerik:RadTabStrip runat="server" ID="RadTabStrip" Skin="Outlook"
        SelectedIndex="0" MultiPageID="RadMultiPage">
        <Tabs>                                       
            <telerik:RadTab Text="Advisor List" ToolTip="View Faculty Advisor Relationship" />
            <telerik:RadTab Text="Advisor Bulk Update" ToolTip="Tool to Import Grades to APP." runat="server" />           
        </Tabs>                                               
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="RadMultiPage" SelectedIndex="0" CssClass="pageView">
        <telerik:RadPageView runat="server" ID="RadPageView" >           
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay">
            </telerik:RadAjaxLoadingPanel>
            <div id="search-area" style="padding:10px 0 20px 0;">
                <b>Faculty Name:</b> <telerik:RadTextBox ID="FacultyNameCond" runat="server" />  <b>Student Name:</b> <telerik:RadTextBox ID="StudentNameCond" runat="server" />  <b>Class:</b> <telerik:RadComboBox ID="ClassCond" runat="server" ViewStateMode="Enabled" />
                  <telerik:RadButton ID="SearchButton" runat="server" Text="Search" OnClick="SearchButton_Click" />
                  <telerik:RadButton ID="ExportButton" runat="server" Text="Export to XLS" OnClick="ExportButton_Click" />
            </div>
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart">
                <telerik:RadGrid runat="server" ID="RadGridAdvisorList" Skin="Hay" Width="900px" GridLines="None" OnItemDataBound="RadGridAdvisorList_ItemDataBound"
                     AutoGenerateColumns="False" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="false" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" PageSize="10" AllowMultiColumnSorting="true">
                        <GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="FacultyName" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="FacultyName" />
                                </SelectFields>
                            </telerik:GridGroupByExpression>                   
                        </GroupByExpressions>
                        <CommandItemSettings ShowAddNewRecordButton="false" />
                        <Columns>
                            <telerik:GridBoundColumn DataField="FacultyName" HeaderText="Faculty Name" Display="false" />
                            <telerik:GridBoundColumn DataField="FacultyID" HeaderText="Faculty Email" Display="false" />
                            <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="ImageLink"
                                DataImageUrlFormatString="~/Pics/{0}" AlternateText="Student image" DataAlternateTextField="StudentName"
                                ImageAlign="Middle" ImageWidth="57px" ImageHeight="72px" AllowFiltering="false" HeaderStyle-Width="64px" />
                            <telerik:GridBoundColumn DataField="StudentName" HeaderText="Student Name" AllowFiltering="false" HeaderStyle-Width="160px" />
                            <telerik:GridBoundColumn DataField="StudentID" HeaderText="Student ID" AllowFiltering="false" HeaderStyle-Width="90px" />
                            <telerik:GridBoundColumn DataField="Email" HeaderText="Email" AllowFiltering="false" HeaderStyle-Width="160px" />
                            <telerik:GridBoundColumn DataField="Status" HeaderText="Status" AllowFiltering="false" HeaderStyle-Width="160px" />
                            <telerik:GridBoundColumn DataField="Class" HeaderText="Class" AllowFiltering="false" HeaderStyle-Width="90px" />
                            <%--
                            <telerik:GridTemplateColumn>
                                <ItemTemplate>
                                    <input type="image" src="../Styles/Images/Snapshot.gif" alt="Select" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            --%>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings>
                            <Selecting AllowRowSelect="true" />
                            <ClientEvents OnGridCreated="GridCreated" />
                    </ClientSettings>
                </telerik:RadGrid>   
            </telerik:RadAjaxPanel>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="BulkUploadView">               
            <div class="pageTitle"><b>Advisor Bulk Update</b></div>   
            <div id="ContainerDiv" class="legendBorderStaff" style="Height: 200px;">   
                <div class="tabWrapper">       
                    <div class="regularLabel">
                        1. Download Template (if necessary):   
                        <br />   
                        <button id="btnTemplate" onclick="javascript:DownloadTemplate();" title="Download Template" >Download</button>                                                                  
                        <%--<asp:Button ID="Button1" runat="server" Text="Download" ToolTip="Download the proper template." onclick="BtnTemplate_Click" />                   --%>
                        <br /><br />         
                               
                        2. Select the file:
                        <telerik:RadUpload ID="RadUpload" runat="server" Skin="Outlook" AllowedFileExtensions="csv" />
                 
                        <asp:CustomValidator ID="CustomValidator1"
                            runat="server"
                            CssClass="errorLabel"
                            ErrorMessage="Please select at least one CSV file."
                            OnServerValidate="CustomValidator1_ServerValidate">
                        </asp:CustomValidator>
                 
                        <br />
                        3. Submit your file:
                        <br />
                        <asp:Button ID="BtnSumbit" runat="server" Text="Import" ToolTip="Import advisors into APP system." onclick="BtnSumbit_Click" Width="150px" />                         
                    </div> 
                </div>
            </div>
            <br />
            <div class="errorLabel">        
                <asp:Image ID="SuccessImg" runat="server" ImageUrl="../Images/success.gif" Visible="false" />
                <asp:Image ID="ErrorImg" runat="server" ImageUrl="../Images/error.gif" Visible="false" />
                <asp:Label ID="OutputLabel" ForeColor="Red" runat="server" Visible="false" />
            </div>
            <div class="details" >
                <asp:Label ID="lblReport" runat="server" />
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
</asp:Content>
Kostadin
Telerik team
 answered on 22 Aug 2013
1 answer
213 views
Hello Friends,
 Facing some problems while working with RadChart to bind data to multiple Y axis I mean more than at least 2.
PFA the Line Chart I want to design. Expecting some response. 1, 2, 3, in image are my three y axis.

Thank you,
Goraksh
Delmon solutions Epao-team.
Danail Vasilev
Telerik team
 answered on 22 Aug 2013
1 answer
67 views
Hello.  Is there a way to tell the editor to block certain html tags such as embed, object, iframe, img, etc?    I've got AllowScripts = false turned on, and that works for blocking <script> tags, but I would like to be able to block other tags as well.

Thank you!
Marin Bratanov
Telerik team
 answered on 22 Aug 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?