Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
Found a quirk in MakeUrlsAbsolute. A malformed link can create an error ("Error while execting MakeUrlsAbsolute...")

A customer tried to create an email link, but formatted it incorrectly. Paste the following into html view on your editor demo, then switch to design mode and back to html view to trigger the error

<a href="http://www.somebody@test.com/">Somebody</a>
Rumen
Telerik team
 answered on 24 Jan 2013
1 answer
71 views
Hi i am using telerik rad ListBox ,everything working fine but in my case a person can select different no of item ,so the value based on the role of user.
so i just want to know that how can i restrict a user to add more than 'X' items from list.
(Example if user="Admin" maximum no ="4";) 
Thanks in advance

code is as 

<telerik:RadListBox runat="server" ID="rlbSourceWeeklyOff" Height="200px" Width="200px"
                                    AllowTransfer="true" TransferToID="rlbDestinationWeeklyOff" >
                                </telerik:RadListBox>
                                <telerik:RadListBox runat="server" ID="rlbDestinationWeeklyOff" Height="200px" Width="200px">
                                </telerik:RadListBox>
Peter Filipov
Telerik team
 answered on 24 Jan 2013
4 answers
138 views
I'm using  AsyncUpload drag and support functionality and came across a problem when using it. When the files get dragged to a location on the browser, I notice that the file name is different on temp folder location. For example, I have a file named "web logo.jpg". When it is uploaded, the file name becomes "1358784600604web logo.jpg". However, when I retrieve the file name in the code behind, it is correct.

Do you have any idea why this is happening?

Thanks..
Emrah
Top achievements
Rank 1
 answered on 24 Jan 2013
5 answers
704 views
Hi,

I am currently in the process of migrating a GridView to RadGrid. However, I seem to have hit a roadblock with this specific requirement.

Basically, the grid I am working with is actually an editor for the drop down list items for other pages in the site. One of the columns in this grid is, a radio button to specify whether this value should be the default option. i.e., When the <select> element is rendered, whether this row should have it's "selected" attribute set.

As you can figure out, only one row can have this set to true. So, whenever a radio button in this column is checked, the radio buttons in all the other rows need to get unchecked.

In GridView, we have implemented a custom class which inherits from BoundField to get this behavior. But, I can't add this column to RadGrid's columns collection :(
Vladimir Iliev
Telerik team
 answered on 24 Jan 2013
3 answers
1.1K+ views

Can you tell me how I can hide the First, Previous, Next, and Last pager buttons in a radgrid?

I am able to hide the Page Size related controls in the code behind by using this code:
            Label changePageSizeLabel = (Label)e.Item.FindControl("ChangePageSizeLabel");
            changePageSizeLabel.Visible = false;
            Button changePageSizeLinkButton = (Button)e.Item.FindControl("ChangePageSizeLinkButton");
            changePageSizeLinkButton.Visible = false;
            RadNumericTextBox changePageSizeText = (RadNumericTextBox)e.Item.FindControl("ChangePageSizeTextBox");
            changePageSizeText.Visible = false;

And I am able to hide the text that displays next to those buttons in the markup by using this code:
<PagerStyle Mode="NextPrevNumericAndAdvanced" CssClass="quotePager" Position="TopAndBottom"  HorizontalAlign="Center" 
                        FirstPageText="" PrevPageText="" NextPageText="" LastPageText="" />

But I cannot figure out how to hide the buttons mentioned above?
Is there an ID I can use for each of them to find them and set them to visible=false in the code-behind?
Is there an attribute I can use for each of them to set them in the pagerstyle element in the markup?
Thank you
Bill
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
72 views
Hello,
I have added an Recurrence Editor in a RadDock. When I load the page at first, IE-9 goes to 'compatibility view'. When my RadDock is loaded, some text boxes in the recurrence editor looks like as shown in the attachment. Please note that I have a limitation, where I cant change the 'browser mode' of IE-9. If there are CSS which can fix this issue it will be very helpful. 
*This is a SharePoint project.
Plamen
Telerik team
 answered on 24 Jan 2013
3 answers
919 views
I want to be able to set an item to a currency or date format depending upon its name.

Something like the following, but for the ItemDataBound event, not the ColumnCreated event.

How would I be able to accomplish that?
protected void RadGrid1_ColumnCreated(object sender, Telerik.Web.UI.GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridBoundColumn && (e.Column as GridBoundColumn).DataField == "Sales")
        {
            (e.Column as GridBoundColumn).DataFormatString = "{0:C}";
        }
    }
Bill
Top achievements
Rank 2
 answered on 24 Jan 2013
1 answer
119 views
I installed this version of 'telerik radcontrols' in my 'visual studio 2012' but the controls do not appear in my toolbox how do i fix this?
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 24 Jan 2013
1 answer
340 views

I am executing an SSRS rpt and need to duplicate this in a web project with sqldatasource id's.

The ssrs rpt parameters work perfectly as far as being populated, but when I try to get the same thing done in the web version, the second parameter list never gets populated.

The Ship parameter depends upon what is selected in the CruiseLine parameter.

The parameters in the web version are as follows:

<tr>
                <td>
                    Select a CruiseLine:
                    <telerik:radcombobox id="RadComboBox1" runat="server" checkboxes="True" enablecheckallitemscheckbox="False"
                        skin="Web20" sort="Ascending" allowcustomtext="True" datasourceid="SqlDataSource1"
                        datatextfield="CruiseLine" datavaluefield="CruiseLine">
                    </telerik:radcombobox>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ValidationGroup="A"
                        ControlToValidate="RadComboBox1" ErrorMessage="Choose a CruiseLine!"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Select a Ship:
                    <telerik:radcombobox id="RadComboBox2" runat="server" checkboxes="True" enablecheckallitemscheckbox="False"
                        skin="Web20" sort="Ascending" allowcustomtext="True" datasourceid="SqlDataSource2"
                        datatextfield="Ship" datavaluefield="Ship">
                    </telerik:radcombobox>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ValidationGroup="A"
                        ControlToValidate="RadComboBox2" ErrorMessage="Choose a Ship!"></asp:RequiredFieldValidator>
                </td>
            </tr>

Here are the corresponidng SQL data sources:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PrepaidConnectionString %>"
            SelectCommand="SelectCruiseLine" DataSourceMode="DataSet" EnableCaching="true"
            SelectCommandType="StoredProcedure"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:PrepaidConnectionString %>"
            SelectCommand="SelectShip" DataSourceMode="DataSet" EnableCaching="true" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter Name="CruiseLine" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>

The first sqldatasource executes the following sql (from a stored procedure and populates the list with no problem:
SELECT DISTINCT CruiseLine
        FROM dbo.ShipProductPrices
        ORDER BY CruiseLine

The second sqldatasource executes the following sql (also from a stored procedure):
ALTER PROCEDURE [dbo].[SelectShip] 
@CruiseLine NVARCHAR(MAX)
AS
BEGIN
    SET NOCOUNT ON;
  
    SELECT DISTINCT Ship
        FROM dbo.ShipProductPrices
        WHERE CruiseLine IN (SELECT * FROM dbo.SplitParameterValues(@CruiseLine, ','))
        ORDER BY Ship
END

For now, I'm just selecting one cruiseline and I expect that when I pull down the dropdownlist for the second combobox, it should run a query similiar to the following and have the Ship combobox populated:
SELECT DISTINCT Ship
        FROM dbo.ShipProductPrices
        WHERE CruiseLine IN (SELECT * FROM dbo.SplitParameterValues('CCL', ','))
        ORDER BY Ship

Notice the parameter type of the Ship combobox and the type of the SelectParameter of the SelectShip datasource. They are a little bit different. Don't know if this makes a difference or not.

The SelectShip SPROC executes a UDF which again is part of the sproc that I ran above manually with data coming out in sql management studio.

What do I need to do in order to populate the second combobox?

Hristo Valyavicharski
Telerik team
 answered on 24 Jan 2013
1 answer
65 views
Hi

I am facing a big issue,

When we set the scheduler selecteddate in page load by another date picked which located in the same page, That time all the appoints are went to invisible..y this happnd.....?

Am using vb.net ..

any idea?pls help me its urg

RadScheduler1.SelectedDate= rdDatePicker.SelectedDate

 

Boyan Dimitrov
Telerik team
 answered on 24 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?