Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
195 views
Hi

My RadScheduler (dll Version 2009.1.514.35) is data bound using a WebService that is specified using the WebServiceSettings property.
Now I wanted to implement a resource type which allows multiple resources to be selected as in the example "Implementing A Provider That Supports Multi-valued Resources". Unfortunately the Advanced form that should display CheckBoxes instead of a ComboBox for the multi valued resource type doesn't do that. Instead, it still shows the combobox.
If I change my application to use the provider directly (not via WebService) the checkboxes are displayed.

Am I doing something wrong or is this a bug or unimplemented feature?

Thanks and best regards

Christian
Peter
Telerik team
 answered on 18 Aug 2009
3 answers
73 views
hi all.
i use telerik rad control Q1 2009
my problem are
1.when i create rad grid, i didn't see 3 column with default data in there and  i got a test " no records to display".
2. when i chose "enable paging" header and column data show in one column, header and column data have the same width, but when i chose "enable scrolling" header and data column do not have the same width. the column data was auto fit this with the column. you can see this image to understand more . http://www.mediafire.com/?sharekey=fef78bbb2fe55b6ed2db6fb9a8902bda
if you need more information please tell me.
please help me, thank all
Iana Tsolova
Telerik team
 answered on 18 Aug 2009
1 answer
142 views

I'm loading a tooltip on demand using RadTooltipManager.  The tooltip displays fine, but throws an exception in javascript when it is closed.  I implemented the centering javascript code to center the tooltip in the screen (as in the Telerik example), and that seems to be what is causing the problem.  When I take the call out, there is no error.  But then, my tooltip isn't centered.  Anyone have any ideas what I'm doing wrong?

Thanks!

 

 

 

 

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" HideEvent="ManualClose" Position="Center" ShowEvent="OnClick" RelativeTo="BrowserWindow" OnClientBeforeShow="OnClientBeforeShow" OnAjaxUpdate="OnAjaxUpdate" >

 

 

</telerik:RadToolTipManager>

 

 

 

<asp:Repeater ID="repeaterResults" runat="server" OnItemDataBound="RepeaterResults_ItemDataBound" Visible="False">

 

<HeaderTemplate>

 

<div class="additionalimagestitle">Additional Tree Images:</div>

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

 

<div class="additionalimages_public">

 

<div class="addimage_public"><asp:Image runat="server" ID="Image" /></div>

 

<div class="addimage_public_title"><asp:Label runat="server" ID="AddImageName"><%# Eval("Name").ToString().Replace("_thumb","") %></asp:Label></div>

 

</div>

 

</ItemTemplate>

 

</asp:Repeater>

 

 

 

protected void RepeaterResults_ItemDataBound(object sender, RepeaterItemEventArgs e)

 

{

 

 

 

if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)

 

{

((

 

 

Image)e.Item.FindControl("Image")).ImageUrl = "/upfiles/assets/" + DataBinder.Eval(e.Item.DataItem, "Folder").ToString() + "/" + DataBinder.Eval(e.Item.DataItem, "Name").ToString();

 

((

 

 

Image)e.Item.FindControl("Image")).AlternateText = DataBinder.Eval(e.Item.DataItem, "Name").ToString();

 

System.Web.UI.WebControls.

 

 

Image img = (System.Web.UI.WebControls.Image)e.Item.FindControl("Image");

 

 

 

 

if (!Object.Equals(img, null))

 

{

 

 

 

string val = "http://www.huntertrees.com/" + img.ImageUrl.Replace( "_thumb", "" );

 

 

 

 

this.RadToolTipManager1.TargetControls.Add( img.ClientID, val, true );

 

}

}

}

 

 

 

 

 

 

 

protected void OnAjaxUpdate( object sender, ToolTipUpdateEventArgs args )

 

{

 

 

 

Image img = new Image( );

 

img.ImageUrl = 

 

 

args.Value;
//***** WHEN I COMMENT THE NEXT LINE OUT, NO ERROR IS GENERATED ON CLOSE *****

 

 

 

 

 

img.Attributes[

 

 

"onload"] = "centerTooltip(this); this.onload = null;";

 

args.UpdatePanel.ContentTemplateContainer.Controls.Add( img );

}

 

 

