Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
318 views
In looking and implementing the example of the listview drag and drop to a data repeater and modifying it to work with a tree view, i am coming up short with the e.DestinationHtmlElement being returned blank....

in the itemDropping event on the client side, the information inside the Destination Html is also lacking...in that it doesn't provide the value of the node that the data item is dropping onto

am i missing something or is it not possible to interact with a tree view at this point?

let me know

thanks!
Rosen
Telerik team
 answered on 24 Aug 2010
1 answer
202 views
Any tips on how to handle this when using client side row selection?

Here's what I am trying to do now which is handling the OnRowSelecting event
to see if the row is disabled and canceling the selection if it is.

<script type="text/javascript">
    function RowSelecting(sender, eventArgs) {
         //Prevent "disabled" grid RowSelecting from being selected (individually)
         var grid = sender;
         var MasterTable = grid.get_masterTableView();
         var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
         if (row.disabled)
            eventArgs.set_cancel(true)
     }
 
</script>
<radG:RadGrid ID="RadGrid1" AllowMultiRowSelection="true" runat="server">
    <MasterTableView Width="100%">
        <Columns>
             <radG:GridClientSelectColumn UniqueName="ClientSelectColumn" />
         </Columns>
    </MasterTableView>
    <ClientSettings ApplyStylesOnClient="True">
         <Selecting AllowRowSelect="True"></Selecting>
         <ClientEvents OnRowSelecting="RowSelecting" />
     </ClientSettings>
</radG:RadGrid>


This works when individually trying to select a disabled row (prevents it), but when clicking the header row checkbox (to Select/DeSelect all) the disabled rows still get checked.

How can I prevent this?
Pavlina
Telerik team
 answered on 24 Aug 2010
4 answers
305 views
I need the validation for Radcombobox whether the check boxes are checked or not using customvalidator or other js validation. pls help urgently
vinoth sansar
Top achievements
Rank 2
 answered on 24 Aug 2010
4 answers
176 views
I get the following error for "RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial" setup.

"Setup detected that you have manually installed Telerik parts for Sharepoint. Please uninstall manually Telerik parts for Sharepoint and backup any customizations you made to apply them Later."

Prior to the above message, I was in the process of install and machine crashed. I uninstalled and install again and I got above error.

I can not install again. What do I mannually uninstall?

Thanks,
Petar
Telerik team
 answered on 24 Aug 2010
1 answer
204 views

Is it possible to access the controls in the confirm template using C#?

For the code, how to refer to the “btnYes” on the page load function?

I would to access the control because my application will let users change the text on the control.


<telerik:RadWindowManager ID="PageAjaxWindowManager" runat="server" VisibleStatusbar ="false" OnClientShow="onClientShow" OnClientClose="onClientClose"  OnClientBeforeClose="ConfirmClose" >
            <ConfirmTemplate>
                <div class="rwDialogPopup radconfirm">  
                    <div class="rwDialogText">
                        {1}   
                    </div>     
                    <div>                       
                        <a onclick="$find('{0}').close(true);" href="javascript:void(0);" ><asp:Button ID="btnYes" runat="server" Text="Yes,I do." /></a>
                        <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[No]##</span></span></a>
                    </div>
                </div>
            </ConfirmTemplate>
            <Windows>
                <telerik:RadWindow ID="Window1" runat="server" Title="Window 1" Height="510px"
                    Width="750px" Left="20px" Top="3px" Modal="true"   />
                <telerik:RadWindow ID=" Window2" runat="server" Title=" Window 2 " Height="480px"
                    Width="750px" Left="20px" Top="3px" Modal="true"  />
                <telerik:RadWindow ID=" Window3" runat="server" Title=" Window 3" Height="400px"
                     Width="550px" Left="50px" Modal="true"  />  
            </Windows>    
        </telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 24 Aug 2010
4 answers
452 views
I'm trying to loop through the cell in a row and do conditional formatting based on their column definition's dataformatstring. How do I get a reference to the column they belong to so I can check this?

protected void gridOverview_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
  //Is it a GridDataItem
           if (e.Item is GridDataItem)
           {
               //Get the instance of the right type
               GridDataItem row = e.Item as GridDataItem;
               foreach (GridTableCell cell in row.Cells)
               {                      
                   // Check DataFormatString here and do conditional logic
               }

Thanks!
Levi
Levi
Top achievements
Rank 1
 answered on 24 Aug 2010
6 answers
409 views
Hi

I am using the radeditor in server side code to export some data to a pdf. Just add a bit of html and hey presto! :)
Can I set page header and footers? I want a "Page # of 10" at the bottom of each page for example.

