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

private void CreateToolTip()
 {
  GridDataItem DataItem;
 
  int iPageIndex = rgSNLoc.CurrentPageIndex;
  int iPageSize = rgSNLoc.MasterTableView.PageSize;
  int iFactor = iPageIndex * iPageSize;

  for (int i = iFactor; i < rgSNLoc.MasterTableView.Items.Count + iFactor; i++)
  {
   DataItem = rgSNLoc.MasterTableView.Items[i - iFactor] as GridDataItem; 

   if (sMultiAddr[i].Length == 1)
   {
    DataItem["loc_name"].ToolTip = sMultiAddr[i][0];
   }
   else
   {
    for (int j = 0; j < sMultiAddr[i].Length; j++)
    {
     if (j == sMultiAddr[i].Length - 1)
      DataItem["loc_name"].ToolTip = sMultiAddr[i][j];
     else
      DataItem["loc_name"].ToolTip = sMultiAddr[i][j] + "\n\n";
    }
   }
  }
 }

I wrote the above function and put it in the "PreRender" event handler of the RadGrid. What I want to do is to assign a unique tooltip to each row of a specified column in the grid, and the tooltip will still exist correctly even the user change the page size or switch to another page of the grid dynamically. However, if the user sort on a column, the value of the tooltips will become wrong. So how can I keep the tooltips correctly in this case? Thanks.

Iana Tsolova
Telerik team
 answered on 19 Aug 2008
3 answers
126 views
I want to show a popup or a message box on client mouseover on one particular menu item.
How can i establish this.

Can someone help.
Helen
Telerik team
 answered on 19 Aug 2008
1 answer
93 views
Hi,

I have implemented custom ragprogress area template by getting help from telerik team.

The progress area works just great. I have one ASP .NET Button inside this template. The ID is set to "CancelButton".

The cancel works fine in IE, but when I hit cancel in Firefox 3, it doesn't cancel though it shows little flicker on area.
I have to hit cancel 2 times in Firefox 3 in order to actually cancel the file upload.

Am I supposed to call any clientscript function on the hit of cancel button or I'm missing something else?

Thanks,
Chirag
Veselin Vasilev
Telerik team
 answered on 19 Aug 2008
1 answer
117 views

I have found an issue trying to change the content of a RadDock after the dock has been moved.  Specifically, I can change the content with server-side code prior to moving the RadDock around on the page...after I move it, I get the following error:


Sys.InvalidOperationException: Two components with the same id 'RadDock1' can't be added to the application.

Here's the code for a very simple example is below. One RadDock and buttons. 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">

<telerik:RadDock ID="RadDock1" runat="server" Width="300px">

<ContentTemplate>

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

</ContentTemplate>

</telerik:RadDock>

<br />

<br />

<br />

<asp:Button ID="Button1" runat="server" Text="Button" />

</telerik:RadAjaxPanel>


Clicking the button changes the text of the label inside the RadDock:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

label1.text =

"1"

End Sub



To demonstrate the bug: Load the page, click the button. The text inside the RadDock changes correctly. Now drag the RadDock to somewhere else on the page and click the button again. The JavaScript error listed above occurs.


Is this not correct use of this control? Is there something I'm missing?

Thanks,
david

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 19 Aug 2008
3 answers
158 views
Hi,

I am unable to localize the button and labels of RadSpell control. According to the following link http://www.telerik.com/DEMOS/ASPNET/Prometheus/Spell/Examples/Localization/DefaultCS.aspx. I should be able to localize buttons and labels of RadSpell control by just changing "Language" property. I have pasted my code below. Please let me know the changes I need to make in my code.

<telerik:RadSpell ID="RadSpell1" Runat="server" ButtonType="LinkButton"

ControlToCheck="txtBox" Language="fr-FR" SupportedLanguages="fr-FR" DictionaryPath="~/App_Data/RadSpell/" CssClass="footertext" Skin="WebBlue" />


Thanks,
Mariyam

Rumen
Telerik team
 answered on 19 Aug 2008
8 answers
472 views
Hi, I want to start with an empty grid where the user can select a commanditem to start adding things to the grid. My problem is that the commanditemdisplay only appears if there are items in the grid.

How do I get the commands to show when the grid is empty?
Yavor
Telerik team
 answered on 19 Aug 2008
1 answer
119 views
I'm tying to figure out how you appended the appointmentId in the sample live demo project ToolTipZoneId.

I don't see anything in the aspx file related to the argument being passed into this function?

