Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views

Unfortunately, there is no option to set client settings for telerik treelist to make the headers constant while scrolling.There is paging option but i donot need paging. all the nodes should expand collapase on demand.In the clientsettings option i cannot see this

 

<ClientSettings>

       <Scrolling AllowScroll="True" UseStaticHeaders="true" />

<ClientSettings>

 

Martin
Telerik team
 answered on 02 Jun 2011
1 answer
297 views
I'd like to have groupBox functionality in my website.  Namely I need a curved border around my content and title text cutting through the border at the top left.  Is there anyway to do this with RadControls?  Is the RadXmlHttpPanel the best thing for this or is there something better to use?

I don't want to use other controls if I can avoid it because I want to be able to change the theme and not break any visual elements.
Pero
Telerik team
 answered on 02 Jun 2011
1 answer
114 views
Hi. im developer.

when uploading, display ProgressArea but dont update progress status(estemation time, percent.. etc).

i pasted source code.

aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadProgressManager ID="RadProgressManager" runat="server" />
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>    
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadUpload ID="RadUpload1" runat="server" />
    <input type="submit" value="Send" />
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server"/>    
    <div>
  
    </div>
    </form>
</body>
</html>


Web.Config
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
    </httpModules>
    <httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
    </modules>
    <handlers>
      <remove name="ChartImage_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode"/>
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147482624"/>
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>


I tried to the following

1.  convert from <modules runAllManagedModulesForAllRequests="true">  to  <modules runAllManagedModulesForAllRequests="false">
2. i set Web Application with Full Trust security Policy.


RadControl Version  : 2011.1.413.40

Does anybody have a idea?

Thanks
Dimitar Terziev
Telerik team
 answered on 02 Jun 2011
2 answers
179 views
Hi friends,

I have used telerik:GridClientSelectColumn instead of checkbox. Here I want to do some operations on that. But before that I need to
find that control in RadGrid. I TRIED to find out but got error as "

Specified argument was out of the range of valid values.
Parameter name: index


I used code like this:

            Dim item1 As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim chkBox1 As CheckBox = DirectCast(item1("Complete").Controls(1), CheckBox)
       
I dont know what is the index controls(1) or upto controls(12)

Please help in solving this
BRK
Top achievements
Rank 1
 answered on 02 Jun 2011
14 answers
205 views
Here the image i bind radgrid some records through needdatasource ,
After that when i click the show inactive button ,
Asset inactive field checked items only come ,
Here not come first time bind only show,

This's My code ,
Click show inactive else part go and properly get but show first time bind only