Svetlina Anati
Telerik team
 answered on 18 Aug 2009
6 answers
442 views
Can you provide me a sample code to pass parameters to my webservice using XMLHTTPPanel.

Thanks
Mojo
Top achievements
Rank 1
 answered on 18 Aug 2009
7 answers
139 views
I am finding lots of problems with version 2008.3 1314 and IE 8, is version 2008.3 1314 compatible with IE 8?
Paul
Telerik team
 answered on 18 Aug 2009
1 answer
139 views
Hello.

i was wondering, is it possible(and how) to replace Select button in radupload control with image ?


Thanks, bye!
Princy
Top achievements
Rank 2
 answered on 18 Aug 2009
3 answers
190 views
Hello ,

I am using RadTimePicker. I want to add some of the validations on it.

e.g. when i type only 2:00 in TimePicker. By default it change the time to 2:00 AM. but i want that BY Default it change to 2:00 PM not into AM.

and second question. i want to get the typed text from RadTimePicker. i want to get whatever i typed, right or wrong. e.g. if i type 2:00 , it want to get 2:00 in message box .


Please help me out from this issue.

I will really thakful to you.

Nouman Rafique.
Iana Tsolova
Telerik team
 answered on 18 Aug 2009
1 answer
66 views
I'm following the Multicolumn Combobox example I downloaded from your site.

I can get the following example to work fine on a stand alone ASPX page.  When I introduce it into my environment which has Master Pages and WebUserControls I can't seem to get it working.

Here is the code.  Only difference when it's moved to Masterpages/WebUserControls environment is that the Script Manager is on the main Master Page.  Any ideas?

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
<!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>  
    <style type="text/css">  
        .column  
        {  
            float: left;  
            text-align: left;  
        }  
    </style>  
</head>  
<body>  
    <form id="form1" runat="server">  
    <div>  
        <asp:ScriptManager ID="smMain" runat="server">  
            <Scripts>  
                <asp:ScriptReference Path="~/js/prototype-1.6.0.2.js" />  
                <asp:ScriptReference Path="~/js/comboClientSide.js" />  
            </Scripts>  
        </asp:ScriptManager>  
 
        <script type="text/javascript">  
            var cb;  
            function cb_onDataBound(pComboboxItem, pDropDownLine) {  
                var customAttributes = pComboboxItem.get_attributes();  
 
                pDropDownLine.update(  
                '<span class="column" style="width:180px;">' + pComboboxItem.get_text() + '</span>'  
                + '<span class="column" style="width:100px;">' + customAttributes.getAttribute("City") + '</span>'  
                + '<span class="column" style="width:100px;">' + customAttributes.getAttribute("Region") + '</span>'  
                + '<span class="column" style="width:100px;">' + customAttributes.getAttribute("SubRegion") + '</span>'  
                + '<span class="column" style="width:100px;">' + customAttributes.getAttribute("Country") + '</span>'  
            );  
            }  
            function pageLoad(sender, args) {  
                initComboExtensions();  
                cb = $find("<%= RadComboBox1.ClientID %>");  
                cb.onDataBound = cb_onDataBound;  
            }  
 
     
        </script>  
 
        <table border="0" width="100%" cellpadding="10px" bgcolor="#84a1c3">  
            <tr>  
                <td>  
                    <font color="black">&nbsp;<b>Information</b></font><br />  
                    <br />  
                    <hr />  
                </td>  
            </tr>  
        </table>  
        <table border="0" width="100%" cellpadding="10px" bgcolor="#84a1c3">  
            <tr>  
                <td>  
                    <br />  
                    <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="300px" Height="200px" 
                        DropDownWidth="950px" EnableLoadOnDemand="true" EnableItemCaching="true" OnClientItemsRequesting="OnClientItemsRequesting" 
                        OnClientItemsRequested="OnClientItemsRequested" OnClientDropDownOpening="OnClientDropDownOpening">  
                        <ExpandAnimation Type="none" />  
                        <CollapseAnimation Type="none" />  
                        <WebServiceSettings Path="~/Inventory/Webservices/wsInventory.asmx" Method="SearchCatalog" />  
                        <HeaderTemplate>  
                            <ul style="list-style: none">  
                                <li><span class="column" style="width: 180px;">Name</span> <span class="column" style="width: 100px;">  
                                    City</span> <span class="column" style="width: 100px;">Region</span> <span class="column" 
                                        style="width: 100px;">SubRegion</span> <span style="width: 100px;">Country</span>  
                                </li>  
                            </ul>  
                        </HeaderTemplate>  
                    </telerik:RadComboBox>  
                </td>  
            </tr>  
        </table>  
    </div>  
    </form>  
