Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
Hi,

Could you show me how to make the radconfirm window movable. I'm using the lastest version of RadControls for ASP.NET.

Regards Ed.
Georgi Tunev
Telerik team
 answered on 07 Aug 2008
1 answer
256 views

 Hi guys,

Firstly, great work on the components you have to offer, I am very impressed with the demos. I will be purchasing these if they can do the job I am trying to do.

I am using an ascx User Control within a RadGrid that I have been trying to get to work using an SQL datasource to populate a dropdownlist when in edit/update mode. The edit form dropdownlists need to be primarily set to the existing values in the sql datatable. The normal gridview displays the correct index data however the user control edit form does not. I have followed the Live Demo model for Grid/Examples/UserControlEditForm using DefaultVB.aspx and EmployeeDetailsVB.ascx and tried to adapt it for this scenario.

My code is as follows:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="CampaignGrid">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="CampaignGrid" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid etc...
  <MasterTableView etc...
    <Columns>
      <telerik:GridBoundColumn UniqueName="Category" HeaderText="campaignsCategoryID" DataField="campaignsCategoryID">
        <HeaderStyle Width="60px"></HeaderStyle>
      </telerik:GridBoundColumn>
      etc...
    </Columns>

    <EditFormSettings UserControlName="CampaignDetailsVB.ascx" EditFormType="WebUserControl">
      <EditColumn UniqueName="EditCommandColumn1">
      </EditColumn>
    </EditFormSettings>

  </MasterTableView>
</telerik:RadGrid>

The RadGrid is populated via it's code behind and works fine as per your example in...

The .ascx file contains multiple <asp:textbox>'s and 2 <asp:DropDownList>'s

The asp:textbox's work just fine in the ascx fil as I have them set up this way:

  <asp:textbox id="Name" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Name"  ) %>' tabIndex="1">
  </asp:textbox>

The <asp:DropDownList>'s are set up this way:

  <asp:DropDownList id="Category" runat="server" tabindex="1">
  <asp:DropDownList id="DefaultGreeting" runat="server" tabindex="2">

In the VB code behind for this ascx file I have the following:

Imports System
Imports System.Collections
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports Telerik.Web.UI

Partial Class Admin_CampaignDetailsVB
    Inherits System.Web.UI.UserControl

    Private _dataItem As Object = Nothing

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub

#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

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

#End Region

    Public Property DataItem() As Object
        Get
            Return Me._dataItem
        End Get
        Set(ByVal value As Object)
            Me._dataItem = value
        End Set
    End Property

    Protected Sub CampaignDetails_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs)

        Dim sqlCategory As String = "select campaignsCategoryID, Category from tblCampaignsCategory"
        Category.DataSource = GetDr(sqlCategory)
        Category.DataBind()

        Dim CategoryValue As Object = DataBinder.Eval(DataItem, "campaignsCategoryID")
        If CategoryValue.Equals(DBNull.Value) Then
            CategoryValue = 0
        End If

        Category.SelectedIndex = CategoryValue
        Category.DataSource = Nothing

        Dim sqlGreeting As String = "select campaignsDefaultGreetingsID, DefaultGreeting from tblCampaignsDefaultGreetings"
        DefaultGreetings.DataSource = GetDr(sqlGreeting)
        DefaultGreetings.DataBind()

        Dim GreetingValue As Object = DataBinder.Eval(DataItem, "campaignsDefaultGreetingsID")
        If GreetingValue.Equals(DBNull.Value) Then
            GreetingValue = 0
        End If
        DefaultGreetings.SelectedIndex = GreetingValue
        DefaultGreetings.DataSource = Nothing

    End Sub

    Private Function GetDr(ByVal sqlText As String) As DataTable

        Dim conn As SqlConnection = New SqlConnection(ConnectionString())
        Dim adapter As SqlDataAdapter = New SqlDataAdapter
        adapter.SelectCommand = New SqlCommand(sqlText, conn)
        Dim table1 As New DataTable
        conn.Open()
        Try
            adapter.Fill(table1)
        Finally
            conn.Close()
        End Try
        Return table1

    End Function

    Private Function ConnectionString() As String
        Dim ConnString As String = ConfigurationManager.ConnectionStrings("myConnectionString").ConnectionString
        Return ConnString
    End Function

End Class

The Protected Sub CampaignDetails_DataBinding is the area that doesnt seem to want to work properly. Like I said, I used your model for Grid/Examples/UserControlEditForm: DefaultVB.aspx and EmployeeDetailsVB.ascx and tried to adapt it for this scenario.