if (showinactive == "0")
                {
                    using (var db = new TBSHelpDeskDataContext(Globals.strCon))
                    {
                        var orgModel = (from d in db.Assets where d.Asset_Inactive == false select new { d.AssetName, d.SerialNumber, d.Asset_UserID, d.Asset_Inactive }).ToList();
                        int i = orgModel.Count;
                        if (i > 0)
                        {
                            var orgass = (from d in db.Assets join org in db.Peoples on d.Asset_UserID equals org.PeopleID select new { d.AssetID, d.AssetName, d.SerialNumber, org.ppl_Name, d.Asset_UserID, d.Asset_Inactive }).ToList();
                            RadGrid1.DataSource = orgass;
                            GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                            chkbox.Visible = true;
                        }
                        else
                        {
                            var orgass1 = (from d in db.Assets join org in db.Peoples on d.Asset_UserID equals org.PeopleID select new { d.AssetID,        d.AssetName, d.SerialNumber, org.ppl_Name, d.Asset_UserID, d.Asset_Inactive }).ToList();
                            RadGrid1.DataSource = orgass1;
                            GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                            chkbox.Visible = false;
                        }
                    }
                }
                else
                {
                    using (var db = new TBSHelpDeskDataContext(Globals.strCon))
                    {
                        var orgModel = (from d in db.Assets where d.Asset_Inactive == true select new { d.AssetName, d.SerialNumber, d.Asset_UserID, d.Asset_Inactive }).ToList();
                        int i = orgModel.Count;

                        if (i > 0)
                        {
                            var orgass = (from d in db.Assets join org in db.Peoples on d.Asset_UserID equals org.PeopleID where d.Asset_Inactive == true select new { d.AssetID, d.AssetName, d.SerialNumber, org.ppl_Name, d.Asset_UserID, d.Asset_Inactive }).ToList();
                            RadGrid1.DataSource = orgass;
                            showinactive = "0";
                        }
                    }
                }



Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 02 Jun 2011
2 answers
74 views
I have a 'regular' RadWindow, one populated using the NavigateUrl property (we'll call this Window1).

The page that is used to populate it, however, includes a RadWindow (which we'll call Window2) with a <ContentTemplate> tag.

When the user clicks a button in Window1, Window2 opens. I want to be able to manually close Window2 when the user clicks a button in it, and have the user return to operating in Window1.

I tried just saying "GetRadWindow().close(), but that closed both Window2 and Window1.

Any suggestions?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 02 Jun 2011
1 answer
109 views
Hi,
We are facing problem in scroll with column freezing. when scroll goes end of grid then scroll  disappears. And other issue is header and item alignment is not correct.
Please look into code.
<%@ Page Title="" Language="C#" MasterPageFile="~/CCMMasterPage.master" AutoEventWireup="true" CodeFile="CareProviderMyTasks.aspx.cs" Inherits="Patient_CareProviderMyTasks" %>

<%@ Register Src="~/Patient/USERCONTROLS/uctlCareProviderDB.ascx" TagName="uctlCareProviderDB"
    TagPrefix="uc1" %>
<%@ Register Src="~/Patient/USERCONTROLS/uctlCareProviderDBFilters.ascx" TagName="uctlCareProviderDBFilters"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CCMContentPlaceHolder" runat="Server">
    <link href="../StyleSheet/CCMStyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/Common.js" type="text/javascript"></script>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script language="javascript" type="text/javascript">
            var windowopen;
            function Openpopup(popurl, Height, Width) {
                windowopen = window.radopen(popurl, "WindowDialog1");
                windowopen.setSize(Width, Height);
                windowopen.center();
                return false;
            }
            function Closewindow() {
                windowopen.close();
                return false;
            }
            function ValidateFilterText(evt) {
                var charCode = (evt.which) ? evt.which : event.keyCode;
                if ((charCode < 48 || charCode > 57)) {
                    return false;
                }
                else {
                    return true;
                }
            }

            function OnHeaderMenuShowing(sender, eventArgs) {
                var headerName = eventArgs.get_gridColumn().get_uniqueName();
                if (headerName == "FullName") {
                    eventArgs.set_cancel(true);
                }
                if (headerName == "Reason") {
                    eventArgs.set_cancel(true);
                }
            }
        </script>
        <script type="text/javascript">
            function OnRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("Select") >= 0)
                    args.set_enableAjax(false);
            }
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgCareDashMyTasks">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgCareDashMyTasks" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="OnRequestStart" />
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <table border="0" cellpadding="0" cellspacing="0" align="left" width="100%">
        <tr>
            <td>
                <uc1:uctlCareProviderDB ID="uctlCareProviderDBMyTasks" runat="server" />
            </td>
        </tr>
        <tr>
            <td valign="top" align="center">
                <uc2:uctlCareProviderDBFilters ID="uctlCareProviderDBFiltersMyTasks" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table style="margin-top: -3px;" border="0" class="Tab_hd" cellpadding="0" cellspacing="0"
                    width="100%">
                    <tr height="25px">
                        <td align="left" class="formheading" width="50%">
                            Open Tasks
                        </td>
                        <td align="right" width="50%" valign="middle">
                            <b>Health Risk Score : </b>
                            <telerik:RadComboBox ID="ddlHealthRiskScore" CssClass="dropdownp" Width="300px" MaxHeight="200"
                                runat="server" OnSelectedIndexChanged="ddlHealthRiskScore_SelectedIndexChanged"
                                AutoPostBack="true">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" bgcolor="white" align="left" colspan="2">
                            <%--  <asp:UpdatePanel ID="upnlcallPage" runat="server">
                                <ContentTemplate>--%>
                            
                            <telerik:RadGrid ID="rgCareDashMyTasks" runat="server" AllowAutomaticDeletes="True"
                                Width="1000px" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" EnableHeaderContextFilterMenu="true"
                                EnableHeaderContextMenu="true" AllowPaging="True" OnPageIndexChanged="rgCareDashMyTasks_PageIndexChanged"
                                AutoGenerateColumns="False" BorderWidth="1" GridLines="None" OnItemDataBound="rgCareDashMyTasks_ItemDataBound"
                                OnNeedDataSource=" rgCareDashMyTasks_NeedDataSource" OnItemCommand="rgCareDashMyTasks_ItemCommand"
                                EnableAjaxSkinRendering="true" AllowFilteringByColumn="true">
                                <GroupingSettings CaseSensitive="false" />
                                <MasterTableView AllowSorting="true" Width="200%" TableLayout="Auto" Font-Size="Smaller"   CellPadding="0"
                                    CellSpacing="0" IsFilterItemExpanded="false" AutoGenerateColumns="False" CommandItemDisplay="None"
                                    AllowFilteringByColumn="true" DataKeyNames="UserId"
                                    EditMode="InPlace" GridLines="None" BorderWidth="1" HorizontalAlign="NotSet"
                                    PagerStyle-AlwaysVisible="true" EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu="true"
                                    FooterStyle-Font-Size="Smaller">
                                    <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" />
                                    <Columns>
                                        <%--UserId ,MemberNum,FullName,PhonePreference,AgeAndGender  ,TaskDueDate
                                            DaysLate ,AttemptsAndLastDate,NextCommunicationType,Reason,RiskScore DataFormatString="{0:MM/dd/yyyy}"--%>
                                        <telerik:GridBoundColumn DataField="UserId" HeaderText="UserID" Visible="false" ItemStyle-HorizontalAlign="Left"
                                            SortExpression="UserId" UniqueName="UserId">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskID" Display="false" HeaderText="TaskID" Visible="false"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="TaskID" UniqueName="TaskID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskGeneralizedId" Display="false" HeaderText="TaskGeneralizedId"
                                            Visible="false" ItemStyle-HorizontalAlign="Left" SortExpression="TaskGeneralizedId"
                                            UniqueName="TaskGeneralizedId">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Attempts" Display="false" HeaderText="Attempts"
                                            ItemStyle-HorizontalAlign="Left" Visible="false" SortExpression="Attempts" UniqueName="Attempts">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CommunicationTemplateID" Display="false" HeaderText="CommunicationTemplateID"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="CommunicationTemplateID" UniqueName="CommunicationTemplateID"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CommunicationAttemptDays" Display="false" HeaderText="CommunicationAttemptDays"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="CommunicationAttemptDays" UniqueName="CommunicationAttemptDays"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CommunicationSequence" Display="false" HeaderText="CommunicationSequence"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="CommunicationSequence" UniqueName="CommunicationSequence"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskTypeCommunicationID" Display="false" HeaderText="TaskTypeCommunicationID"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="TaskTypeCommunicationID" UniqueName="TaskTypeCommunicationID"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskTypeID" Display="false" HeaderText="TaskTypeId"
                                            ItemStyle-HorizontalAlign="Left" SortExpression="TaskTypeID" UniqueName="TaskTypeID"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="MemberNum" HeaderText="MRN#" ItemStyle-HorizontalAlign="Left"
                                            HeaderStyle-HorizontalAlign="Left" SortExpression="MemberNum" UniqueName="MemberNum">
                                            <HeaderStyle Width="8%" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn DataField="FullName" ItemStyle-CssClass="GridBorders"
                                            HeaderText="Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
                                            HeaderStyle-Width="10%" SortExpression="" UniqueName="FullName" GroupByExpression="FullName Group by FullName">
                                            <ItemTemplate>
                                                <a id="lnkbtnPatientName" href="../Patient/CallPage.aspx?CMUSerID= <%#Eval("UserId") %> &role='Patient'">
                                                    <%#Eval("FullName")%></a>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="Phone" HeaderStyle-Width="9%" HeaderText="Phone"
                                            ItemStyle-HorizontalAlign="right" HeaderStyle-HorizontalAlign="right" SortExpression="Phone"
                                            UniqueName="Phone">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Preference" HeaderStyle-Width="4%" HeaderText="Preference"
                                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="left" SortExpression="Preference"
                                            UniqueName="Preference">
                                        </telerik:GridBoundColumn>
                                        <%-- <telerik:GridBoundColumn DataField="PhonePreference" HeaderText="Phone Preference"
                                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="9%"
                                            SortExpression="PhonePreference" UniqueName="PhonePreference">
                                        </telerik:GridBoundColumn>--%>
                                        <telerik:GridBoundColumn DataField="AgeAndGender" HeaderText="A/S" ItemStyle-HorizontalAlign="Left"
                                            HeaderStyle-HorizontalAlign="Left" SortExpression="AgeAndGender" UniqueName="AgeAndGender"
                                            HeaderTooltip="Age/Sex" HeaderStyle-Width="4%">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskDueDate" HeaderText="Due Date" ItemStyle-HorizontalAlign="Left"
                                            HeaderStyle-HorizontalAlign="left" SortExpression="TaskDueDate" UniqueName="TaskDueDate"
                                            HeaderStyle-Width="8%" DataFormatString="{0:MM/dd/yyyy}">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Days/Late" SortExpression="DaysLate" DataField="DaysLate"
                                            UniqueName="DaysLate" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
                                            HeaderStyle-Width="8%" GroupByExpression="DaysLate Group by DaysLate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblLateDate" runat="server" Text='<%#Eval("DaysLate") %>'></asp:Label>
                                                <asp:Image ID="imgflag" ImageAlign="AbsMiddle" runat="server" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="AttemptsAndLastDate" HeaderText="Attempts/LastDate"
                                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="9%"
                                            SortExpression="AttemptsAndLastDate" UniqueName="AttemptsAndLastDate" DataFormatString="{0:MM/dd/yyyy}">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="NextCommunicationType" HeaderText="Type" ItemStyle-HorizontalAlign="Left"
                                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="7%" SortExpression="NextCommunicationType"
                                            UniqueName="NextCommunicationType">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TaskTypeName" Display="false" HeaderText="TaskTypeName"
                                            ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center" SortExpression="TaskTypeName"
                                            UniqueName="TaskTypeName" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn DataField="Reason" AllowFiltering="true" ShowSortIcon="false"
                                            ShowFilterIcon="false" HeaderText="Reason" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
                                            HeaderStyle-Width="22%" SortExpression="" UniqueName="Reason" GroupByExpression="Reason Group by Reason">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkbtnReason" CommandName="Reason" CommandArgument='<%#Eval("TaskTypeName")%>'
                                                    runat="server" Text='<%#Eval("Reason")%>'></asp:LinkButton>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="AssignedCareProviderId" HeaderText="Assigned Care Provider"
                                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="8%"
                                            SortExpression="AssignedCareProviderId" AllowSorting="true" UniqueName="AssignedCareProviderId">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="RiskScore" HeaderText="Risk Score(%)" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="RiskScore"
                                            AllowSorting="false" UniqueName="RiskScore">
                                        </telerik:GridBoundColumn>
                                         <telerik:GridBoundColumn DataField="Total Care Gaps" HeaderText="Total Care Gaps" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Total Care Gaps"
                                            AllowSorting="false" UniqueName="Total Care Gaps">
                                        </telerik:GridBoundColumn>

                                         <telerik:GridBoundColumn DataField="Preventive" HeaderText="Preventive" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Preventive"
                                            AllowSorting="false" UniqueName="Preventive">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="COPD" HeaderText="COPD" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="COPD"
                                            AllowSorting="false" UniqueName="COPD">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CHF" HeaderText="CHF" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="CHF"
                                            AllowSorting="false" UniqueName="CHF">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Diabetes" HeaderText="Diabetes" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Diabetes"
                                            AllowSorting="false" UniqueName="Diabetes">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Hypertension" HeaderText="Hypertension" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Hypertension"
                                            AllowSorting="false" UniqueName="Hypertension">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Asthma" HeaderText="Asthma" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Asthma"
                                            AllowSorting="false" UniqueName="Asthma">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="PCP Name" HeaderText="PCP Name" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="PCP Name"
                                            AllowSorting="false" UniqueName="PCP Name">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Care Team" HeaderText="Care Team" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Care Team"
                                            AllowSorting="false" UniqueName="Care Team">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Last interaction" HeaderText="Last interaction" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Last interaction"
                                            AllowSorting="false" UniqueName="Last interaction">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Last Visit" HeaderText="Last Visit" ItemStyle-HorizontalAlign="right"
                                            HeaderStyle-HorizontalAlign="right" HeaderStyle-Width="11%" SortExpression="Last Visit"
                                            AllowSorting="false" UniqueName="Last Visit">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings AllowColumnsReorder="true" >
                                    <Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" />
                                    <ClientEvents OnCommand="gridCommand" OnHeaderMenuShowing="OnHeaderMenuShowing" />
                                </ClientSettings>
                            </telerik:RadGrid>

                            <telerik:RadWindowManager VisibleStatusbar="false" ID="RadWindowManager1" Title="Loading..."
                                DestroyOnClose="true" runat="server" AutoSizeBehaviors="WidthProportional">
                                <Windows>
                                    <telerik:RadWindow ID="WindowDialog1" runat="server" Left="150px" Title="Loading..."
                                        Modal="true" ReloadOnShow="false" ShowContentDuringLoad="false" VisibleTitlebar="true"
                                        Behaviors="Close,Move" />
                                </Windows>
                            </telerik:RadWindowManager>
                            <%--  </ContentTemplate>
                            </asp:UpdatePanel>--%>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
 
