Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
217 views
Hi,

Is there any way to let the rotator size itself according to its contents (images in particular)? I populate the rotator with asp:Images, but if (item)height/(item)width are not specified it just defaults to 200x200 pixels regardless of the image size.

Regards,
Sjur
Fiko
Telerik team
 answered on 29 Jul 2009
2 answers
130 views
I am using a RadComboBox on an ASPX page that I am accessing through a RadWindow.

When I do this, the text that is selected in the combobox is slightly grayed out and when using the Black skin, you cannot even see the text until you hover over the text box.

I am using the latest release (Q2 2009) and this is easily reproducible.  Simply create a page with an input button that opens up a RadWindow through javascript, setting the URL to the page that contains a combobox with a few items hardcoded into it.  To see the problem easiest, set the skin to Black for the Combobox.
Alex Gyoshev
Telerik team
 answered on 29 Jul 2009
2 answers
219 views
I'm using a Rotator to display a stock ticker using the StockQuoteService.    Everything works fine, but I want to be able to display an Up or Down image in the Rotator based on the change in the stock quote.   I'm following the example that I found online for the RadGrid, but can't get it to work with the Rotator.      Below is the code from the Grid example that does exactly what I need.   How can this be applied to a Rotator?

 Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = CType(e.Item, GridDataItem)
            Dim cell As TableCell = item("Change")

            Dim directionImage As System.Web.UI.WebControls.Image = CType(cell.FindControl("DirectionImage"), System.Web.UI.WebControls.Image)
            Dim changeText As Label = CType(cell.FindControl("ChangeLabel"), Label)
            Dim change As [Decimal] = [Decimal].Parse(CType(e.Item.DataItem, DataRowView).Row("Change").ToString(), CultureInfo.InvariantCulture)
            If change > 0 Then
                directionImage.ImageUrl = "Images/up.gif"
                directionImage.AlternateText = "up"
                changeText.Style("color") = "green"
            ElseIf change < 0 Then
                directionImage.ImageUrl = "Images/down.gif"
                directionImage.AlternateText = "down"
                changeText.Style("color") = "red"
            Else
                directionImage.Visible = False
            End If
        End If
    End Sub

Svetlina Anati
Telerik team
 answered on 29 Jul 2009
4 answers
506 views
Hi there,

I'm having problems with opening the hyperlink manager when the external CSS file linked to in the header points to a different domain.  Basically, if the external CSS is not  linked from the same domain, the hyperlink manager is totally unresponsive.

Specifically, here's my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="radEditor_test.aspx.cs" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
     
    <link rel="stylesheet" type="text/css" href="http://a_different_domain.com/styles.css" /> 
     
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
    <asp:ScriptManager ID="ScriptManager" runat="server" /> 
    <telerik:RadEditor ID="radEditor" runat="server" Width="100%" EnableEmbeddedSkins="true" 
        ToolsFile="~/Editor/ToolsFile.xml" EditModes="Design" NewLineBr="false" 
        StripFormattingOnPaste="MSWordNoFonts, Css, Font, Span" ExternalDialogsPath="~/Editor" /> 
    </div> 
    </form> 
</body> 
</html> 

If I copy the stylesheet to a space on the same domain as the page, then the hyperlink manager works as expected.  However, this is not an option given the way our system is set up.

Is there anyway I can get the hyperlink manager to work when the CSS files is linked from a different domain?

Thanks,

DJ
Rumen
Telerik team
 answered on 29 Jul 2009
1 answer
123 views
Hi,

I have a tabstrip in my masterpage,  who let me switch between contentes pages by a responde.redirect when i click on a tab.

The problem i have, is that the whole page is refreshed, even the tabstrip


Here is my masterpage structure :


<head>
<contentpage head things>
</head>

<body>
< Main image of the site>
<radajaxmanager>
<radscriptmanager>
<Radtabstrip>
<content page1>
</body>

I want to click on a tab, and to refresh only the content page and the Radtabstrip.
I dont want to refresh the whole page, neither the image on the top of the site.


How can i do for this?

i tried to use "ajax manager" on tabstrip to control the tabstrip_Id/contentpage_Id but there is a whole refresh.


Paul
Telerik team
 answered on 29 Jul 2009
1 answer
116 views
Hi,,
I'm using RadPanelBar and I need to have 3 radpanelitems and in each radpanel item, i'm having a radgrid.
1) how do i get the arrow on the radpanel item(i'm not gettin that image)

2) I need only one radpanelitem to be seen at a time. if i select a radpanelitem, theremaining shoul collapse. how do i do this.

3)once when a radpanel item is already expaned with its rid visible, again clciking on the same radpanel item should collapse it. how do i do this?? pls help me with these 2 questions.

Pls find my ascx code where i implemented this. 

 

<telerik:RadPanelBar ID="m_ctlRecipientPanelBar" runat="server"

 

 

Skin="Outlook"

 

 

 

EnableViewState="true"

 

 

ExpandMode="SingleExpandedItem"

 

 

onitemclick="ctlPanelBar_ItemClick"

 

 

Width="100%"

 

 

Height ="100%" >

 

 

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem runat="server"

 

 

Text="Recipient Group"

 

 

Expanded="true"

 

 

EnableViewState="true"

 

 

 

Value= "RadPanelRecipientGroup">

 

 

 

<ItemTemplate>

 

 

 

<telerik:RadGrid ID="m_radRecipientGroupGrid" runat="server"

 

 

BorderStyle="Solid"

 

 

BorderWidth="1px"

 

 

CellPadding="0"

 

 

AllowMultiRowSelection="True"

 

 

HorizontalAlign="Left"

 

 

GridLines="Horizontal">

 

 

 