The edit form loads properly but the asp:dropdownlists both display "System.Data.DataRowView" for each item in the datatable??? The grid subsequently does not update at all, it appears to spend the time updating but justs stays in edit mode.

I would greatly appreciate any help you can offer for this case as I have spent countless days searching your forums and others externally and there is nowhere that shows how to work with this type of situation.

Many thanks in advance.

Nikolay Rusev
Telerik team
 answered on 07 Aug 2008
1 answer
82 views
On MSDN documentation pages there is the ability for community members to add "Community Content" comments and tips relavent to the topic.  This site feature allows users to share in the context of a topic (ie Treeview example page), rather than in the generic forum.  Look at the bottom of this page:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.aspx

(Note:  The comment on the example page above really should be a forum post, so not a great example, but you get the point)

Adding this type of Community support would improve sharing of information between your users.
Ivo
Telerik team
 answered on 07 Aug 2008
1 answer
83 views
Hi,

I am using rad editior. The problem is that its running on my machine smoothly but while i m deploying it on live server the image manager dialog is coming disable.

Its very urgent. Can anybody help me this.

The framework on my machine is 2.0 and on server is 3.5.

Thanks in Advance
Ramesh Prasad

Rumen
Telerik team
 answered on 07 Aug 2008
2 answers
106 views
Hey guys

I have a simple treeview, however the OnNodeCheck is not firing. The Treeview exists on a very complex page with RadMultiPage's, RadTabStrip's, another RadTreeView, MultiView's, etc. My current OnNodeCheck code works if I take it out and put it on a clean aspx page.

But it doesn't work on the complex aspx page I want it to :(. I tested if a single asp:checkbox auto post backs properly when checked and it does.
Atanas Korchev
Telerik team
 answered on 07 Aug 2008
5 answers
120 views
Hello Telerik Team,

Is there any way to pop a RadWindow out of another RadWindow?

What i have is a button that opens a Radwindow, in this RadWindow is an aspx with an image on it, when the user clicks the image another RadWindow will open.  The only problem i have is that the second RadWindow (When you click on the image) opens and is confined with the first RadWindow.  Is there anyway to get it to open as a separate RadWindow?

Thanks in Advance

Ian
Ian
Top achievements
Rank 1
 answered on 07 Aug 2008
3 answers
113 views
Hi,
I have created a custom control with two comboboxes and labels. i am using the selected changed event there. So if use any postback event it gives a javascript error:
SysArgument Undefinedexception: value cannot be undefined.parameter name:Type.


The same control without using Radajaxpanel is working fine. please give me a solution to work with my custom control inside the rad ajaxpanel (without post back)

Thx


Kiara
Top achievements
Rank 1
 answered on 07 Aug 2008
2 answers
172 views

Suddenly getting this error - not sure why.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The 'FilterMenu' property cannot be set declaratively.

Source Error:

Line 104:            <FilterMenu EnableTheming="True" Skin="Outlook">
Line 105:                <CollapseAnimation Duration="200" Type="OutQuint" />
Line 106: </FilterMenu>Line 107:        </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 07 Aug 2008
1 answer
117 views
Hi,

I bought a suite of Telerik control and updated *.dll files in my project. I am still finding "Trial Version Message" on controls.

What is difference between *.dll files in Bin folder and Bin35 folder?

Please guide me the process to update to licensed version.

Aamir
Princy
Top achievements
Rank 2
 answered on 07 Aug 2008
5 answers
151 views

I'm looking at the dock skin CSS files, and they all set the padding for the dock zone to 4px 0 0 4px.  Next, they set padding-right to 4px in a way that is apparently (according to the comments) hidden from IE6.

BUT, if you look at the dock.css file that appears in the install folder under skins, the last line is:

.raddockzone
{
    padding: 4px !important;
}

Doesn't this force the padding for the entire dock zone to 4px regardless of what you put in the skin's CSS file?  (I'm assuming, of course, that you're not overriding the setting via a selector for #dockzoneid.)

I've tested this by altering these settings in my skin's CSS file and don't see any affect, though I know that things are a little complex in there, so I wanted to verify this.

I'm suspecting these were settings that were left over from earlier implementations, and that the setting of this to 4px was to fix something with scroll bars.

Can you confirm?

Thank you.

Sophy
Telerik team
 answered on 07 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?