Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
94 views
Hello,

This afternoon, I have been working with Visual Studio 2010 and Telerik controls.

My windows 8.1 computer suddenly became rather unstable - this normally happens when there are Windows Updates to be applied.
So I rebooted the machine and allowed the updates to be installed.

Since doing this, Telerik control databinds have become INCREDIBLY slow. For example, the following code:

DateTime startDate = new DateTime(viewDateStart.Year, viewDateStart.Month, 1);
DateTime endDate = startDate.AddMonths(1);

while ((int)startDate.DayOfWeek != 1) startDate = startDate.AddDays(-1);        // 0 = sunday
while ((int)endDate.DayOfWeek != 0) endDate = endDate.AddDays(1);               // 0 = sunday

while (startDate <= endDate) {
       dayList.Add(startDate);
       startDate = startDate.AddDays(7);
}

rptCalendar.DataSource = dayList;
rptCalendar.DataBind();

At the point of the data bind, the dayList item only contains 5 records. It takes a good 5 to 10 seconds to step over the DataBind() statement.

Similarly, RadGrid is also taking inordinate amounts of time to DataBind(). The data in this instance comes from a Linq call, but this too is virtually instant.

It seems that a Windows update has somehow crippled Telerik control data binding.

Has anyone heard of this happening ?



Eyup
Telerik team
 answered on 26 Feb 2015
1 answer
68 views
Hello,
I have EditMode="Batch". In the grid I have a template column. In EditItemTemplate there is a RadComboBox.
I would like to add RadComboBoxItems to the RadComboBox. How do I find the RadComboBox in EditItemTemplate server side?
Eyup
Telerik team
 answered on 26 Feb 2015
1 answer
123 views
I am adding a tree of RadTreeNodes directly to the control and when node is click it attempts to navigate.

new RadTreeNode(item.Name, item.Path)
{
    ImageUrl = GetNodeImage(item.TypeName),
    ToolTip = item.Name,
    PostBack = false
}

I attempted setting PostBack to false, and in the past setting NavigateUrl to "#" based on another thread. These have no yielding any help to prevent the message (that I know at least shows in Chrome).
Ivan Danchev
Telerik team
 answered on 25 Feb 2015
1 answer
124 views
Hi,

I want to disable the following properties
AllowInsert
AllowEdit
AllowDelete

However, I have got a grid where you can take the appointments and drop onto the scheduler control. Therefore, I have to enable some properties to succeed the action.  Any possible way to disable them meanwhile able to use the drag and drop option ?
Thank you
Nencho
Telerik team
 answered on 25 Feb 2015
2 answers
209 views
I can't seem to get my detail table to load properly. I am using the NeedDataSource and DetailTableDataBind events and entity framework.
The main grid loads as expected after the NeedDataSource event, and in the DetailTableDataBind I can see at least one item in the list being set as the datasource. 
However after clicking to expand the row, the detail table shows no results.


        <telerik:RadGrid ID="StarTranPIsGrid" runat="server" AutoGenerateColumns="false" 
                OnNeedDataSource="StarTranPIsGrid_NeedDataSource"  OnDetailTableDataBind="StarTranPIsGrid_DetailTableDataBind" >
             <MasterTableView DataKeyNames="ID" HierarchyLoadMode="ServerBind" EnableHierarchyExpandAll="true">
                <Columns> 
                    <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="false" />
                    <telerik:GridBoundColumn UniqueName="InvoiceNumber" DataField="InvoiceNumber" HeaderText="Invoice Number" />
                    <telerik:GridBoundColumn UniqueName="ShipDate" DataField="ShipDate" HeaderText="Ship Date" />
                </Columns>
                 <DetailTables>
                     <telerik:GridTableView DataKeyNames="StarTranPIID, SequenceNum">
                         <DetailItemTemplate>
                             <telerik:GridTableView DataKeyNames="StarTranID,SequenceNum" Width="100%" runat="server">
                                 <Columns>
                                    <telerik:GridBoundColumn UniqueName="PartNumber" DataField="PartNumber" HeaderText="Part Number" />
                                    <telerik:GridBoundColumn UniqueName="OrderNumber" DataField="OrderNumber" HeaderText="Order Number" />
                                    <telerik:GridBoundColumn UniqueName="QtyOrder" DataField="QtyOrder" HeaderText="Qty Order" />
                                    <telerik:GridBoundColumn UniqueName="QtyShip" DataField="QtyShip" HeaderText="Qty Ship" />
                                    <telerik:GridBoundColumn UniqueName="ReferenceNumber" DataField="ReferenceNumber" HeaderText="Reference Number" />
                                    <telerik:GridBoundColumn UniqueName="ShipmentNumber" DataField="ShipmentNumber" HeaderText="ShipmentNumber" />
                                 </Columns>
                             </telerik:GridTableView>
                         </DetailItemTemplate>
                     </telerik:GridTableView>
                 </DetailTables>
            </MasterTableView>
        </telerik:RadGrid>


    protected void StarTranPIsGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        int ID = (int)Session["ShipperDetailsID"];
        StarTran Transaction = context.StarTrans.FirstOrDefault(s => s.ID == ID);
        if (Transaction != null)
            StarTranPIsGrid.DataSource = Transaction.StarTranPIs.ToList();
    }

    protected void StarTranPIsGrid_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
    {
        GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
        int ID = (int)dataItem.GetDataKeyValue("ID");

        List<StarTranPIPart> children = context.StarTranPIs.First(t => t.ID == ID).StarTranPIParts.ToList();
        e.DetailTableView.DataSource = children; //children contains at least one item!
    }