Pavlina
Telerik team
 answered on 02 Jun 2011
1 answer
68 views
Hi,

I am facing a problem that I am unable to solve with the RadFileExplorer.

Let's say I have the next hierarchy nodes (as ilustraded in the attachement):

cms -> dir1 -> dir1.1

I am using the context menu on the tree (the context menu is built by my code depending on some rules) to trigger an ajax request that delete the selected node. If I trigger an ajax request to delete node "dir1" (current directory is dir1), the node is deleted on server side without problem but when the content provider tries to fetch directories again, this process tries to fetch the deleted directory which causes an error because the directory does not exists anymore.

I already tried to clear the nodes of TreeView right after my delete code but it does not solve the problem.

Can someone help me with that problem?

Best regards,
Michael Pinheiro



Dobromir
Telerik team
 answered on 02 Jun 2011
2 answers
106 views
Hi,

I am using a RadGrid with grouping enabled. I am trying to export this grid data to a PDF but its not happening. On click of export button the grid does some processing but don't work at last.
Below is my code:

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        function requestStart(sender, args)
        {
            if (args.get_eventTarget().indexOf("DownloadPDF") > 0)
                args.set_enableAjax(false);
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="CPH" runat="server">
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

        <telerik:RadGrid ID="radGridShippedOrders" runat="server" GridLines="None" AllowPaging="True"
            PageSize="10" AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="true"
            HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="radGridShippedOrders_NeedDataSource" 
            Width="100%" AllowMultiRowSelection="False" AllowFilteringByColumn="true" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
            
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                 <Pdf PageTitle="SushiBar menu" />
            </ExportSettings>

            <MasterTableView GroupLoadMode="Client" CommandItemDisplay="Bottom">
                <CommandItemTemplate>
                    <asp:Button ID="DownloadPDF" runat="server" CommandName="ExportToPdf" Text="Export" />
                </CommandItemTemplate>
                <CommandItemSettings ShowExportToExcelButton="true" />
                <Columns>
                    <telerik:GridBoundColumn UniqueName="OACONO" HeaderText="OACONO" DataField="OACONO">
                    </telerik:GridBoundColumn>                
                    <telerik:GridBoundColumn UniqueName="OAINNO" HeaderText="OAINNO" DataField="OAINNO">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAORNO" HeaderText="OAORNO" DataField="OAORNO">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAORGN" HeaderText="OAORGN" DataField="OAORGN">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAHSSQ" HeaderText="OAHSSQ" DataField="OAHSSQ">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
             <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True">
            </ClientSettings>
             <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>
        
    </telerik:RadAjaxPanel>
</asp:Content>

protected void Page_Load(object sender, EventArgs e)
        {
            RadAjaxManager AjaxManager = new RadAjaxManager();
            AjaxManager = (RadAjaxManager)this.Master.FindControl("RadAjaxManagerMP");
            if (AjaxManager != null)
            {
                AjaxManager.ClientEvents.OnRequestStart = "requestStart";
            }
        }

Ajay
Top achievements
Rank 1
 answered on 02 Jun 2011
1 answer
313 views
Hi i would like to know if there is a way to change the display image of buttonsof RadTextBoxes as well some other proprieties related to the same control.

PS: im sorry for my english :S.
Sebastian
Telerik team
 answered on 02 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?