Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
88 views

hello,

i'm want to filter all the results that i get, but the problem is the filter is work only in the page i'm in.

for page number 1 i get the result filter only for him not for all the 30 pages.

i use AutoGenerateColumns=" true", i think this is the problem.

Nir
Top achievements
Rank 1
 asked on 30 Nov 2017
0 answers
139 views
I am Sathesh,  i am using RadPersistenceManager for saving grid settings, If i use this RadPersistenceManager control the RadGrid client side row selected event not fired. If i remove the RadPersistenceManager from the page the row selection event is fired correctly. This issue is arises in the local server if i published. But its working correctly in local development machine. 
sathesh
Top achievements
Rank 1
 asked on 30 Nov 2017
1 answer
84 views

How to find button in radlistview 

1. client code

2. code behide

 

please help me

Thank you.     

Thamita
Top achievements
Rank 1
 answered on 30 Nov 2017
0 answers
78 views

 

Hi!

How to choose radcombobox1 and then clear radcombobox 2  For radcombobox in radgrid

  • I try to put javascript, but it does not work, and then find that find combobox2 not found.
  • Here is my jquery ajax function:

function OnClientSelectedIndexChanged(sender, eventArgs) {
 
               var SenderId =  sender.get_id();
               var RadTextBox1 = $("#" + SenderId).get(0);
               var RadTextBox2 = $("#" + SenderId.replace("combo_Examtion", "combo_ExamtionCount")).get(0);
               //// for telerik /radcontrols
               var RadTextBox2 = $telerik.findTextBox(SenderId.replace("combo_Examtion", "combo_ExamtionCount"));
               
 
           }
<telerik:GridTemplateColumn HeaderText="ข้อสอบ" HeaderStyle-Width="200px" UniqueName="NameExaminationID" DataField="NameExaminationID">
 
                           <ItemTemplate>
 
                               <asp:Label runat="server" ID="lblNameExaminationID" Text='<%# Eval("NameExamination")%>'></asp:Label>
                           </ItemTemplate>
 
                           <EditItemTemplate>
 
                               <div style="width: 190px; float: left;">
                                   <telerik:RadComboBox ID="Radcombobox1" runat="server" AllowCustomText="True" Filter="Contains" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"
                                       OnItemsRequested="combo_Examtion_ItemsRequested"
                                       Skin="Vista" DropDownWidth="250px" Width="155px" Height="150px" EnableVirtualScrolling="true" HighlightTemplatedItems="true" EnableLoadOnDemand="True" OnClientDropDownOpened="MyClientBlur">
                                       <ItemTemplate>
                                           <table style="width: 200px;">
                                               <tr>
                                                   <td style="width: 150px;">
                                                       <%# DataBinder.Eval(Container.DataItem, "NameExamination")%>
                                                   </td>
                                               </tr>
                                           </table>
                                       </ItemTemplate>
                                   </telerik:RadComboBox>
 
 
                               </div>
                           </EditItemTemplate>
 
                       </telerik:GridTemplateColumn>
                       <telerik:GridTemplateColumn HeaderText="ชุดที่" HeaderStyle-Width="80px" UniqueName="Examination_No" DataField="Examination_No">
                           <ItemTemplate>
                               <asp:Label runat="server" ID="lblExamination_No" Text='<%# Eval("Examination_No")%>'></asp:Label>
                           </ItemTemplate>
                           <EditItemTemplate>
 
 
                               <div style="width: 190px; float: left;">
                                   <telerik:RadComboBox ID="Radcombobox2" runat="server" AllowCustomText="True" Filter="Contains" OnItemsRequested="combo_ExamtionCount_ItemsRequested"
                                       Skin="Vista" DropDownWidth="100px" Width="70px" Height="150px" EnableVirtualScrolling="true" HighlightTemplatedItems="true" EnableLoadOnDemand="True" OnClientDropDownOpened="MyClientBlur">
                                       <ItemTemplate>
                                           <table style="width: 50px;">
                                               <tr>
                                                   <td style="width: 50px;">
                                                       <%# DataBinder.Eval(Container.DataItem, "Examination_No")%>
                                                   </td>
                                               </tr>
                                           </table>
                                       </ItemTemplate>
                                   </telerik:RadComboBox>
 
                               </div>
 
                           </EditItemTemplate>
 
 
                       </telerik:GridTemplateColumn>

Cholticha
Top achievements
Rank 1
 asked on 30 Nov 2017
0 answers
194 views

using TreeList grid in Kendo UI v2017.3.1026 with AngularJS v1.6.1.

