Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
142 views

Hi all,
In my RadTimePicker I want to show time in 24 hour format. I gone thourgh some of the threads of your site and wrote my code in the following way -

 

<telerik:RadTimePicker ID="RadTimePicker1" runat="server"  SharedTimeViewID="sharedTimeView" 
    Width="100px" Skin="WebBlue" DateInput-DateFormat="HH:mm" 
    DateInput-DisplayDateFormat="HH:mm" TimeView-TimeFormat="HH:mm" >                                   
</telerik:RadTimePicker>

It is working fine in my development environment. But when I deployed this code in our local test environment, it is not showing data is as should show. The input field (textbox) is showinig time in 24 hour format but the popup is showing in 12 hour format. Please check the attached image for your reference. Both the development system and test system are using same dll.

Why it is behaving like this? Am I missing someting? Any Idea?
Diana
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
88 views
Hi

We are using 4.5.1 version of Telerik HTML editor.
While creating a hyperlink inside the editor it brings up the dialog box for selecting the link, but it doesn't creates any link in the editor.

Kindly request your thoughts on why this is not creating any link in the editor control.

Thanks


Rumen
Telerik team
 answered on 14 Mar 2013
2 answers
194 views
Hey all,

I want to insert an ID by using eval in a button in GroupHeaderTemplate, can anyone help as I can't access Eval.

My code
   <GroupHeaderTemplate>
               <telerik:RadButton ID="btnAddSpecificDelegationToCashGift" OnClick="btnAddSpecificDelegationToCashGift_OnClick"
                   CommandArgument=''
                   runat="server" Text='<%# Eval("TRP_LOOK_UP.ID") %>' >
                   <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
               </telerik:RadButton>
</GroupHeaderTemplate>

Or is there any other way to eval the ID.

Grid view data source.
    protected void gridAddDelegationToCashGift_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
       {
           destinationID = int.Parse(Request.QueryString["destinationID"]);
           if (destinationID != 0)
               gridAddDelegationToCashGift.DataSource = _srv.GetDelegationNotAddedToCashGift(destinationID);
       }
Ahmed
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
150 views
Hello,

I was wondering if its possible to have a treeview with the nodes being comboboxes/ listboxes.  The selection of one item may have additional nodes of additional comboboxes/listboxes.

Thanks in advance,

Mike
Princy
Top achievements
Rank 2
 answered on 14 Mar 2013
1 answer
88 views
Hi,
I am using Telerik Control Library v2009 for my web application.

Everything works fine in IE 9 Compatibility mode. All embedded styles works fine with my control (i.e. RadGrid, Calendar Control etc).
But in non-compatibility mode, no css loaded properly.
If we check through Developer Tools -> Console, it gives the following error.
///////////////////////////////////////
SEC7113: CSS was ignored due to mime type mismatch WebResource.axd?d=4DzX1gSlgsf9eiyfsOmMEfF7Yniuv7E5z4WX19F9pvc3MxpWZC1oEFL5MmC1hWCcrhk7Nuyyx5tolNE_3FShghZ5SLfqnd3m1ZEbdufb5neMr009seJgX784LZXOv_BjH83oszSu2EYKsUqghm4qZ5pcHFo1&t=634770805886806167
/////////////////////////////////////

Please suggest?
Imran
Galin
Telerik team
 answered on 14 Mar 2013
1 answer
71 views
I have a Grid that is grouped. When I update the database based on the group I get the foolwoing error:

"Unable to cast object of type 'Telerik.Web.UI.GridGroupFooterItem' to type 'Telerik.Web.UI.GridDataItem'. "

The database is updated even though the error is thrown.

