Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Telerik RadComboBox in DNN Telerik RadComboBox in DNN
Previous
 
Next
New Post
7/22/2006 5:28 PM
 
Hey Gang,

I'm trying to tie in the Telerik RadComboBox
with my Dnn 4.0.2 installation.

I am running MS SQL, and I want to to connect the RadCombobox to a table that lists product categories.

A major conceptual problem I'm having is how to tie into the existing Dotnetnuke DB connection. I'm absolutely positive that the way i'm doing it, creating a new (OLE at that) connection is moronic..  declarative datarsource is what I need? I mean, it -works- (I was more successful with the telerik grid), but it would totally be outside of the scope of the native DNN caching I guess.

I created a little DNN module.. but no luck.. I am getting an error something to this effect:

DotNetNuke.Services.Exceptions.ModuleLoadException: C:\Inetpub\vhosts\mysite.com\httpdocs\DesktopModules\ArtCategories\ArtCategories.ascx.vb(1): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)

My Ascx file is so:

<%@ Control Language="vb" CodeFile="ArtCategories.ascx.vb" Inherits="Telerik.DNN.Modules.ArtCategories.ArtCategories" %>
<%@ Register TagPrefix="radcb" Namespace="Telerik.WebControls" Assembly="RadComboBox.Net2" %>
<div>
           <radcb:radcombobox id="RadComboBox1" Runat="server" Height="140px" Skin="WhiteRound" Width="150px" ShowToggleImage="True"
                            Sort="Ascending"></radcb:radcombobox>
</div>



and the codebehind is so:

Imports System
Imports System.Data.OleDb
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports DotNetNuke.Services
Imports DotNetNuke.Entities.Modules
Imports Telerik.WebControls

Namespace Telerik.DNN.Modules.ArtCategoriesModule
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase
        Implements DotNetNuke.Entities.Modules.IActionable
    Public Class ArtCategories
        Private Sub BindComboBox()
           Dim connectionString As String = String.Format("Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=mydb; User ID=,myuserid; Password=mypassword;")
            Dim dbCon As New OleDbConnection(connectionString)
            dbCon.Open()

            Dim adapter As New OleDbDataAdapter("select CategoryID, CategoryName, MasterCategoryID FROM PortalStore_Categories WHERE PortalStore_Categories.MasterCategoryID = 3", dbCon)
            Dim ds As New DataSet()
            adapter.Fill(ds)

            RadComboBox1.DataTextField = "Text"
            RadComboBox1.DataSource = ds
            RadComboBox1.DataBind()
        End Sub 'BindComboBox


        Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
            If Not Page.IsPostBack Then
                BindComboBox()
            End If
        End Sub 'Page_Load


#Region "Web Form Designer generated code"

        Protected Overrides Sub OnInit(ByVal e As EventArgs)
            '
            ' CODEGEN: This call is required by the ASP.NET Web Form Designer.
            '
            InitializeComponent()
            MyBase.OnInit(e)
        End Sub 'OnInit


        '/        Required method for Designer support - do not modify
        '/        the contents of this method with the code editor.
        '/ </summary>
        Private Sub InitializeComponent()
        End Sub 'InitializeComponent

#End Region
    End Class
End Namespace


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Telerik RadComboBox in DNN Telerik RadComboBox in DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out