Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
199 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
80 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
40 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
128 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
139 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
50 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
1 answer
277 views
When i try to integrate RadEditor in my existing project which is using "telerik full version" i am getting the following error

"Harmony.Web.Pages.WordMergeTemplateEdit' does not contain a definition for 'RadEditor1' and no extension method 'RadEditor1' accepting a first argument of type 'Harmony.Web.Pages.WordMergeTemplateEdit' could be found (are you missing a using directive or an assembly reference?)

Kindly suggest us to solve the issue.


With regards,

Isaac
Ianko
Telerik team
 answered on 25 Feb 2015
1 answer
65 views
Hi there,

I hope somebody can help me with this one.

I want to change the skin of a particular type of controls by setting the TargetControls collection of the RadSkinManager in code behind.
I use the following code:

protected void cbSkins_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs )
        {     
      RadSkinManager1.TargetControls.Clear();
      string skinName = e.Text;
RadSkinManager1.TargetControls.Add(Telerik.Web.UI.ControlTypeToApplySkin.RadButton, skinName);
        }

The first time the event is hit the skin of the RadButton is changed on the page, which is OK.
After the second time the event is hit the skin of the RadButton is not changed.

Does anybody know why the skin is only changed the first time the event is hit?

Regards,

Marcel
Maria Ilieva
Telerik team
 answered on 25 Feb 2015
1 answer
138 views
Hello,
   I found the issue in radeditor table deletion. I can't delete multiple rows in one time by selecting multiple rows. But I can delete one by one row.
I think my query make sense to you.

Please help me as soon as possible.

Thanks


Jiten Mutum


 
Ianko
Telerik team
 answered on 25 Feb 2015
1 answer
61 views
I am working in a project which works on .NET2.0 and has another architecture built on .NET2.0. I am working on dynamic data filtering in a repeater list but not able to achieve the functionality like it is shown in the demo of Telerik ASP.NET AJAX Grid control (the list should filter on key press in textbox).
I came across the demo of of Telerik's Grid control in ASP.NET where filtering works exactly i wanted. My question is whether this control is supported in .NET 2.0 architecture or not?
Marin Bratanov
Telerik team
 answered on 25 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?