Protected Sub RadToolTipManager2_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)  
            Dim aptId As IntegerInteger = Integer.Parse(e.TargetControlID.Split("_"C)(1))  
            Dim apt As Appointment = RadScheduler1.Appointments(aptId)  
            Dim toolTip As AppointmentToolTip = DirectCast(LoadControl("AppointmentToolTip.ascx"), AppointmentToolTip)  
            toolTip.TargetAppointment = apt 
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(toolTip)  
        End Sub 

Thanks, Burl
Tsvetie
Telerik team
 answered on 19 Aug 2008
1 answer
166 views
SharePoints built in Reusable Content (MOSSTemplateManager) dows not seem to work as it should. It seems that the text is copied into the editor instead of a link to it. This means that wen updating the source-item the text on the pages will continue having the old text.

Is this a bug or was it never intended to work as the OOB editor?

Found the answer here: http://www.telerik.com/community/forums/thread/b311D-bkaekk.aspx
George
Telerik team
 answered on 19 Aug 2008
5 answers
124 views
hello,

 i am using the radgrid inside a multi page view with LINQ and the paging style set to slider. the sorting function for the grid only works on the first and last pages of the results. If i select any other grid page the grid displays no data


ASPX

<telerik:RadTabStrip Skin = "Sunset" MultiPageID="RadMultiPage1" ID="RadTabStrip1" runat="server">

<Tabs>

<telerik:RadTab Text="General">

</telerik:RadTab>

<telerik:RadTab Text="Tools">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage1" runat="server">

<telerik:RadPageView ID = "RadPageView1" runat = "server" >

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

<table style="width:100%;">

<tr><td>Test 1</td><td>&nbsp;</td><td>&nbsp;</td></tr>

<tr><td colspan="3">

<telerik:RadGrid OnSortCommand="RadGrid1_SortCommand" AllowSorting="True"

AllowPaging = "true" PageSize = "5" AutoGenerateColumns = "False" ID="RadGrid1" runat="server"

Skin="Sunset" Width="275px" onneeddatasource="RadGrid1_NeedDataSource">

<MasterTableView DataKeyNames="customer_id" >

<Columns>

<telerik:GridBoundColumn DataField="customer_id" HeaderText="QA Number" >

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="customer_name" SortExpression = "customer_name" HeaderText="Can Reply" >

</telerik:GridBoundColumn>

</Columns>

</MasterTableView>

<PagerStyle Mode="Slider"></PagerStyle>

</telerik:RadGrid>

</td></tr>

<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

</table>

</ContentTemplate>

</asp:UpdatePanel>

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server">

<table style="width:100%;">

<tr><td>Test 2</td><td>&nbsp;</td><td>&nbsp;</td></tr>

<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

</table>

</telerik:RadPageView>

</telerik:RadMultiPage>

ASPX.CS

protected void Page_Load(object sender, EventArgs e)

{

List<gen_customer> customers = (from c in db.gen_customers

where c.customer_id < 103

select c).ToList<gen_customer>();

RadGrid1.DataSource = customers;

RadGrid1.DataBind();

}

protected void RadGrid1_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)

{

if (!e.Item.OwnerTableView.SortExpressions.ContainsExpression(e.SortExpression))

{

GridSortExpression sortExpr = new GridSortExpression();

sortExpr.FieldName = e.SortExpression;

sortExpr.SortOrder =

GridSortOrder.Ascending;

e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);

}

}

 

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

{

List<gen_customer> customers = (from c in db.gen_customers

where c.customer_id < 103

select c).ToList<gen_customer>();

RadGrid1.DataSource = customers;

}

 
Konstantin Petkov
Telerik team
 answered on 19 Aug 2008
1 answer
75 views
Hi,

I have One ImageButton
<asp:HyperLink ID="ImgSearchUsr" runat="server" ImageUrl="~/Images/search_user.gif"></asp:HyperLink>
And I will TargetCOntrol Id For One ToolTip..

<telerik:RadToolTip runat="server" ID="RadTTSearch" Sticky="true" ShowEvent="OnMouseOver"
            Width="600px" ManualClose="true" TargetControlID="ImgSearchUsr" RelativeTo="Element"
            EnableViewState="true">
and In toolTip Control Its Contain One Search Button that is..

<asp:ImageButton ID="ImgSearch" runat="server" ImageUrl="~/Images/search.gif"  OnClick="ImgSearch1_Click" />             
                                 
</ToolTip>

My Problem Is this Within ToolTip Search Button(ImgSearch) OnClick Event Is not Working?

What is the Problem Plse Help Me..

Bye
kallish
Shinu
Top achievements
Rank 2
 answered on 19 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?