Kind Regards,
Jeremy
Jeremy
Top achievements
Rank 1
 answered on 24 Aug 2010
3 answers
1.0K+ views

 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrlUserProfilePics.ascx.cs" 
    Inherits="OmegaLove.Web.UI.ctrlUserProfilePics" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> 
<%@ Register Src="ctrlUserProfilePicsText.ascx" TagName="ctrlUserProfilePicsText" 
    TagPrefix="uc1" %> 
 
 
 
<div class="accordionContent" style="display: block;">  
    <div class="boxContent">  
        <div style="padding-left: 15px; padding-right: 15px;">  
            <uc1:ctrlUserProfilePicsText ID="ctrlUserProfilePicsText" runat="server" /> 
            <table cellspacing="2" cellpadding="0" width="800" border="0">  
                <tbody> 
                    <tr> 
                        <td align="center" colspan="3">  
                            <%--<asp:Image ID="ImgFullSize" runat="server" Style="border: 4px solid white" ImageUrl="~/Images/NoPhoto.jpg" 
                                CssClass="photo_198" />--%> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td valign="middle" align="center" width="40">  
                            &nbsp;  
                        </td> 
                        <td align="center">  
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
                                <ContentTemplate> 
                                    <asp:DataList ID="DLThumbnails" runat="server" DataKeyField="img_id" RepeatDirection="Horizontal" 
                                        CellSpacing="5" CellPadding="0" HorizontalAlign="Center" CssClass="view" RepeatColumns="5" 
                                        Item-BorderWidth="1" Item-BorderColor="#c0c0c0" OnItemDataBound="DLThumbnails_ItemDataBound" 
                                        OnItemCommand="DLThumbnails_ItemCommand">  
                                        <ItemTemplate> 
                                            <table cellspacing="7" cellpadding="0" border="0">  
                                                <tr valign="top">  
                                                    <td> 
                                                        <span class="verdana12"><b>Main profile photo</b></span> <span id="top_1"></span> 
                                                    </td> 
                                                </tr> 
                                                <tr height="150" valign="top">  
                                                    <td> 
                                                        <div style="position: relative; height: 148px;">  
                                                            <asp:Image runat="server" ID="view_image" Width="118" Height="148" alt='Photo from Album Number <%# Eval("img_id") %>' /> 
                                                        </div> 
                                                        <br /> 
                                                        <asp:LinkButton ID="lnkRemove" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "img_id")%>' 
                                                            Text="Delete Photo" OnClick="DeleteImage"></asp:LinkButton> 
                                                        <%--      <asp:LinkButton ID="delete" runat="server" Text="Delete Photo" CommandName="Delete" 
                                                            CommandArgument='<%#DataBinder.Eval(Container.DataItem, "img_id")%>'></asp:LinkButton>--%> 
                                                        <%-- <asp:ImageButton ID="ImgButtonDeletePhoto" runat="server" ImageUrl="~/Images/Buttons/delete-image.gif" 
                                                    Visible="true" OnClientClick="ImgButtonDeletePhoto_Click" />--%> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                        </ItemTemplate> 
                                        <AlternatingItemStyle BackColor="White" /> 
                                        <ItemStyle Width="20%" BackColor="#EFF3FB" /> 
                                        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> 
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> 
                                        <FooterTemplate> 
                                        </FooterTemplate> 
                                    </asp:DataList> 
                                </ContentTemplate> 
                                <Triggers> 
                                    <asp:AsyncPostBackTrigger ControlID="DLThumbnails" /> 
                                </Triggers> 
                            </asp:UpdatePanel> 
                            <div id="AlertDiv" class="AlertStyle">  
                            </div> 
                            <%--  <asp:Panel ID="Panel1" runat="server" Visible="false" CssClass="nullpanel">  
                                        There are currently no pictures in your profile.</asp:Panel> 
                                    <br /> 
                                    <br />--%> 
                        </td> 
                        <td valign="middle" align="center" width="40">  
                            &nbsp;  
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            &nbsp;  
                        </td> 
                        <td align="center">  
                            <%--<asp:Label ID="lblCurrentPage" runat="server" Font-Names="Trebuchet MS" Font-Size="12px" 
                                ForeColor="White"></asp:Label>--%> 
                        </td> 
                        <td> 
                            &nbsp;  
                        </td> 
                    </tr> 
                </tbody 
When I go over a link button
the following appears:

javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$cph1$cph1$RadPanelBar5$i0$i0$ctrlUserProfilePics$DLThumbnails$ctl01$lnkRemove", "", true, "", "", false, true))

Reza
Top achievements
Rank 1
 answered on 24 Aug 2010
2 answers
81 views
Hi,

Data is not shown in the calender while binding. But, when i place it on by mouse, the name is shown in the tool tip.
I've uploaded my image for your preview.

.aspx page:
----------
 
   <telerik:RadScheduler runat="server" ID="RadScheduler1" Height="500px" Skin="Web20"
                    CustomAttributeNames="StartTime,EndTime,SessionDate,DisplayPermitName,EventStartDate,EventEndDate"
                    ShowViewTabs="true" ShowHeader="true" ShowFooter="true" SelectedDate="2010-07-10"
                    DataStartField="EventStartDate" DataEndField="EventEndDate" EnableDescriptionField="true"
                    AppointmentStyleMode="Default" DayStartTime="08:00:00" DayEndTime="21:00:00" Visible="true"
                    DataKeyField="ID" ReadOnly="false" FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
                    DataSubjectField="DisplayPermitName" ColumnWidth="100px" EnableEmbeddedSkins="false" AllowDelete="false" AllowEdit="false" AllowInsert="false"
                    OnNavigationComplete="radScheduler1_NavigationComplete">
                    <AdvancedForm Modal="true" />
                    <AppointmentTemplate>
                        <%-- <%--Permit Name--%>
                        <asp:Label runat="server" Text='<%# Eval("DisplayPermitName")%>' ID="labelDisplayPermitName" Text="Permit Name :">
                              
                        </asp:Label>
                        <br />
                        <%--Start Time--%>
                        <asp:Label runat="server" ID="labelStartTime" Text="Start Time :">
                             <%# Eval("StartTime")%>
                             <br />
                        </asp:Label>
                        <%--End Time--%>
                         <asp:Label runat="server" ID="labelEndTime" Text="End Time : ">
                             <%# Eval("EndTime")%>
                             <br />
                        </asp:Label>
                        <%--Session Date--%>
                         <asp:Label runat="server" ID="labelSessionDate" Text="Session Date :">
                             <%# Eval("SessionDate")%>
                        </asp:Label>
                        <br />
                    </AppointmentTemplate>
                </telerik:RadScheduler>
 
.cs Page
--------
 
 /// <summary>
        /// Populates the controls with data from the Business Objects.
        /// ClassReg20 User Interface will perform the concrete implementation of this method.
        /// </summary>
        protected override void FillControls()
        {
            try
            {
                this.AdminController.State.Session.Schedule = new Schedule(userSession);
                this.AdminController.State.Session.Schedules = this.AdminController.RetrieveAllEventSchedules();
                this.RadScheduler1.DataSource = this.AdminController.State.Session.Schedules;
                DateTime dataStartTime = DateTime.Parse(this.AdminController.State.Session.Schedules[0].SessionDate.ToString());
                //this.RadScheduler1.DataStartField = dataStartTime.ToString("u").Substring(0, 10);
                DateTime dataEndTime = DateTime.Parse(this.AdminController.State.Session.Schedules[this.AdminController.State.Session.Schedules.Count - 1].SessionDate.ToString());
                //this.RadScheduler1.DataEndField = dataEndTime.ToString("u").Substring(0, 10);
 
                foreach (Schedule schedule in this.AdminController.State.Session.Schedules)
                {
                    dataStartTime = DateTime.Parse(schedule.SessionDate.ToString());
                    dataEndTime = DateTime.Parse(schedule.SessionDate.ToString());
                    schedule.EventStartDate = dataStartTime.ToString("u").Substring(0, 10);
                    schedule.EventEndDate = dataEndTime.ToString("u").Substring(0, 10);
                }
 
                this.RadScheduler1.DataBind();
            }
}

Thanks,
Janni Daniel.B
Jerry T.
Top achievements
Rank 1
 answered on 23 Aug 2010
0 answers
121 views
Hi,
       I am trying to use the AjaxToolkit control (ToggleButtonExtender) inside the GridTemplateColumn   but its giving me error :

Generation of designer file failed: Type 'Telerik.Web.UI.GridTemplateColumn' does not have a public property named 'ToggleButtonExtender'. 

Let me know, how i can do that. Thanks,

Regards,

Osman

found answer, i wasn't using the itemtemplate. Thanks
Osmon
Top achievements
Rank 1
 asked on 23 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?