Here is my code.
Private Sub btn_ApproveAll_Click(sender As Object, e As EventArgs)
 
    Dim item As GridGroupHeaderItem = DirectCast(rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader)(0), GridGroupHeaderItem)
    For Each groupHeader As GridGroupHeaderItem In rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader)
        Dim children As GridItem() = groupHeader.GetChildItems()
        For Each child As GridDataItem In children
 
            Dim IDTaskUpdates As String = child("IDTaskUpdates").Text
 
            Dim sql As String
            Dim strConnString As [String] = System.Configuration.ConfigurationManager.ConnectionStrings("SharePoint_ConnectionString").ConnectionString()
            sql = "UPDATE Task_Updates SET TaskUpdateApproved = 1, ApprovedDate = @ApprovedDate, ModifiedDate = @ModifiedDate  WHERE IDTaskUpdates = @IDTaskUpdates"
            Dim cn As New SqlConnection(strConnString)
            Dim cmd As New SqlCommand(sql, cn)
 
            cmd.Parameters.Add("@IDTaskUpdates", SqlDbType.Int).Value = IDTaskUpdates
            cmd.Parameters.Add("@ApprovedDate", SqlDbType.DateTime).Value = Date.Now
            cmd.Parameters.Add("@ModifiedDate", SqlDbType.DateTime).Value = Date.Now
            cmd.Parameters.Add("@IDModifiedUser", SqlDbType.NVarChar, 36).Value = Session("ActiveDirID")
 
            cmd.Connection.Open()
            cmd.ExecuteNonQuery()
            cmd.Connection.Close()
        Next
 
    Next
 
End Sub

As always any help much appreciated.


Andrey
Telerik team
 answered on 14 Mar 2013
6 answers
169 views
I was able to create a new skin for a RadSplitter Control, everything works fine, except when I tried to change the size of the text that shows in the SlidingZone Tabs.  I was able to change the font color but the font size doesn't change.
Am I doing something wrong?

I have the 2009 trial version, and I'm deciding wether to buy the developer version or not, and this issue is affecting my decision.

I'll appreciate your help with this.

Regards,

Jesus.
Princy
Top achievements
Rank 2
 answered on 14 Mar 2013
1 answer
55 views
I have a grid with a parent/child set of tables. The expand/collapse button works as expected when it is a ascx user control on a page, but when that control is placed in a web part on a page and the expend/collapse button clicked, the entire page refreshes, why?
Andrey
Telerik team
 answered on 14 Mar 2013
4 answers
576 views
I have a RadMaskedTextBox used for zip 5 or 9 data.

I would like to validate always for 5 digit zip code or 9 digit zip code.

the following regex does not catch zip code 33461-12 which is obviously wrong (it thinks its correct).

I think there is an issue with the underscores in the mask.  

Valid zip codes should be:

33451
33545-1250

Anything else should be invalid, ex:

3314
33415-1
33145-12
33415-123

Any help would be greatly appreciated.

<telerik:RadMaskedTextBox ID="txtZipCode" runat="server" Mask="#####-####" SelectionOnFocus="CaretToBeginning"></telerik:RadMaskedTextBox>
    <asp:RegularExpressionValidator
    ID="RegularExpressionValidator1"
    ControlToValidate="txtZipCode"
    ValidationExpression="^((\d{5}(-|\s)\d{0,4})|(\d{5}))$"
    ErrorMessage="Zip code must be numeric nnnnn or nnnnn-nnnn."
    Display="dynamic"
    RunAt="server"></asp:RegularExpressionValidator>


Andrey
Telerik team
 answered on 14 Mar 2013
3 answers
228 views
I want RadButton as Flat Button as i have attached a image file. It would be fine if control has a property for that to apply or fine with CSS also... I have tried a lot with CSS, I did for aspx button but unable to apply for radbutton. Below are the Css Class & the RadButton 'm just showing you, how i have applied / used.

.clsButton {
    width: auto;
    font-size:1.1em;
    border-style:groove;
    padding:0px,0px,0px,0px;
    margin:0px,0px,0px,0px;
    text-align:center;
}

<telerik:RadButton ID="btnSave" runat="server" Text="Save" CssClass="clsButton" Width="150px"></telerik:RadButton>

Even i have tried by mentioning "!important" in CSS class, still no use.

Please help me out. I need it urgent. Thanks in advance for any help.


Vishnu
Top achievements
Rank 1
 answered on 14 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?