Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
196 views

I have a several RadTextBox controls on the same form.  All are using ClientEvents-OnValueChanged,  but the larger multi-line RadTextBox controls are firing ClientEvents-OnValueChanged when you just click into the control then out again.  Smaller multi-line RadTextBox controls behave correctly.   So far it seems to be related more to the length of text in the RadTextBox rather than the number of rows.  I'm using IE 11.

I've reproduced the behaviour in this smaller page (snippet) .  All three RadTextBox inputs have the same MaxLength and Width and all use the ClientEvents-OnValueChanged event.

The first multi-line RadTextbox incorrectly fires ClientEvents-OnValueChanged the first time you click inside it then click away.  The second multi-line RadTextbox correctly only fires ClientEvents-OnValueChanged when something has actually changed.  The only difference between the two is the length of the actual text - both are showing vertical scroll bars on my screen .

<head runat="server">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <script src="//code.jquery.com/jquery-2.1.3.min.js"  id="JQueryScript"></script>
    <script type="text/javascript">
        function ItemChanged() {
            $("#divInfo").text($("#divInfo").text() + "First Changed;");
        }
        function SecondChanged() {
            $("#divInfo2").text($("#divInfo2").text() + "Second Changed;");
        }
        function OtherChanged() {
            $("#divInfo2").text($("#divInfo2").text() + "Other Changed;");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadToolTipManager ID="RadToolTipManager2" runat="server" RelativeTo="Element" Position="TopCenter" AutoTooltipify="true" ContentScrolling="Default" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" AutoSizeBehaviors="WidthProportional" AutoSize="true" MinWidth="500" />
        <telerik:RadAjaxManager runat="server" ID="radAjaxManager1" />
    <div>
    <div style="margin-bottom: 2em;"><div id="divInfo" > </div><div id="divInfo2" > </div></div>
        This large input incorrectly fires ClientEvents-OnValueChanged when you click inside then outside
    <telerik:RadTextBox ID="RadTextBox1" Width="90%" TextMode="MultiLine" Rows="3" MaxLength="2000" ClientEvents-OnValueChanged="ItemChanged"  runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur luctus convallis sapien vestibulum tempus. Mauris vehicula feugiat felis vel sagittis. Ut fermentum posuere ligula vel ultrices. Aenean in libero placerat, mollis nulla in, suscipit dolor. Cras iaculis diam eros, sed ullamcorper magna adipiscing in. Vivamus vel diam ac nisl venenatis lacinia. Nulla volutpat, dolor id convallis fermentum, nunc odio convallis sapien, sed pharetra nunc lacus vel tortor. Quisque varius tincidunt ligula, pretium egestas felis convallis sed. Donec fringilla nisl in sagittis varius. Sed fringilla felis quis mauris adipiscing, in rutrum libero feugiat. Cras condimentum, elit non lobortis molestie, nunc purus condimentum purus, sed sagittis mauris tellus at purus.
 
Morbi vitae lacus ornare, rhoncus ipsum sed, dictum enim. Aliquam consequat nisi massa, eu ullamcorper felis aliquet ut. Mauris ornare fermentum enim, non accumsan purus tempus sit amet. Ut neque metus, molestie ut consequat sit amet, dignissim ac felis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi gravida augue sed felis convallis, in vestibulum erat pharetra. Aliquam vel adipiscing nunc. Fusce pretium nunc sed odio imperdiet, eu faucibus enim laoreet. Praesent in ante mattis, blandit elit vitae, convallis arcu." />
        <br /><br />
        these two only fire ClientEvents-OnValueChanged when you actually change the value
    <telerik:RadTextBox ID="RadTextBox2" Width="90%" TextMode="MultiLine" Rows="3" MaxLength="2000" ClientEvents-OnValueChanged="SecondChanged" runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur luctus convallis sapien vestibulum tempus. Mauris vehicula feugiat felis vel sagittis. Ut fermentum posuere ligula vel ultrices. Aenean in libero placerat, mollis nulla in, suscipit dolor. Cras iaculis diam eros, sed ullamcorper magna adipiscing in. Vivamus vel diam ac nisl venenatis lacinia. Nulla volutpat, dolor id convallis fermentum, nunc odio convallis sapien, sed pharetra nunc lacus vel tortor. Quisque varius tincidunt ligula, pretium egestas felis convallis sed. Donec fringilla nisl in sagittis varius. Sed fringilla felis quis mauris adipiscing, in rutrum libero feugiat. Cras condimentum, elit non lobortis molestie, nunc purus condimentum purus, sed sagittis mauris tellus at purus" />
    <br /><br />
    <telerik:RadTextBox ID="RadTextBox3" Width="90%" TextMode="SingleLine" Rows="1" MaxLength="2000" ClientEvents-OnValueChanged="OtherChanged" runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
    <br /><br />
    <asp:TextBox ID="txtTest" runat="server" Text="Somewhere else to click  no client events" />
    </div>
    </form>
</body>
</html>

Vasil
Telerik team
 answered on 13 Apr 2015
1 answer
250 views

Hi,

I am using radgrid CHECKLIST filtering, and able to bind the data using FilterCheckListItemsRequested event. My radgrid has textBoxes inside the bound columns and user can enter the values and all the calculations are handled in client side. When filter icon is clicked, systems sends a CALLBACK request and filter list is not updated with latest values entered for the column. However, if there is any postback or partial postback happens, the list is updated with latest values.

I want to update the checklist filter listbox with items on callback. Is it possible to do this? Or is there any way to update the filter listbox on client side?

 

Regards,

Saikrishna

Konstantin Dikov
Telerik team
 answered on 13 Apr 2015
4 answers
171 views

The single VCR buttons go foward or backward month by month, but the double VCR buttons go forward or backward 3 months at a time.  Can RadDatePicker be configured to make the double VCR buttons go year-by-year?  This is consistent with other javascript calendars.

Thanks.

 

 

An
Top achievements
Rank 1
 answered on 13 Apr 2015
4 answers
127 views

hi

I use last telerik version .

in radGrid with batch mode I use OnBatchEditOpened client side. OnBatchEditOpened is fired for all column but when I update my telerik dll it isn't fired for the column they I set display false.

why ?

Pavlina
Telerik team
 answered on 13 Apr 2015
1 answer
241 views

Hello,

I've used the resizeToFit() function to re-size my columns in the following function:

function pageLoad() {
                var grid = $find('<%= RadGrid2.ClientID %>');
                var master = grid.get_masterTableView();
                var columns = master.get_columns();
                for (var i = 0; i < columns.length; i++) {
                    columns[i].resizeToFit();
                }
            }

Which works very well - however after the re-size I'm left with a ton of white space to the right of my newly sized columns. I know this is cause in part by having static headers however I need to keep the static headers.

So is there a work around to keep the static headers and still re-size the RadGrid to fit the new column size?

Pavlina
Telerik team
 answered on 13 Apr 2015
1 answer
116 views

hello

is there a way to localize the button "Apply" and "Cancel" and the checkbox "Check All" in a grid with CheckList Filtering enabled?

 

thank you

Eyup
Telerik team
 answered on 13 Apr 2015
1 answer
324 views

I need to add a custom radio button control that I created based on an if condition to my GridView. My radiobutton will be enabled or disabled based on this condition and will have the text changed as well.I'm trying to figure out how to add a radiobutton object into my data row instead of a stringdt.Columns.Add("FirstName").

 

<telerik:RadGrid runat="server" ID="grd1" OnNeedDataSource="grd1_NeedDataSource">
<MasterTableView AutoGenerateColumns="False">
<Columns>
<telerik:GridTemplateColumn HeaderText="Radiobutton header" UniqueName="col1">
<ItemTemplate>
<asp:RadioButton ID="rbType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "rbEnableorDisable")%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
 
<telerik:GridTemplateColumn HeaderText="FirstName header" UniqueName="col2">
<ItemTemplate>
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>' runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

 Codebehind


dt= New DataTable
dt.Columns.Add("rbEnableorDisable")
dt.Columns.Add("FirstName")
 
Dim rb As RadioButton
rb = New RadioButton
 
For each item in itemlist //some data iteration declared elsewhere
dr = dt.NewRow()
If (Condition)
rb.Text = "Should be Disabled"
rb.Enabled = False
Else
rb.Text = "Should be Enabled"
rb.Enabled = True
End if
 
dr.Item("FirstName") = item.FirstName
dr.Item("rbEnableOrDisable") = rb//?Code for inserting a radio button object
dt.Rows.Add(dr)
Next
 
With grd1
.DataSource = dt
.DataBind()
End With

 So far with this code I am only able to display the radiobutton text if i havedr.Item("rbEnableOrDisable") = rb.Text.I need to display the whole radiobutton object(show the text and if it's enabled or disabled among others)I triedLocationData.Columns.Add(New DataColumn("rbType", GetType(RadioButton)))but it seems I need to append to the ItemTemplateAlso tried adding the whole column dynamic with:grd1.Controls.Add(rb)

 

Eyup
Telerik team
 answered on 13 Apr 2015
3 answers
418 views
Hi dear

How we can find controls(Radcombobox) in insert item of radgrid on client side.

Thanks
Eyup
Telerik team
 answered on 13 Apr 2015
4 answers
234 views
Dear Telerik Champs
is scheduler support Hijri calendar like this culture  (ar-SA)

I set the culture info as  (ar-SA) to the scheduler and every thing was ok
but When I begin to save a new appointment the date comming wrong like this one (12/10/2571)
so I try to search in the samples and  the thread but I found this demo link

I found that in the demo u r using only the Gregorian culture that means no supporting for Hijri or what?

I appreciate ur help
Plamen
Telerik team
 answered on 13 Apr 2015
17 answers
555 views
After adding the new EnableCheckAllItemsCheckBox, when checking the box the OnItemChecked is not fired. For all othe check boxes in the list it is.
Marcos
Top achievements
Rank 2
 answered on 13 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?