<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"

 

 

PagerStyle-Mode="NextPrevNumericAndAdvanced" PageSize="10">

 

 

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">

 

 

<HeaderStyle Width="20px">

 

 

</HeaderStyle>

 

 

 

</telerik:GridClientSelectColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True"

 

 

UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="true" />

 

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem runat="server"

 

 

Text="Recipient Search"

 

 

EnableViewState="true"

 

 

Value = "RadPanelRecipientSearch">

 

 

<ItemTemplate>

 

 

<telerik:RadGrid ID="m_radRecipientSearchGrid" runat="server"

 

 

BorderStyle="Solid"

 

 

BorderWidth="1px"

 

 

CellPadding="0"

 

 

AllowMultiRowSelection="True"

 

 

 

HorizontalAlign="Left"

 

 

GridLines="Horizontal">

 

 

 

<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"

 

 

PagerStyle-Mode="NextPrevNumericAndAdvanced" PageSize="10">

 

 

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">

 

 

<HeaderStyle Width="20px">

 

 

</HeaderStyle>

 

 

 

</telerik:GridClientSelectColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True"

 

 

UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="true" />

 

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadPanelItem>

 

 

<telerik:RadPanelItem runat="server" Text="Recipients" EnableViewState="true">

 

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelBar>

Pls help me .

Thanks,
ZR

 

Paul
Telerik team
 answered on 29 Jul 2009
2 answers
125 views
Hi,

I am facing two issues with the Grouping feature in the grid. My dataset looks like this:

Vehicle Type

Vehicle No.

US Journeys

UK Journeys

% US Journey

US Cargo

UK Cargo

% US Cargo

A

111

5

5

50

4

6

40

A

222

2

6

25

5

5

50

B

333

3

6

33.33

6

6

50

B

444

9

2

81.82

5

9

35.71


Now, I need to group by Vehicle Type (which has been done) and find out -
a. Total US Journeys - Done
b. Total UK Jouneys - Done
c. % Total US Journeys - ??
d. Total US Cargo - Done
b. Total UK Cargo - Done
c. % Total US Cargo - ??

Issue 1: How do I get the Percentage Columns? Do I predefine them (as in specify a separate column in "SelectField" collection as assign the values in the ItemDataBound event)? If yes, what should I mention in the fieldname, fieldalias sections of this particular column?

Issue 2: In the Group header, before the "Calculated Values" I also get the FieldName/FieldAlias (Total US Journeys:25). Is there a way to turn off the column name text? I know I can manipulate the DataCell.Text which I dont want to as this would be not a good standard.

Thanks,
Saurabh
Tsvetoslav
Telerik team
 answered on 29 Jul 2009
6 answers
186 views
Hi, I am using RadWindow for login. Is it possible for radwindow to use SSL even if the page it is launched from is not https?

Thanks,
Matt
Adam Hubble
Top achievements
Rank 1
 answered on 29 Jul 2009
3 answers
222 views
Good Morning,
I have modified the Telerik demo outlining a customer ContentProvider for the FileExplorer to only display files with a ".pdf" extension. However, the modified demo code is not properly selecting these files, returning everything in the assigned InitialPath, including folders.

Code Behind:
PageLoad:

 

Dim path As String

 

 

If upsRadTreeView.SelectedValue = Nothing Then

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString)

 

 

Else

 

path = Page.ResolveUrl(

"~/CustomerData/" & Profile.CustomerNumber.ToString & "/UPSData/" & upsRadTreeView.SelectedNode.Value.ToString)

 

 

End If

 

 

Dim paths As String() = {path}

 

documentsRadFileExplorer.InitialPath = path

documentsRadFileExplorer.Configuration.UploadPaths = paths

documentsRadFileExplorer.Configuration.ViewPaths = paths

documentsRadFileExplorer.Configuration.ContentProviderTypeName =

GetType(CustomProvider).AssemblyQualifiedName

 

Public

 

Class CustomProvider

 

 

Inherits FileSystemContentProvider

 

 

Public Sub New(ByVal context As HttpContext, ByVal searchPatterns As String(), ByVal viewPaths As String(), ByVal uploadPaths As String(), ByVal deletePaths As String(), ByVal selectedUrl As String, _

 

 

ByVal selectedItemTag As String)

 

 

MyBase.New(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, _

 

selectedItemTag)

 

End Sub

 

 

 

 

 

Public Overloads Overrides Function ResolveDirectory(ByVal path As String) As DirectoryItem

 

 

Dim baseDirectory As DirectoryItem = MyBase.ResolveDirectory(path)

 

 

Dim files As New List(Of FileItem)()

 

 

' Filter the files

 

 

 

 

 

For Each file As FileItem In baseDirectory.Files

 

 

If file.Extension = ".pdf" Then

 

 

 

 

files.Add(file)

 

End If

 

 

 

 

 

Next

 

 

 

 

 

Dim newDirectory As New DirectoryItem(baseDirectory.Name, baseDirectory.Location, baseDirectory.FullPath, baseDirectory.Tag, baseDirectory.Permissions, files.ToArray(), _

 

baseDirectory.Directories)

 

Return newDirectory

 

 

End Function

 

 

End

 

Class

 


Please advise.

Thanks,
Erik
Fiko
Telerik team
 answered on 29 Jul 2009
1 answer
97 views
Hi Telerik,
I have a checkbox and textbox which present inside <formtemplate> of <EditFormSettings> of Radgrid. In Javascript I want to validate the checkbox and textbox. When I check the checkbox the textbox should visible. How do I do this validation in clientside using javascript.

Please reply me.

Thanks,
Monalisa

Princy
Top achievements
Rank 2
 answered on 29 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?