CodeSmith Community
Your Code. Your Way. Faster!

.netTiers compatible with Infragistics or Telerik web controls?

Latest post 12-05-2006 11:47 AM by jmartinez. 12 replies.
  • 10-24-2006 2:46 PM

    • velum
    • Top 25 Contributor
    • Joined on 07-14-2006
    • Montréal, Qc, Canada
    • Posts 186
    • Points 4,686

    .netTiers compatible with Infragistics or Telerik web controls?

    Hi!

    I would like to know whether .netTiers is compatible with Infragistics and with Telerik web controls.

    I tried the demo version of the Telerik web controls without much success: 

    In a RadGrid, I replaced this binding <%# DataBinder.Eval(Container, "DataItem.ModuleID") %> with the wollowing one: <%# DataBinder.Eval(Container, "DataItem.ModuleIDSource.ModuleNomFR") %>, but it did not work. With the new binding, I should see Module Names instead of Module IDs in the column, but the column is now empty. On the same page, I also have an ASP GridView with this binding: <%# Eval("ModuleIDSource.ModuleNomFR") %>, and it is working, so I know for sure that ModuleIDSource.ModuleNomFR does contain values.

    On another page, I replaced an asp:DropDownList with a radC:RadComboBox, using the same properties. But I am getting an error. Here is the control:

                            <radC:RadComboBox ID="TypeModuleDropDownList" runat="server" DataSourceID="ModuleDataSource" SkinsPath="~/RadControls/ComboBox/Skins"
                                AppendDataBoundItems="true"
                                SelectedValue='<%# Bind("ModuleID") %>'
                                DataValueField="ModuleID" DataTextField="ModuleNomFR"
                                OnSelectedIndexChanged="OnSelectedTypeModuleChanged" 
                                AutoPostBack="true">
                                <Items>
                                    <radC:RadComboBoxItem  Value="" Text="Tous les types de module" Selected="True" />
                                </Items>
                            </radC:RadComboBox>


    Here is the error:

    Specified argument was out of the range of valid values.
    Parameter name: 1

    1 is supposed to be a valid value. It is working with a DropDownList

    Cheers!

    JF

     

    • Post Points: 95
  • 10-24-2006 4:49 PM In reply to

    • mcquiggd
    • Top 25 Contributor
    • Joined on 07-11-2006
    • Amsterdam
    • Posts 174
    • Points 4,375

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Hi,

    I have no experience with the third party component collection(s) you mention, but, as you have proved that the .NetTiers generated code works with standard ASP.Net controls, well, to be honest, it's perhaps an issue that should be raised with the vendor of the third party control suites...  have you tested their controls with, say, standard ASP.Net datasources such as ObjectDataSource...?

     

    David (Could people PLEASE click the 'Mark As Answer' button on the message that solved their problems - it will help others with similar questions and could potentially be included in an FAQ to save time for all of us)
    • Post Points: 5
  • 10-24-2006 11:38 PM In reply to

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    I'm using the telerik controls with Nettiers , and it all seems to work fine. I got this error when i was using an Object Datasource - but when i changed to the entity datasource contols - things worked fine. they are way better in the longer run anyways ...

     

    HTH 

    • Post Points: 95
  • 10-25-2006 6:48 AM In reply to

    • mcquiggd
    • Top 25 Contributor
    • Joined on 07-11-2006
    • Amsterdam
    • Posts 174
    • Points 4,375

    Re: .netTiers compatible with Infragistics or Telerik web controls?


    How about the TypedDataSources..?

    I looked at the UI collections and they seemed quite useful... even though out of my project budget.... Stick out tongue

    David (Could people PLEASE click the 'Mark As Answer' button on the message that solved their problems - it will help others with similar questions and could potentially be included in an FAQ to save time for all of us)
    • Post Points: 5
  • 10-25-2006 7:54 AM In reply to

    • velum
    • Top 25 Contributor
    • Joined on 07-14-2006
    • Montréal, Qc, Canada
    • Posts 186
    • Points 4,686

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Hi HTH!

    I am using strongly typed data sources. I would be curious to know why you say that entity data sources are better in the long run.

    Cheers!

    JF
     

    • Post Points: 5
  • 10-25-2006 7:57 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    I also use Telerik controls and nettiers, with no troubles as yet!

    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 35
  • 10-25-2006 2:21 PM In reply to

    • velum
    • Top 25 Contributor
    • Joined on 07-14-2006
    • Montréal, Qc, Canada
    • Posts 186
    • Points 4,686

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Hi David!

    What type of datasources are you using (Entities, Typed Datasources,...)?

    Cheers!

    JF

     

    • Post Points: 65
  • 10-25-2006 3:58 PM In reply to

    • mcquiggd
    • Top 25 Contributor
    • Joined on 07-11-2006
    • Amsterdam
    • Posts 174
    • Points 4,375

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Hi there,

    Potentially both  - in fact I use the TypedDataSources a lot, but I may also wish to bind to a specific Entity, or perhaps a TList....

    David (Could people PLEASE click the 'Mark As Answer' button on the message that solved their problems - it will help others with similar questions and could potentially be included in an FAQ to save time for all of us)
    • Post Points: 5
  • 10-26-2006 9:01 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    velum:

    Hi David!

    What type of datasources are you using (Entities, Typed Datasources,...)?

    Cheers!

    JF

     

     

    I use the typed datasource controls mate

    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 35
  • 10-26-2006 12:09 PM In reply to

    • mcquiggd
    • Top 25 Contributor
    • Joined on 07-11-2006
    • Amsterdam
    • Posts 174
    • Points 4,375

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Oops, too many Davids on this thread Big Smile
    David (Could people PLEASE click the 'Mark As Answer' button on the message that solved their problems - it will help others with similar questions and could potentially be included in an FAQ to save time for all of us)
    • Post Points: 35
  • 10-26-2006 11:03 PM In reply to

    • velum
    • Top 25 Contributor
    • Joined on 07-14-2006
    • Montréal, Qc, Canada
    • Posts 186
    • Points 4,686

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Hi!

    Ok! So many of your are using Typed DataSources. So my next question is, did you ever use Deep Load in combination with such a binding:

    <%# DataBinder.Eval(Container, "DataItem.ModuleIDSource.ModuleName") %>

    The above construc allows to see the Module Name instead of its ID. It uses the Module ID to go get the proper Module row and retrieve the Module Name.

    This is what is not working for me.

    Cheers!

    JF

     

    • Post Points: 35
  • 10-27-2006 3:34 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    EDIT: Misread your last post, will try and replicate tonight. 

     

                          <radC:RadComboBox ID="TypeModuleDropDownList" runat="server" DataSourceID="ModuleDataSource" SkinsPath="~/RadControls/ComboBox/Skins"
                                AppendDataBoundItems="true"
                                SelectedValue='<%# Bind("ModuleID") %>'
                                DataValueField="ModuleID" DataTextField="ModuleNomFR"
                                OnSelectedIndexChanged="OnSelectedTypeModuleChanged" 
                                AutoPostBack="true">
                                <Items>
                                    <radC:RadComboBoxItem  Value="" Text="Tous les types de module" Selected="True" />

    -----------------------------------------------------------------------------------/\  - could it be that telerik is treating the null value as a string when doing the selected value lookup?


                                </Items>
                            </radC:RadComboBox>

     

    Try to use 0 in the value of your blank combo box item, or anything other than "".  Im not sure if this will be the problem but from looking at the code its the only thing that i can see that may be causing it.

     

    David

    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 5
  • 12-05-2006 11:47 AM In reply to

    • jmartinez
    • Not Ranked
    • Joined on 12-05-2006
    • Posts 7
    • Points 95

    Re: .netTiers compatible with Infragistics or Telerik web controls?

    Reply |Contact |Answer

    I had the same problem when using the Telerik RadGrid

    The problem is that when trying to bind the child's objects properties in the RadGrid its displaing only null data for this fields (tough, the object properties are displayed correctly).

    For example: I have RadGrid that displays
    Payments objects with a column for the CardType description (wich is a child object)

    <radG:GridBoundColumn DataField="CardNum" HeaderText="CardNum"/>
    <radG:GridBoundColumn DataField="ExpMonth" HeaderText="ExpMonth"/>
    <radG:GridBoundColumn DataField="ExpYear" HeaderText="ExpYear"/>
    <radG:GridBoundColumn DataField="CardTypeSource.Description" HeaderText="CardTypeSource.Description">

    The payment properties were displayed correctly but the card type description was blank. 

    I asked them for support. Thats their response:

    -------------------------------------------------------------------------------------------------------------------------------------------

    We reviewed carefully the provided project and we found that the PaymentsBase class implements ICloneable and does not clone properly the sub objects. If the class implements ICloneable, the grid will call the Clone() method which should properly clone all properties and sub objects. Here is a small modification which will avoid the problem:

    TF_OERS.Entities\PaymentsBase.generated.cs
     

            #region ICloneable Members 

            ///<summary> 

            ///  Returns a Typed Payments Entity  

            ///</summary> 

            public virtual Payments Copy() 

            { 

                //shallow copy entity 

                Payments copy = new Payments(); 

                copy.ID = this.ID; 

                copy.OriginalID = this.OriginalID; 

                copy.CheckoutID = this.CheckoutID; 

                copy.Amount = this.Amount; 

                copy.Method = this.Method; 

                copy.CardType = this.CardType; 

                copy.CardNum = this.CardNum; 

                copy.ExpMonth = this.ExpMonth; 

                copy.ExpYear = this.ExpYear; 

                copy.BillingName = this.BillingName; 

                copy.BillingAddress = this.BillingAddress; 

                copy.BillingCity = this.BillingCity; 

                copy.BillingState = this.BillingState; 

                copy.BillingCountry = this.BillingCountry; 

                copy.BillingPostalCode = this.BillingPostalCode; 

                copy.CheckNum = this.CheckNum; 

                copy.CheckDate = this.CheckDate; 

                copy.CheckBank = this.CheckBank; 

                copy.ChargedStatus = this.ChargedStatus; 

                copy.Notes = this.Notes; 

                copy.DateTimeStamp = this.DateTimeStamp; 

     

                copy.CardTypeSource = (CardTypes)this.CardTypeSource.Clone(); 

                         

                copy.AcceptChanges(); 

                return (Payments)copy; 

            } 

             



    You can point this info to NetTiers also.
     

    _____________________________________________________

    I was working with .NetTiers Version 2.0.  Somebody knows if this has been corrected in .NetTiers? What do you recommend should be the approach to fix this?

    • Post Points: 5
Page 1 of 1 (13 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems