Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
963 views
Am I missing something?

On the DateTimePicker and TimePicker you can easily set the TimeView.TimeFormat to something like "HH:mm:ss", to cause the TimePicker popup to display values like "23:00:00", but the textbox for the control still displays values like "6/8/2008 11:00 PM".

I would like the "11:00 PM" to display as "23:00:00" so the user can adjust down to the second, if needed.

Where is that format set?
Thanks!
sgrover
Top achievements
Rank 1
 answered on 15 Sep 2018
3 answers
978 views

How Attributes RadTextBox TextMode="Password" after postBack

I want to help solve this problem

.aspx

<form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <asp:Label ID="Label1" runat="server" Text="Passwoed TextBox"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>
        <br />  <br />
        <asp:Label ID="Label2" runat="server" Text="Passwoed radtextbox"></asp:Label>
        <br />
        <telerik:radtextbox runat="server" ID="radtextbox1" TextMode="Password" Skin="Bootstrap"></telerik:radtextbox>
        <br />  <br />
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    </form>

 

.vb

If Me.IsPostBack Then
 
            radtextbox1.Attributes("value") = radtextbox1.Text.Trim() 'not work         
 
            'TextBox1.Attributes("value") = TextBox1.Text  'this work
            TextBox1.Attributes.Add("value", TextBox1.Text.Trim()) 'this work
 
End If

 

 

Marin Bratanov
Telerik team
 answered on 15 Sep 2018
9 answers
415 views
Hi,

Based on the section Setting predefined values for controls inside user control on item insertion, how can I set predefined values inside a user control on item insertion at the Page Load when we set IsItemInserted = true in the PreRender Event ?

Here is the code I have

protected void RadGrid_PreRender(object sender, System.EventArgs e)
    {
        if (!this.IsPostBack)
        {
            if (Request["mode"] != null && Request["mode"] == "add")
            {
                RadGrid1.MasterTableView.IsItemInserted = true;
            }
 
            RadGrid1.MasterTableView.Rebind();
        }
    }


protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.InitInsertCommandName)
    {
         if (Request.QueryString["SomeParameter"] != null)
        {
            e.Canceled = true;
            e.Item.OwnerTableView.InsertItem();
 
            GridEditableItem insertedItem = e.Item.OwnerTableView.GetInsertItem();
            String MyUserControlId = GridEditFormItem.EditFormUserControlID;
            UserControl MyUserControl = insertedItem.FindControl(MyUserControlId) as UserControl;
            HiddenField hidden = MyUserControl.FindControl("SomeControl") as HiddenField;
            hidden.Value = Request.QueryString["SomeParameter"];
        }
    }
}

Also, it works fines if I don't add IsItemInserted = true in the PreRender event



Thanks
Kiranmayee
Top achievements
Rank 1
 answered on 15 Sep 2018
2 answers
212 views

I have a RadSearchBox.  The user can start typing and a list of selections comes up.

Is there a way I can restrict the user from typing in invalid choices?  I want to force them to choose one of the items on the list.

Any ideas on the best way to approach this would be appreciated!

Adam
Top achievements
Rank 1
 answered on 14 Sep 2018
1 answer
293 views

Hi!

There's a way to build a diagram based on swimlane like Telerik for WPF does?

Thank's.

Vessy
Telerik team
 answered on 14 Sep 2018
1 answer
181 views

Hi All,

 

Having an issue and maybe misunderstand implementation.  Hope you can help.

 

I am able to set HighlightPath procedurally for main-item and sub-item in RadMenu using code similar to below:

 

        Dim currentItem As RadMenuItem = RadMenu1.FindItemByText(LabelMainMenu.Text)
        If (Not (currentItem) Is Nothing) Then
            currentItem.HighlightPath()
        End If

 

 

 

However, I am unable to find a way to turn off HighlightPath for menu items.  Hence, every new menu item click is causing HighlightPath to accrue, sort of like a "visited" status link of a URL on an old HTML page (remember the purple color).

 

Sorry I digress. :)

 

I can loop through all menu items, but cannot find a property to turn off, i.e. there is no HighlightPath = false or similar.

I tried setting each item to Item.Items(j).Selected = False, but it does not turn off the highlight of the item.

Is there a global setting to reset all Highlights to nothing?  or Perhaps a way to remove HighlightPath option, then turn back on to reset all?

 

I am struggling to find a solution.

 

Regards,

A.

Attila Antal
Telerik team
 answered on 14 Sep 2018
1 answer
139 views

Hi,

My html chart is working fine with chrome, in Microsoft Edge the Yaxis and Caxis get underlined for some reason, Please see attached images.

How can I remove the underline.

Many thanks in advance.

 

Rumen
Telerik team
 answered on 14 Sep 2018
3 answers
264 views

Hello,

 

I'm pretty new with the Telerik.

 

We have just updated to a new version of Telerik at my office and with the new version a GridClientSelectColumn is not visible in IE11. And if you refresh the page with F5 then you see the GridClientSelectColumn. So why does it not show from the beginning?

It's still work as before in chrome (showing up when you go to the page, like it also did in IE11 before we Implemented the new Telerik version.

 

 

ASP.NET code:

 

<telerik:RadGrid runat="server" ID="radGrid1" AutoGenerateColumns="False" AllowMultiRowSelection="True"
                EnableEmbeddedSkins="False" OnNeedDataSource="ONDS1" OnItemDataBound="OIDB_OnItemDataBound"
                Width="1195px" AllowSorting="True" AllowPaging="True" PageSize="500"
                AllowFilteringByColumn="False" ClientDataKeyNames="test1" Visible="True">
                <MasterTableView ClientDataKeyNames="Hello1, Hello2" DataKeyNames="DataField1, RequestReference, Message" >
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_PartNumberText1 %>" DataField="DataField1" ShowFilterIcon="False"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_ManufacturerText1 %>" DataField="DataField2" ShowFilterIcon="False"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_DescriptionText1 %>" DataField="DataField3" ShowFilterIcon="False"
                            AutoPostBackOnFilter="True" />
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_SentText1 %>" DataField="DataField4" DataFormatString="{0:yyyy/MM/dd HH:mm}" ItemStyle-Wrap="False"/>
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_SentByText1 %>" DataField="DataField5" ShowFilterIcon="False"
                            AutoPostBackOnFilter="True" ItemStyle-Wrap="False"/>
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_StatusText1 %>" DataField="DataField6"
                            ShowFilterIcon="False" AutoPostBackOnFilter="True" ItemStyle-Wrap="False"/>
                        <telerik:GridBoundColumn HeaderText="<%$ Resources:Hello.Main, Common_MessageText1 %>" DataField="DataField7" ShowFilterIcon="False"
                            HtmlEncode="True" AutoPostBackOnFilter="True"/>
                        <telerik:GridBoundColumn UniqueName="Uni1" DataField="DataField8" Display="False" />
                        <telerik:GridBoundColumn UniqueName="Uni2" DataField="DataField9" Display="False" />
                        <telerik:GridBoundColumn UniqueName="Uni3" DataField="DataField10" Display="False" />
                        <telerik:GridBoundColumn UniqueName="Uni4" DataField="DataField11" Display="False" />
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" Display="False" runat="server"  />
                    </Columns>

 

 

Code behind:

 

var selectCol = radGrid1.Columns.FindByUniqueName("ClientSelectColumn");
        if (selectCol != null) {
            selectCol.Visible = true;
            selectCol.Display = true;
        }

Tim
Top achievements
Rank 1
 answered on 13 Sep 2018
3 answers
125 views

Hi

Where is/when can we get the same new feature MultiColumnComboBox as for example .Net Core?

 

Marin Bratanov
Telerik team
 answered on 13 Sep 2018
1 answer
572 views

Is there a way to fire the ItemCommand event from javascript the same as it would coming from a telerik control within a template item?  Using a telerik checkbox or other control inside a template, I can set the command name and argument.  When the server side itemcommand event fires, the event args parameter will have the command name, command argument, as well as the correct data item.

 

I have an ASP checkbox that calls a javascript function to do some validation.  I then call the mastertable.fireCommand  function, which triggers the server side itemcommand event.  I'm able to pass the command and argument, but the data item in the event args is always index zero.  I've found a way to retrieve the index of the data item on the client, and pass that index as the commandargument.  But I'd like to be able to use the commandargument parameter for something else.  

 

            function CheckClick(sender, Idx) {
                debugger;
                var masterTable = $find("<%= rgGrid.ClientID %>").get_masterTableView();
                var row = masterTable.get_dataItems()[Idx];
                masterTable.fireCommand("Post", Idx);
            }

 

I could combine the index and additional data and send it together in the command argument, so I do have a workaround.  But since the telerik controls are able to pass all three, I assume there should be a better way.  I expected something like a fireCommand function of the data item, but I'm not finding anything.  How do the telerik controls do that?

 

 

 

Eyup
Telerik team
 answered on 13 Sep 2018
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?