Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 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
44 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
153 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
423 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
94 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
69 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
127 views
Hi,
Is it possible to add / Edit a node with treelistview?
Sebastian
Telerik team
 answered on 22 Nov 2010
8 answers
296 views
Hi

I am trying to use the radToolTipManager with a radlistbox. Is it possible to use the manager to display a tooltip for each radlisboxitem
Here is my code that I use to add the items to the manager. My OnAjaxUpdate event wont fire att all.

 

protected void chkListRoles_ItemDataBound(object sender, RadListBoxItemEventArgs e) 
  
{
  
if (e.Item is RadListBoxItem) 
  
{
  
(e.Item 
  
  
  
as RadListBoxItem).Attributes["id"] = Guid.NewGuid().ToString(); 
   
string id = (e.Item as RadListBoxItem).Attributes["id"]; 
  
this.radToolTipManager1.TargetControls.Add(id, (e.Item as RadListBoxItem).Value.ToString(), true); 
   
  
}
  
   
  
}

Thank you
Fred

 

Svetlina Anati
Telerik team
 answered on 22 Nov 2010
5 answers
260 views
Hello,

RadControls 2009.1.527.20

I have a RadMenu populated from an XML file:

Default.aspx:
<telerik:RadMenu
    ID="RadMenu_LeftNav"
    runat="server"
    CssClass="RadMenu_LeftNav"
    Flow="Vertical"
    Height="650px"
    Width="138px"
    />

Default.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
    RadMenu_LeftNav.LoadContentFile("~/App_Data/Menus/RadMenu_LeftNav.xml");
}


<?xml version="1.0" encoding="utf-8"?>
<Menu>
  <Group>
    <Item Text="Contacts" ImageUrl="/Images/64x64/Contacts_01.png">
      <Group>
        <Item Text="Create Contact"          NavigateUrl="CreateContact.ascx" />
        <Item Text="Delete Contact"          NavigateUrl="DeleteContact.ascx" />
        <Item Text="Manage Contacts"        NavigateUrl="Manage Contacts" />
        <Item Text="Upgrade To Mailbox" NavigateUrl="UpgradeContact.ascx" />
      </Group>
    </Item>
...
...
  </Group>
</Menu>

The image in the ImageUrl attribute is 96x96 pixels.  The image display outside of the hover highlight.  See the attached screenshot.

I have a few questions:

  • Does the RadMenu support images of various sizes?  If so, how do I implement that?

 

  • Is it possible to have one <ItemTemplate> definition for the root menu item and a different <ItemTemplate> for the child menu items?  If so, how do I implement that, and is it possible to do this when loading the RadMenu from an XML file?

 

  • Where can I find a "complete" definition for the XML file to populate a RadMenu?  I have found various formats on the web for this XML file definition which all work, some are very basic (i.e., just <Items><Item>...</Item></Items> nodes), and some more detailed (i.e., <Menu><Group><Item>...</Item></Group></Menu> nodes).

Thanks,

Randall Price

Yana
Telerik team
 answered on 22 Nov 2010
1 answer
33 views
In a larger application, I have updated from the old RadControls toolset (~2007) to the new AJAX version. Besides I have replaced a RadMenu with a RadToolbar. However in Internet Explorer, some items on the toolbar and on dropdowns invoked on that toolbar have invisible item texts. As soon as the user hovers the mouse over an entry that is invisible, its text appears in light color...

Things work fine in Firefox. However, the main target platform is the all-loved Internet Explorer 6.0...

I'm using the Default Skin and have enabled embedded skins. I do modify the state of the toolbar items through ajax requests a lot. For reference, I have attached two small screenshots to illustrate. Best reagrds,
Helge
lenuweit
Top achievements
Rank 1
 answered on 22 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?