Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
I have a button that uploads the selected file through RadInput.  However, if the user clicks it and the selected file input is blank it errors.  How can I check whether the RadInput is blank or null so I can send a custom error. Or can I hook it up to a validator? 
STEPHEN
Top achievements
Rank 1
 answered on 22 Nov 2010
6 answers
264 views
Hi,

I using master page. Without master page all the page working fine. But when i use master page following error comming

Unknown server tag 'telerik:RadScriptManager'.

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
here is my master page

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="UsanMaster.master.cs" Inherits="UsanMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register  namespace="Telerik.Web.UI" tagprefix="telerik" assembly="Telerik.Web.UI"  %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<style type="text/css">
body {
    BACKGROUND-IMAGE: url(images/gradient.png); BACKGROUND-COLOR: #e6e6e6; MARGIN: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px
}

</style>

    <title>MDR Database :: Total USAN Project</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>



</head>
<body>
    <form id="form1" runat="server">
    
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>   

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>


Here is my details page

<%@ Page Title="MDR Database :: Total USAN Project - CTR Lookup Data" Language="C#" MasterPageFile="~/Cam/Usan/UsanMaster.master" AutoEventWireup="true" CodeFile="Ctr.aspx.cs" Inherits="Cam_Usan_Ctr" %>
<%@ Register  namespace="Telerik.Web.UI" tagprefix="telerik" assembly="Telerik.Web.UI" %>

<%@ MasterType VirtualPath="~/Cam/Usan/UsanMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">



Where is the problem?

lakmal















Saut
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
643 views
Hi,

I am using the AJAX RadChart, and because of the small pie slices the labels are being overlapped. 
1. How do I change the series item label style to smaller font and different font family and color.
2. When I am setting IntelligentLabelsEnabled=true, the labels are going off of the plot area, only part of the label is being visible. How to avoid labels going off of the plot area.

Thanks
Leela
Evgenia
Telerik team
 answered on 22 Nov 2010
1 answer
107 views
Hi ,
I am not sure if the Tree list support a Context Menu function?
If yes could you please provide me a link to an example.

Thanks in advance

Tejas
Veli
Telerik team
 answered on 22 Nov 2010
1 answer
49 views
hai sir,

   i have started using telerik reporting in our website , when we bind an image  to a picture box ,in case the image is missing ,the error is shown as
 "An error has occurred while processing PictureBox 'pictureBox1':
Could not find file '\\jitserver\digitalfilesfmsdemo\buyimgpath\AKM-INO00107-6136-1.JPG'."
on the picture box, it does not look nice when the report is generated.
         please give me a solution where when the binding is not found , how to show an alternative image which says no image found.
Steve
Telerik team
 answered on 22 Nov 2010
1 answer
160 views
Hi all,

Does anyone know if there is an easy way to change the font name and size for all RadControls using CSS? I.e. without having to set the property on each of controls?

Jon
Dimo
Telerik team
 answered on 22 Nov 2010
1 answer
426 views
Hi there,

I'm bit new to telerik controls.

I need to achieve functionality of toggling the visibility of a table in <itemTemplate> column, normally table should be hidden but when we mouseover on the row the edit options table should appear.