</body>  
</html> 

 <WebMethod()> _  
    Public Function SearchCatalog(ByVal context As RadComboBoxContext) As RadComboBoxData  
 
        Dim BLL As New Inventory  
        Dim oDT As DataTable = BLL.SearchCatalog(context.Text)  
 
        Dim comboData As New RadComboBoxData()  
        Dim result As New List(Of RadComboBoxItemData)  
 
        If Not IsNothing(oDT) Then 
            If oDT.Rows.Count > 0 Then 
                For Each oRow As DataRow In oDT.Rows  
                    Dim itemData As New RadComboBoxItemData()  
                    itemData.Text = oRow("Name").ToString()  
                    itemData.Value = oRow("CatalogID").ToString()  
                    itemData.Attributes("City") = oRow("City").ToString()  
                    itemData.Attributes("Region") = oRow("Region").ToString()  
                    itemData.Attributes("SubRegion") = oRow("SubRegion").ToString()  
                    itemData.Attributes("Country") = oRow("Country").ToString()  
                    result.Add(itemData)  
                Next 
            Else 
                Dim itemData As New RadComboBoxItemData()  
                itemData.Text = "No Results..." 
                itemData.Value = "0" 
                itemData.Attributes("City") = "" 
                itemData.Attributes("Region") = "" 
                itemData.Attributes("SubRegion") = "" 
                itemData.Attributes("Country") = "" 
 
                result.Add(itemData)  
            End If 
        End If 
 
        comboData.Items = result.ToArray()  
        Return comboData  
 
    End Function 
Veselin Vasilev
Telerik team
 answered on 18 Aug 2009
4 answers
155 views
Hello!

Is it possible to access a RadComboBox's selected value onSelectedIndexChanged event
using FindControl()? Or any other way? The ComboBox is inside an edittemplate.

Thank you for any reply!

Janne P
Jan
Top achievements
Rank 1
 answered on 18 Aug 2009
3 answers
105 views

I upgraded to the latest version, and it appears as if the Web20 skin has changed. I cannot see the text in the grid as the background is white and the text is white. Here is my grid. Is there something I need to add to have the text black so it shows up?

Thanks,
Susan

 

 

<telerik:RadGrid ID="TeamGrid" runat="server" GridLines="None" Skin="Web20" width="700px">

 

 

 

 

 

<ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">

 

 

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

 

<MasterTableView DataKeyNames="TeamKey" AutoGenerateColumns="false" TableLayout="auto">

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="TeamName" HeaderText="Team Name"/>

 

 

 

 

 

<telerik:GridBoundColumn DataField="NbrWon" HeaderText="Wins"/>

 

 

 

 

 

<telerik:GridBoundColumn DataField="NbrLost" HeaderText="Losses"/>

 

 

 

 

 

<telerik:GridBoundColumn DataField="PointsFor" HeaderText="Points For"/>

 

 

 

 

 

<telerik:GridBoundColumn DataField="PointsAgainst" HeaderText="Points Against"/>

 

 

 

 

 

<telerik:GridBoundColumn DataField="WLPercent" HeaderText="Pct"/>

 

 

 

 

 

</Columns>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

</telerik:RadGrid></td></tr>

 

Dimo
Telerik team
 answered on 18 Aug 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?