Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views
I have a page containing four ListBoxes along with several other controls. When the user resizes IE7, the all of the ListBox controls disappear. All other controls are fine - including other Telerik controls. This only occurs in IE7. Everything is fine in FF, Chrome and Safari.

Anyone else experience this? Any help is appreciated.

Thanks,
Brian
Naresh
Top achievements
Rank 1
 answered on 14 May 2010
3 answers
91 views
Hi,

I have hierarchy grid. On load of the screen detail table does not exists for some rows in the Rad Grid but still Expand image appears. On click of it nothing will be loaded page will be refreshed and expand button wil disappers.

Expected behaviour:
On Load itself expand button should not be displayed if no detail table exists.

Why is this problem in Telerik Version

Version=2010.1.413.40


Is there any fix for my problem?
Pavlina
Telerik team
 answered on 14 May 2010
1 answer
117 views
I've discovered a bug with RadEditor when copying and pasting a link, where the link's href starts with a slash. In Firefox, the pasted link is preceded by any number of ../ and part of the path removed, and in IE, the link is changed to an absolute path including the domain.

Steps to reproduce.

  1. Visit: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
  2. In the first paragraph, change the Sharepoint link's href to: /products/aspnet-ajax/sharepoint.aspx
  3. Copy the paragraph
  4. Paste the paragraph somewhere else in the editor
  5. View the new href of the Sharepoint link in the pasted paragraph

Results

Firefox
Link href becomes: ../../../../products/aspnet-ajax/sharepoint.aspx

IE
Link href becomes: http://demos.telerik.com/products/aspnet-ajax/sharepoint.aspx

Expected result:

Link to remain as /products/aspnet-ajax/sharepoint.aspx

Regards

Matt

Rumen
Telerik team
 answered on 14 May 2010
1 answer
64 views
I have a radgrid with inline editing. All works fine and the database updates server side with each row. I have a submit button that I do not want to validate as true unless all rows in the grid have been completed (i.e. have a value in every column for every row). Is there a way to validate the grid is fully filled out via client side script?

Thanks in advance!

-tk
Radoslav
Telerik team
 answered on 14 May 2010
1 answer
103 views
I'm attempting to use a .png file for the background image of a drop down in a RadMenu control. It's just a 1px x 1px black square with a small amount of transparency and repeated, but when I view in a browser, the dropdown background is a solid gray color.

Any ideas? Thanks!

div.RadMenu_main_nav .rmItem .rmGroup {
    background-image:url('img/nav_hover_bgd.png');
    background-repeat:repeat;
    border: 1px solid #FFF;
}
Kamen Bundev
Telerik team
 answered on 14 May 2010
2 answers
94 views
Hi,

What would be the server side equivalent for set_currentPageIndex() if there is any ?

Something like :

Protected Sub RadListView1_PreRender(ByVal sender As Object, ByVal e As EventArgs) Handles RadListView1.PreRender 
 
 
        For Each item As RadListViewDataItem In RadListView1.Items 
            Dim customerID As String = item.GetDataKeyValue("id_inscrit").ToString() 
            If customerID = Request.QueryString("id_inscrit") Then 
'RadListView1.???? -> Go to the choosen page 
                 
            End If 
        Next 
        RadListView1.Rebind() 
 
    End Sub 


Thank You
Arnaud
arnaud
Top achievements
Rank 1
 answered on 14 May 2010
1 answer
95 views
I'm having trouble getting a group total on a column and I'm not sure what the best way to go about it is.  From my table I"m selecting the fields I need and a calculated field.

Select claims, claimsprocessed, claimsprocessed/claims [percentclaims]...........................

I have the aggregate set to sum for claims and claimsprocessed
I set the aggregate to custom for percentclaims