I've been following the demos and documentation:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grid-binding-hierarchical-grids.html
http://www.telerik.com/help/aspnet-ajax/grid-hierarchical-data-binding-using-detailtabledatabind.html


Can anyone provide any insight into what I am missing to get my details table to populate?
Viktor Tachev
Telerik team
 answered on 25 Feb 2015
1 answer
81 views
 I have  a RadListBox with transfer into a splitter pane and I want to the RadListBox fill the entire pane area. How can I change the RadListBox width in the client side?
Thanks in advanced
Jorge
Dimitar
Telerik team
 answered on 25 Feb 2015
1 answer
42 views
I have RadGrid2 embedded in the editform of RadGrid1.
Editform of RadGrid1 has tabindexes set for all controls (1 to n)
Editform of RadGrid1 does NOT open in poup.

The editform of RadGrid2 is set to open as a modal popup.
Editform of RadGrid2 has tabindexes set for all controls (1 to n)
All is good, and I can add/edit/update records.

However, when I tab from field to field in the modal popup editform in RadGrid2, it jumps to the underlying editform fields.

How do I keep this from happening?
Thanks
John
Kostadin
Telerik team
 answered on 25 Feb 2015
1 answer
135 views
I have three listboxes surrounded in ajax update panels that are populated by data I grab from a webrequest to a remote server.

On two of them, the data is returned in JSON and I parse it out by using a "For Each" to loop through the JSON add items to the listbox. The problem with my approach, I believe, is that I have to drop/clear all the items out of the listbox, and then rebind with fresh data. I do this every 3 to 5 seconds, as it is a chat-like program that needs real-time updates. Whats happening is that when moused-over, you can see items in the listbox flicker as they get rebound. I'm pretty sure it makes quite a bit of overhead, too.

My first theory in improving it would be to make the items dump into an radlistboxitemcollection and bind the listbox to that collection with "allowautomaticupdates" enabled, but I'm not even sure thats how that works.

Is there a better way to approach this? I can't really change how I pull the data much, just how I process it.
Hristo Valyavicharski
Telerik team
 answered on 25 Feb 2015
1 answer
142 views
According to Visual Studio I'm using "Telerik UI for ASP.NET AJAX VSExtensions: 2014.5.1021.0."  My toolbox shows "Telerik UI for ASP.NET AJAX - Data Editing 2014 Q3" and my project references version 2014.3.1024.45. We're using Framework 4.5 as well (upgraded the project from 4.0 just recently).  Yes, I'm referencing the 4.5 files too:

C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q3 2014\Bin45\Telerik.Web.UI.dll 
C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q3 2014\Bin45\Telerik.Web.UI.Skins.dll

Why am I unable to see RadMaskedTextInput in the toolbox?  Instead what I see are the controls that appear to be obsolete according to your documentation (released 2014 Q2 according to documentation):

Seeing:
RadMaskedDateInput
RadMaskedMaskTextBox
RadMaskedNumericTextBox

Expecting to See:
RadMaskedNumericInput
RadMaskedCurrencyInput
RadMaskedTextInput
RadMaskedDateTimeInput

I want to use the newer input controls as they look far more flexible and frankly, less annoying. The old one's don't seem to be able to handle our requirements at all.  For example, I cannot get a RadMaskedTextBox with a non-numeric mask ([A-Za-z] in RegEx language) of any length, without the unattractive underlining.


















Konstantin Dikov
Telerik team
 answered on 25 Feb 2015
1 answer
53 views
     Hello
<telerik:RadAsyncUpload runat="server" ID="rauFiles"   PostbackTriggers="rgReceiptDTL,ddlDepNo,rntbLPOYear,ddlLPONO,rntbTransYear,rdpEntryDate,rdpRequestDate,hdnLPONO,hdnLPOYear,SDSReceiptDTL"></telerik:RadAsyncUpload>
 
<telerik:RadNumericTextBox ID="rntbTransYear" SkinID="Year" AutoPostBack="true" runat="server"></telerik:RadNumericTextBox>

in above example im facing problem in post back when when RadNumericTextBox make post back i lose the files in rad async upload other controls works well with no losing .

Regards ,







Nencho
Telerik team
 answered on 25 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?