when i define my bindings in a template like this:

    `<input ng-if="vm.foo(dataItem) ng-change="vm.priceChanged(dataItem)" ng-model="dataItem.currentPrice.value" />`

it sort of works. the events do fire but I noticed that the underlying object is no longer synchronized with the rest of the page.

dataItem appears to be a copy of the original object with additional properties, and the original [item in the collection the grid is bound to] does not get updated.

this is of course a problem since the page has more than the grid and any changes in the grid need to be propagated to the original objects in the controller.

 

I could manually find / synchronize the dataItem passed to the ng-change event with the original object in angular controller collection, but hoping there is a better way

second issue is that modifying the kendo version of dataItem OR the original, does not immediately show up in the grid. seems like it needs to be manually refreshed? I am using k-rebind technique:

    <div id="grid" kendo-tree-list k-options="vm.treeListOptions" k-rebind="vm.dataVersion"></div>

and in my event I call this.dataVersion++ after updating underlying collection, but this does not refresh the grid.

squarewave
Top achievements
Rank 1
 asked on 30 Nov 2017
2 answers
105 views

I have minute data beginning from 2017-11-5 to 2017-11-6 which is crossing daylight saving day, the datetime of data is stored in utc time which is from 2017-11-5 4:00 to 2017-11-6 5:00 (25 hours data)

when i apply the data on chart there is 25 hours in Xaxis  which is understandable. 

this is what i want to achieve 

if we have to show 25 hours data on chart(there is duplicate time from 1am to 2am), 

we don't want there is gap there

 PlotArea.XAxis.DataLabelsField use local time which convert from utc

or

I have move send 1am to 2am to different column, so i can show 24 hours data with 1 hour overlap, but don't want to gap as well.

i am not sure if i explain clearly or not.

attachment is the simple app and screen shot of the web

 

 

alex
Top achievements
Rank 1
 answered on 30 Nov 2017
0 answers
122 views

Hi 

I  have a RadGrid and binding the data on the pageload on the client side on the jquery load.

I have two buttons one search and one Reset

If i click the buttons they are binding the data to the RadGrid on the clientside buttonclick events.But on the second time of click on the Buttons the grid is not rebinding.Please find the attached sourcecode

 

 

sunil
Top achievements
Rank 1
 asked on 29 Nov 2017
1 answer
138 views
I am using JQuery UI controls on same page as Telerik UI Ajax controls, but the JQuery UI controls do not work. Is there a compatibility issue ? How can it be resolved ?
Vessy
Telerik team
 answered on 29 Nov 2017
1 answer
357 views

Hello, i have really simple RadTreeView control. 

but there is an issue, nodes only display if they have "0" ParentID. I put the code like telerik's examples and also table content is correct.

Why i cant put any child nodes which their ParentID is ParentID > 0


var ds = db.Finding.AsQueryable().ToList();
 
treeView.DataTextField = "VulnerabilityCode";
treeView.DataValueField = "ScanId";
treeView.DataFieldID = "Id";
treeView.DataFieldParentID = "ParentId"; // only shows where this value is ZERO
treeView.DataSource = ds;
treeView.DataBind();

 

<telerik:RadPane runat="server" Scrolling="None">
                        <telerik:RadSplitter runat="server" Orientation="Horizontal">
                            <telerik:RadPane runat="server">
                                <telerik:RadTreeView ID="RadTreeView2" IsExpanded="True" runat="server" Skin="WebBlue" Height="600px" Width="100%">
                                </telerik:RadTreeView>
                            </telerik:RadPane>
...

 

Peter Milchev
Telerik team
 answered on 29 Nov 2017
3 answers
299 views

Hi

I have a simple Rad grid using the Bootstrap skin.

Based on the data I'm using the ItemDataBound to change the row COlour, however its not being applied to Alternate rows.

How can I fix this?

Here is my code:

Protected Sub rgHousekeeping_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgHousekeeping.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
 
        Dim RowDataItem As GridDataItem = CType(e.Item, GridDataItem)
        Dim TaskComplete As System.Web.UI.WebControls.Image = DirectCast(RowDataItem("TaskComplete").Controls(0), System.Web.UI.WebControls.Image)
 
        If CBool(e.Item.DataItem("TaskComplete")) Then
            TaskComplete.ImageUrl = "Content/Images/Tick_24.png"
        Else
            RowDataItem.BackColor = Drawing.ColorTranslator.FromHtml("#ff7474")
        End If
 
    End If
 
End Sub

 

Andy

Vessy
Telerik team
 answered on 29 Nov 2017
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?