Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 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
185 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
62 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
149 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
93 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
1 answer
128 views
HI

I have a input box which should accept

1. +/- in the first place (+ is the default)
2. Total length is 6 including +/- and :
3. second and third numbers
4. Fourth is :
5. fifth and sixth should be numbers

+/- hr:mm format

mm should be less than 60
no restriction on hr format . It can be more than 24 hrs too

Please provide a sample code.

Regards
Sreedhar Ambati
Dimo
Telerik team
 answered on 18 Aug 2009
3 answers
143 views
Hello,

When I enable RadCompression by adding
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
to web.config and when I try to access page which not exists (something like http://WEBPAGEURL/123rawssas) instead of IIS error page:

Server Error in '/' Application.

The resource cannot be found


I'm getting weird output (it is longer):

��������`I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h��������y�(��G�d^ϲe��!z���Ѳ�Y)5��G��A�8�VeU?������/I=�����Yd�E��n�գt����/�q� �IU�n �ۻ�/No������N�|� �&�} �0��e�

any idea how to fix it?

IIS7 with Application Pool in Integrated Pipeline mode. Issue can be reproduced on produciton server too (right now I'm trying to solve id on localhost).
Rosen
Telerik team
 answered on 18 Aug 2009
3 answers
106 views
Hi,

I have a RadToolBarButton List, Export to Excel, Word, Csv and Pdf. I try to export the data from RadGrid, there are no issue for all the button except CSV. My Grid have one column with RadDateTimePicker and RequiredFieldValidator. When I click Csv button, I got the following error. I have already added CauseValidation = "false" but still no changes.

Unable to find control id 'radprocessLogEffectiveStartDate' referenced by the 'ControlToValidate' property of 'RequiredFieldValidator1'.

radGrid.ExportSettings.ExportOnlyData =

false;

 

 

radGrid.MasterTableView.ExportToCSV();



Thanks,
Alex
Daniel
Telerik team
 answered on 18 Aug 2009
1 answer
883 views
Hi,

I am trying to achieve the following functionality. 
1. Display only the calendar pop up image and make the textbox associated with it invisible. For this I am using RadDatePicker control  and managed to hide the textbox and show only the pop up.
2. Whenever a date is selected on the pop up, I want to add the selected date item to a drop down on the server side. The Dropdown is an asp.net control.
3. I am using the onselecteddatechanged event of the RadDatePicker with its AutoPostBack set to true. For trial runs, I am writing the Old date and New date in a textBox.
      My problem is that when the date is selected on the calendar pop up for the first time, a Postback occurs and the text in the textbox is written with Old Date as null and new date as selected from the pop up. However on subsequent attempts when i select a different date from the calendar pop up there is nothing happening. No postback takes place and the textbox text remains same. 
Reuqest you to kindly help me with this problem
Shinu
Top achievements
Rank 2
 answered on 18 Aug 2009
1 answer
145 views
Hi there,

I need to set the default path, when i want to choose a document from a library with the document manager tool.
Is it possible to set the default viewpath? Now it starts in the root of the site.

In which config file do I need to enter it? And what?

Kind regards,
christian
Stanimir
Telerik team
 answered on 18 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?