Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views
Hi,

How can I set the RadToolTip Target Control ID to another control's ID from JavaScript?

Thank you,
Freddy.
Princy
Top achievements
Rank 2
 answered on 03 Apr 2013
3 answers
375 views
I have a RadGrid that has grouping enabled. The column headers currently display a default tooltip "Drag to group or reorder". I want to replace this tooltip for one of the column headers with the text say "custom tooltip"  and leave the other column headers with the default tool tip. I tried to set the custom tooltip for a column named "Template1" using the following code

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
  {
    if (e.Item is GridHeaderItem)
        {
                GridHeaderItem header = (GridHeaderItem)e.Item;
                header["Template1"].ToolTip = "custom tooltip";
    }
  }

The definition for the grid column is given below,
<telerik:GridTemplateColumn UniqueName="Template1" HeaderText="C">  
   <ItemTemplate>  
    <asp:LinkButton ID="LinkButton1" runat="server" Visible="true" OnClick="LinkButton1_Click1">View</asp:LinkButton>  
   </ItemTemplate>  
</telerik:GridTemplateColumn>

It still displays the default tooltip "Drag to group or reorder" for the "Template1" column.

If I add the following to the <ClientSettings> section of the RadGrid then no tooltip is displayed for none of the columns.

<ClientMessages DragToGroupOrReorder="" />

Any ideas?

Shinu
Top achievements
Rank 2
 answered on 03 Apr 2013
5 answers
439 views
Hi

I have a RadGrid with AjaxManager attached to it, also sometimes a RadAjaxPanel.

However I want a gridbuttoncolumn to NOT postback asynchronously.

How can I do this?
Kiresh
Top achievements
Rank 1
 answered on 03 Apr 2013
1 answer
141 views
I would like to populate a grid the same way that I populate a combo box using datarows from a dataset

The following is the code that I use to populate my combo boxes

using (DataSet dsDept = WSAccess.StepsGlobal_GetCodeTable("codDepartments"))
{
    if (Globals.IsValidDataSet(dsDept))
    {
        foreach (DataRow row in dsDept.Tables[0].Rows)
        {
            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["ID"].ToString());
            combo.Items.Add(rcbi);
 
        }
    }
}

How would I populate a grid.

I thought I could do something like the following.
using (DataSet dsDept = WSAccess.StepsGlobal_GetCodeTable("codDepartments"))
{
    if (Globals.IsValidDataSet(dsDept))
    {
        foreach (DataRow row in dsDept.Tables[0].Rows)
        {
>>>>>>       RadGridItem rcbi = new RadGridItem(row["DESC"].ToString(), row["ID"].ToString());
>>>>>>        RadGrid.Items.Add(rcbi);
 
        }
    }
}
Of course this does not work.

Again I would like to fill in the grid one row at a time.
FYI: This grid contains three columns and could have as many as 200 rows.
I am looking to do this at the PreRender event.

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Apr 2013
1 answer
94 views
Hi Telerik,

We are planning to develop a mobile version of our prominent website which was developed using RadControls. Before we get going, I would like to know the RadControls compatibility and support with mobile devices and associated browsers.

Thanks,
Merlin.
Princy
Top achievements
Rank 2
 answered on 03 Apr 2013
1 answer
156 views
Hi,

Why there is no intellisense provided for JavaScript client side coding? Or any option to enable intellisense for JavaScript too in Visual Studio?

Thanks in Advance,
Damian.
Princy
Top achievements
Rank 2
 answered on 03 Apr 2013
3 answers
325 views
Hi,

How to use only numbers in RadCaptcha?

Thanks,
Joseph.
Princy
Top achievements
Rank 2
 answered on 03 Apr 2013
2 answers
100 views
How Can I set icon to right in RadSchedulerContextMenu:
shahab
Top achievements
Rank 1
 answered on 02 Apr 2013
2 answers
324 views
I have a problem with my link button images.

When the page first comes up, the button displays with no icon.

I move the cursor over the button, and then the icon becomes visible, and remains visible even after I've moved the cursor away.

Here's how I'm creating the buttons.

<telerik:RadButton ID="_btnEdit" runat="server" Text="Change Settings..."
                EnableBrowserButtonStyle="true"
                ButtonType="LinkButton"
                Height="32px"
                >
            <Icon PrimaryIconUrl="~/Images/Edit_16.png" PrimaryIconTop="8" PrimaryIconRight="8" PrimaryIconWidth="32" PrimaryIconHeight="32" />
 </telerik:RadButton>



The bug becomes obvious if you use the Chrome developer tools and see what's actually being rendered.

The image URL is set as "%26#39;/CMS/Images/Edit_16.png"


<span id="ctl00_Main__btnEdit" class="RadButton RadButton_Windows7 rbLinkButton" style="display:inline-block;height:32px;line-height:32px;height:32px;"><span class="rbPrimaryIcon" style="top:8px;right:8px;width:32px;height:32px;background-image:url(%26#39;/CMS/Images/Edit_16.png');"></span><span class="rbText rbPrimary">Change Settings...</span><input id="ctl00_Main__btnEdit_ClientState" name="ctl00_Main__btnEdit_ClientState" type="hidden" autocomplete="off"></span>



Once I move the mouse over the button, the rendering changes to display the correct image URL.

<span id="ctl00_Main__btnEdit" class="RadButton RadButton_Windows7 rbLinkButton" style="display:inline-block;height:32px;line-height:32px;height:32px;"><span class="rbPrimaryIcon" style="top: 8px; right: 8px; width: 32px; height: 32px; background-image: url(http://cms.datmedia.com.au/CMS/Images/Edit_16.png);"></span><span class="rbText rbPrimary">Change Settings...</span><input id="ctl00_Main__btnEdit_ClientState" name="ctl00_Main__btnEdit_ClientState" type="hidden" autocomplete="off"></span>


This was working fine. The problem seemed to occur once I wrote my own login code:this line of code in when the user logs in:

if (Membership.ValidateUser(model.UserName, model.Password))
{
    FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe);



Here is a similar post where somehow cookies interfere with the button images: http://www.telerik.com/community/forums/aspnet-ajax/button/radbutton-with-image-not-showing.aspx



Danail Vasilev
Telerik team
 answered on 02 Apr 2013
3 answers
253 views
<telerik:RadSiteMap ID="OrderRadSiteMap">
       <Nodes>
          <telerik:RadSiteMapNode Value="WeeklyOrder" ">
               <Nodes>
                   <telerik:RadSiteMapNode Value="GenerateOrders" />
  
CodeBehind:
RadSiteMap OrderSiteMap = (RadSiteMap)OrderMenuItem.FindControl("OrderRadSiteMap");

I need to disable the GenerateOrders.   The sitemap is nested into RadMenu, and I have no problem finding it- it's the nodes by value method that I haven't found any documentation on.
Hristo Valyavicharski
Telerik team
 answered on 02 Apr 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?