What I'd like to do is get the totals  for claims and claimsprocessed from the GridGroupFooterItem and calculate the correct total percentage.
Something like:
protected void ARGrid1_CustomAggregate(object sender, GridCustomAggregateEventArgs e)  
{  
   if (e.Item is GridGroupFooterItem)  
   {  
      GridGroupFooterItem itm = (GridGroupFooterItem) e.Item;  
      int totclaims = //Get total claims from footer  ?????
      int  totprocessed = //Get total processed claims from footer  ??????
      e.Result = totprocessed/totclaims;  
 
 
    }  
 
I'm not sure how to get the totals for claims and claimsprocessed out of the GridGroupFooter.  Is that possible? Could you give me an example.

I've looked at the documentation on CustomAggregrates and figure I may have to go the route explained at the bottom of this document: http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html ,but I figured I might ask to see if what I'm trying to do is possible.

Thanks
Michael
Top achievements
Rank 1
 answered on 14 May 2010
5 answers
887 views
I have a web service which will return an html string to the tooltip panel.  The tooltip panel does not render html but simply displays the string.  How can I get the panel to render the html string?  
Thanks!
 
RadTooltipManager

<

 

 

rad:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" Width="250" Height="350" runat="server" Position="MiddleRight" Sticky="true" Skin="Web20">

 

 

 

<WebServiceSettings Path="../ToolTip.asmx" Method="SbuDetailHtml" />

 

</

 

 

rad:RadToolTipManager>

 



onMouseOver

<

 

 

a href="#" runat="server" id="hyp" onmouseover="ShowSBUToolTip(this)" sbuid="104">RPTT Detail</a>

 



Javascript

function

 

 

ShowSBUToolTip(element) {

 

 

 

var tooltipManager = $find("mgr_gwpctGrid_ctGrid_RadToolTipManager1");

 

 

 

var sbuid = element.getAttribute("sbuid");

 

 

 

 

//If the user hovers the image before the page has loaded, there is no manager created

 

 

 

if (!tooltipManager) return;

 

 

 

//Find the tooltip for this element if it has been created

 

 

 

var tooltip = tooltipManager.getToolTipByElement(element);

 

 

 

//Create a tooltip if no tooltip exists for such element

 

 

 

if (!tooltip) {

 

tooltip = tooltipManager.createToolTip(element);

tooltip.set_value(sbuid);

 

}

 

 

//Let the tooltip's own show mechanism take over from here - execute the onmouseover just once

 

element.onmouseover =

 

null;

 

 

 

//show the tooltip

 

tooltip.show();

}

Web Service Method

 

[

 

WebMethod]

 

 

 

public String SbuDetailHtml(object context)

 

{

 

 

IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;

 

 

 

string sbuid = ((string)contextDictionary["Value"]);

 

 

 

String _rtnStr = String.Empty;

 

 

 

String _urlStr = String.Format("http://localhost:8082/portfolio/sbudetail.aspx?id={0}", sbuid);

 

 

 

HttpWebRequest _request = (HttpWebRequest)WebRequest.Create(_urlStr);

 

 

 

Char[] _read = new Char[256];

 

_request.Credentials = System.Net.

 

CredentialCache.DefaultNetworkCredentials;

 

_request.PreAuthenticate =

 

true;

 

_request.UserAgent = _request.UserAgent;

 

 

HttpWebResponse _response = (HttpWebResponse)_request.GetResponse();

 

 

 

Stream resStream = _response.GetResponseStream();

 

 

 

Encoding encode = System.Text.Encoding.GetEncoding("utf-8");

 

 

 

StreamReader readStream = new StreamReader(resStream, encode, true, 2000);

 

 

 

Int32 count = readStream.Read(_read, 0,_read.Length);

 

 

 

String str = Server.HtmlEncode(" ");

 

 

 

while (count > 0)

 

{

 

 

// Dumps the 256 characters on a string and displays the string to the console.

 

 

 

 

 

 

 

String strRead = new String(_read, 0, count);

 

str = str.Replace(str, str + Server.HtmlEncode(strRead.ToString()));

count = readStream.Read(_read, 0, 256);

}

 

 

 

// return what was found

 

 

 

 

 

_rtnStr = str.ToString();

resStream.Close();

readStream.Close();

 

 

return _rtnStr;

 

}

 

 

Tooltip panel does not render html, but simply displays the string...

Petio Petkov
Telerik team
 answered on 14 May 2010
1 answer
108 views
How will i gave a server path in FileExplorer like "//servername/foldername/foldername" ?
Petio Petkov
Telerik team
 answered on 14 May 2010
5 answers
175 views
Thanks for your help, which really help me a lot. I have a new question about closed radwindow.

After close radwindows, they disappeared from the window, however when I used the code as following. var allWindows = GetRadWindowManager().GetWindows();

allwindows still includes the closed radwindow. I add the ownd.close(), it does not work, how can I get the closed window out of the collection list?

Thanks again.
yao wang
Top achievements
Rank 1
 answered on 14 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?