below is the code and i've commented the section i need to toggle on mouseover
-----------------------------code------------------------------------------
  <telerik:GridTemplateColumn>            
                               <ItemTemplate>               
                 <table align="left" border="0" cellpadding="0" cellspacing="0" >
                                    <tr>
                                        <td id="tddetails" runat="server" valign="middle" align="center" width="5%">
                                            <asp:CheckBox ID="CheckBoxAssetID"  runat="server" style="display:none;"/>
                                           <input id="grdRdo" name="grdRdo" type="radio" runat="server" disabled="disabled" visible="false"  value='<%# Eval("DocumentID") %>' onclick="fnCheckUnCheck(this.id);" /> 
                                         
                                            <asp:Label ID="LabelAssetID" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "AssetID")%>'></asp:Label>
                                            <asp:Label ID="LabelAssetName" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>'></asp:Label>
                                 
                </td>
                                        <td width="22%" align="center">
                                            <asp:Image ID="ImagePreview" runat="server" lowsrc="../images/COMMON/BUTTONS/wait20.gif"
                                                AlternateText="&nbsp;&nbsp;&nbsp;" CssClass="myassetsimg" />
                                        </td>
                                        <td width="47%">
                                            <table width="170" cellpadding="0" cellspacing="0" align="left">
                                                <tr>
                                                    <td align="left">
                                                        <asp:Label ID="LabelDescription" runat="server" CssClass="myassets_description"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td valign="middle" width="35%" align="left">
      <!-- Need to toggle this table "tblCMenu" on mouseover-->
                                            <table name="tblCMenu" id="tblCMenu" runat="server"  cellpadding="0" cellspacing="0" border="0"  >
                                                <tr >
                                                    <td width="40" valign="middle" align="center">
                                                        <asp:Literal ID="litPreview" runat="server" Text="" Visible="false"> </asp:Literal>
                                                        <asp:ImageButton ID="btnFlodocs" runat="server" AlternateText="preview1" ImageUrl=""
                                                            OnClick="btnFlodocs_Click" CausesValidation="false"  Visible="false" />
                                                    </td>
                                                    <td width="40" valign="middle" align="center">
                                                        <asp:ImageButton ID="btnRename" CssClass="imageButton" AlternateText="Rename" runat="server" SkinID="btnLibPencil"
                                                            OnClick="btnRename_Click" CausesValidation="false"
                                                            ToolTip="rename" />
                                                    </td>
                                                      <td  valign="middle" align="center">
                                                        <asp:ImageButton ID="imgDuplicate1" AlternateText="Duplicate" CssClass="imageButton" runat="server" CausesValidation="false" SkinID="btnLibCopy"
                                                            ToolTip="duplicate" Visible="false" OnClick="imgDuplicate_Click" />
                                                    </td>
                                                 
                                                  
                                                    <td width="40" valign="middle" align="center">
                                                        <asp:ImageButton ID="btnDelete" AlternateText="Delete" CssClass="imageButton" runat="server"
                                                            SkinID="btnLibDelete" CausesValidation="false"
                                                            ToolTip="delete" />
                                                    </td>
                                                    <td width="25" valign="middle" align="center">
                                                    <asp:Image ID="imgChecked" runat="server" Visible="false" ToolTip="checked" ImageUrl="/images/COMMON/BUTTONS/25x25CheckMark.gif" />
                                                    </td>
                                                </tr>
                                               <tr ><td>&nbsp;</td>
                                                    <td align="right">
                                                        
                                                           <asp:Label ID="lblQty" runat="server" Visible="false" CssClass="myassets_description" style="text-align:center;" Text="qty:"></asp:Label>&nbsp;
                                                    </td>
                                                     <td  valign="bottom" align="center">
                                                  
                                                        <asp:TextBox ID="txtQty" style="height:17px; color:Black; font-size:14px; padding-right:1px; padding-left:0; padding-bottom:0; padding-top:0; text-align:right;" runat="server" Visible="false"  MaxLength="5" Width="35"></asp:TextBox>
                                                    </td>  
                                                       <td  valign="middle" align="center">
                                                        <asp:ImageButton ID="imgAddToCart1" AlternateText="Add to cart" CssClass="imageButton" runat="server" style="padding-top:6px;"
                                                          CausesValidation="false" SkinID="btnLibCart"
                                                            ToolTip="add to cart" Visible="false"  />
                                                    </td>  
                                                </tr>
                                            </table>
<!--- Till Here  -->
                                        </td>
                                    </tr>                                  
                                </table>                               
                </ItemTemplate>               
</telerik:GridTemplateColumn>
------------------------------------------------------

I hope i can get some constructive solution for this from your side.
One Ques : Is it possible to use dragdrop feature for grid using <itemTemplate> ?

Thanks Aman
Dimo
Telerik team
 answered on 22 Nov 2010
1 answer
97 views
In my datasource, there are some columns that I get back that I don't wish to display.  I know you can change the column attributes to hide a column, but in this case with a pivot table the column would now be a row that would have to hide.  How do I go about doing something like that, is it even possible?
Radoslav
Telerik team
 answered on 22 Nov 2010
2 answers
74 views
I have several checkboxes in a RadGrid and checkBoxe 4 does an AutoPostback to DoSomething(object obj, EventArgs e). 

This works great and I don't want change anything and I use datakeys to get my values from the row.  I also don't want to loop through GridDataItems to find out if checkbox 1-3 are checked.  

<telerik:GridTemplateColumn HeaderText="Comments" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="250px" Groupable="false" ItemStyle-VerticalAlign="Top" UniqueName="CheckBoxes">
  <ItemTemplate>                           
     <asp:CheckBox ID="CheckBox1" Text="CheckBox 1" runat="server" /><br /> 
     <asp:CheckBox ID="CheckBox2" Text="CheckBox 2" runat="server" /><br /> 
     <asp:CheckBox ID="CheckBox3" Text="ChcekBox 3" runat="server" /><br />
     <asp:CheckBox ID="CheckBox4" Text="CheckBox 4" OnCheckedChanged="DoSomething" AutoPostBack="True"  runat="server" />
  </ItemTemplate>
</telerik:GridTemplateColumn>

II would like to see of the checkboxes for 1-3 are checked, since checkbox 4 is firing the postback "DoSomething".
protected void DoSomething(object obj, EventArgs e)
 {
    CheckBox checkBox1 = (CheckBox)obj;
    GridDataItem checkedOffer = (obj as CheckBox).NamingContainer as GridDataItem;
     if ((obj as CheckBox).Checked)
        {
          // I need to find the other checkboxes in here when someone clicks on CheckBox 4
        }
 }

Thank you in advance!
Mike
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
131 views
Hi,
Is it possible to add / Edit a node with treelistview?
Sebastian
Telerik team
 answered on 22 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?