Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
55 views
Hi,

I have a radsplitter with two radpanes.
1. one radpane contains radgrid.
2. second radpane contains raddockzone control.
3. That raddockzone control contains 4 to 5 raddock controls.
4. Each raddock controls contains 5 to 10 asp.net controls,

the height of the raddockzone is approximately 1500.

the problem is when the webpage loads the raddockzone content is not fit in the second radpane, it is coming outside of the radpane, in internet explorer IE(version 6).

but in mozilla firefox it is working fine.

Could any one plz help me how to fix it in internet explorer.
subrahmanyam kameswara
Top achievements
Rank 1
 answered on 08 Feb 2010
2 answers
150 views
hi all
i create project with using radeditor 2008 q3 (2008.3.1314.20)
i am using access database
example below
page load
{
     dataset ds = c1.getaccessdata("select data from raddata where pageid='temp';");
     RadEditor1.Content = ds.Tables[0].Rows[0].ItemArray[0].ToString();
     ds.clear();
}
protected void Button1_Click(object sender, EventArgs e)
    {
        string radvalue = con.correctstr(RadEditor1.Content);
        String temp = "UPDATE raddata SET data='" + RadEditor1.Content + "' WHERE pageid='temp';";
        con.accesssetdata(temp);
        return;
    }

this is rough coding just giving idea

please help me with this

on page i am using:
RadScriptManager
RadMenu
RadEditor


please reply fast as this is my college project and i have to submit it after 2 days
please needed help very badly

RadEditor
sadiqabbas
Top achievements
Rank 1
 answered on 08 Feb 2010
1 answer
129 views
hi

I am trying to populate a dropdownlist(ddl2) based on a the selectedvalue of  ddl1 ?

D

Imports Telerik.Web.UI 
 
Partial Class dropdowninformtemplate 
    Inherits System.Web.UI.Page 
 
 
    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
        If e.Item.ItemType = Telerik.Web.UI.GridItemType.EditFormItem And e.Item.IsInEditMode Then 
 
            Dim item As GridEditFormItem 
            item = e.Item 
 
            Dim ddl As DropDownList = CType(item.FindControl("ddl1"), DropDownList) 
            Dim cmb As RadComboBox = item.FindControl("cmb") 
 
            AddHandler ddl.SelectedIndexChanged, AddressOf ddl1_SelectedIndexChanged 
       
            ddl.DataSource = DataConnection.GetDataTable("select * from products") 
            ddl.DataTextField = "productname" 
            ddl.DataValueField = "productid" 
            ddl.DataBind() 
        End If 
    End Sub 
 
 
    Protected Sub ddl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) 
        'populate ddl2 
 
 
    End Sub 
 
    Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand 
 
        If e.Item.IsInEditMode Then 
            Dim item As GridEditFormItem 
            item = CType(e.Item, GridEditFormItem) 
 
            Dim ddl2 As DropDownList = item.FindControl("ddl2") 
 
 
        End If 
 
 
    End Sub 
 
    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
        RadGrid1.DataSource = DataConnection.GetDataTable("select * from customers") 
 
    End Sub 
 
   
End Class 
 


put the DataConnection class in the App_Code folder:

Imports Microsoft.VisualBasic 
Imports System.Data 
Imports System.Data.SqlClient 
 
 
Public Class DataConnection 
 
 
    Public Shared Function GetDataTable(ByVal query As String) As DataTable 
        Dim ConnString As String = ConfigurationManager.ConnectionStrings("NorthwindConnectionString").ConnectionString 
        Dim conn As SqlConnection = New SqlConnection(ConnString) 
        Dim adapter As SqlDataAdapter = New SqlDataAdapter 
        adapter.SelectCommand = New SqlCommand(query, conn) 
        Dim table1 As New DataTable 
        conn.Open() 
        Try 
            adapter.Fill(table1) 
        Finally 
            conn.Close() 
        End Try 
        Return table1 
    End Function 
End Class 
 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="dropdowninformtemplate.aspx.vb" 
    Inherits="dropdowninformtemplate" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server"> 
            <MasterTableView EditMode="EditForms"> 
                <Columns> 
                    <telerik:GridEditCommandColumn> 
                    </telerik:GridEditCommandColumn> 
                </Columns> 
                <EditFormSettings EditFormType="Template"> 
                    <FormTemplate> 
                        <asp:DropDownList ID="ddl1" runat="server" AutoPostBack="true"> 
                        </asp:DropDownList> 
                        <asp:DropDownList ID="ddl2" runat="server"> 
                        </asp:DropDownList> 
                    </FormTemplate> 
                </EditFormSettings> 
            </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 
Martin
Telerik team
 answered on 08 Feb 2010
1 answer
137 views

Hello,


When I create a Web Server Control with RadAjaxManager, RadAjaxLoadingPanel and RadGrid inside, all working properly, but if for example I change page on RadGrid, Ajax works fine, but on second time I change the page, Ajax stops working, and the third time I change page, Ajax works fine again...


I don't understand why this append


My code here...


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Linq; 
using System.Text; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
using System.IO; 
using System.Reflection; 
using darwin.sadj.shared.core; 
[assembly: WebResource("darwin.sadj.shared.ui.etiqueta.Imagens.delete.gif", "image/gif")] 
namespace darwin.sadj.shared.ui.etiqueta 
{ 
    [ToolboxData("<{0}:ListEtiqueta runat=server></{0}:ListEtiqueta>")] 
    public class ListEtiqueta : WebControl 
    { 
        private RadGrid gridEtiquetas { get; set; } 
        private RadAjaxManager RadAjaxManager1 { get; set; } 
        private RadAjaxLoadingPanel RadAjaxLoadingPanel1 { get; set; } 
        protected override void OnInit(EventArgs e) 
        { 
            this.Controls.Clear(); 
            RadAjaxLoadingPanel1 = new RadAjaxLoadingPanel(); 
            RadAjaxLoadingPanel1.ID = this.ID + "_RadAjaxLoadingPanel"; 
            this.Controls.Add(RadAjaxLoadingPanel1); 
            RadAjaxManager1 = new RadAjaxManager(); 
            RadAjaxManager1.ID = this.ID + "_RadAjaxManager"; 
            this.Controls.Add(RadAjaxManager1); 
            gridEtiquetas = new RadGrid(); 
            gridEtiquetas.ID = this.ID + "_gridEtiquetas"; 
            gridEtiquetas.NeedDataSource += new GridNeedDataSourceEventHandler(gridEtiquetas_NeedDataSource); 
            gridEtiquetas.ItemCommand += new GridCommandEventHandler(gridEtiquetas_ItemCommand); 
            this.Controls.Add(gridEtiquetas); 
            base.OnInit(e); 
        } 
        protected override void RenderContents(HtmlTextWriter output) 
        { 
            if (this.Visible == true) 
            { 
                this.RadAjaxLoadingPanel1.RenderControl(output); 
                this.RadAjaxManager1.RenderControl(output); 
                this.gridEtiquetas.RenderControl(output); 
            } 
        } 
        protected override void OnLoad(EventArgs e) 
        { 
            if (!this.Page.IsPostBack) 
            { 
                GridBoundColumn colunaID = new GridBoundColumn(); 
                gridEtiquetas.Columns.Add(colunaID); 
                colunaID.DataField = "Id"; 
                colunaID.UniqueName = "Id"; 
                colunaID.HeaderText = "Id"; 
                GridBoundColumn colunaDescricao = new GridBoundColumn(); 
                gridEtiquetas.Columns.Add(colunaDescricao); 
                colunaDescricao.DataField = "Descricao"; 
                colunaDescricao.UniqueName = "Descricao"; 
                colunaDescricao.HeaderText = "Descrição"; 
                GridButtonColumn colunaDelete = new GridButtonColumn(); 
                gridEtiquetas.Columns.Add(colunaDelete); 
                colunaDelete.ButtonType = GridButtonColumnType.ImageButton; 
                colunaDelete.CommandName = "Delete"; 
                colunaDelete.ConfirmDialogType = GridConfirmDialogType.RadWindow; 
                colunaDelete.ConfirmText = "Deseja apagar este registo?"; 
                colunaDelete.ConfirmTitle = "Confirmação"; 
                colunaDelete.ImageUrl = Page.ClientScript.GetWebResourceUrl(this.GetType(), "darwin.sadj.shared.ui.etiqueta.Imagens.delete.gif"); 
                colunaDelete.Text = "Apagar"; 
                colunaDelete.UniqueName = "colunaDelete"; 
                colunaDelete.ItemStyle.Width = Unit.Pixel(22); 
            } 
            gridEtiquetas.AutoGenerateColumns = false; 
            gridEtiquetas.GridLines = GridLines.None; 
            gridEtiquetas.MasterTableView.AllowCustomPaging = true; 
            gridEtiquetas.MasterTableView.AllowPaging = true; 
            gridEtiquetas.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrev; 
            gridEtiquetas.MasterTableView.DataKeyNames = new string[] { "Id" }; 
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(gridEtiquetas, gridEtiquetas, RadAjaxLoadingPanel1); 
             
            base.OnLoad(e); 
        } 
        protected void gridEtiquetas_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            EtiquetaController controller = new EtiquetaController(); 
            int TotalRecords = 0; 
            ((RadGrid)source).DataSource = controller.getListEtiqueta(((RadGrid)source).MasterTableView.CurrentPageIndex, ((RadGrid)source).MasterTableView.PageSize, out TotalRecords); 
            ((RadGrid)source).MasterTableView.VirtualItemCount = TotalRecords; 
        } 
        protected void gridEtiquetas_ItemCommand(object source, GridCommandEventArgs e) 
        { 
            if (e.CommandName == "Delete") 
            { 
                EtiquetaController controller = new EtiquetaController(); 
                controller.deleteEtiqueta(Convert.ToInt64(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"])); 
            } 
        } 
    } 
} 

Nikolay Rusev
Telerik team
 answered on 08 Feb 2010
1 answer
158 views
I have a simple RadGrid with 4 GridBoundColumn, I've no other particular properties set beside the basic. The problem i have is that when the text is too long for a column it wraps correctly in IE, but in Chrome and Safari it doesn't wrap at all, it moves all other columns across the screen and looks quite messy.

Is there a way to do this in a uniform manner on all browsers.
Dimo
Telerik team
 answered on 08 Feb 2010
1 answer
198 views
Hello...

I was wondering how I could prompt a user for input based on a server side value.

Example:
User scans a barcode into a textbox
I parse the barcode with a class I wrote serverside
If the scanned barcode starts with an "s" I need to prompt the user for a quantity, if not "s" then I continue with the code using the quantity of 1.

So If there is an "s" I need to pause the code until I get the user input. Or maybe use ajax somehow to return the quantity and call a serverside function to continue??????

Thank you
Georgi Tunev
Telerik team
 answered on 08 Feb 2010
1 answer
132 views
How can show the Ajax loading panel in RadControl while navigate through next / prev link?
Shinu
Top achievements
Rank 2
 answered on 08 Feb 2010
1 answer
127 views
hi all.
on my webform  i placed a RadNumericTextBox.
how do i set its value to 0 from a simple java_script function that i call?
Shinu
Top achievements
Rank 2
 answered on 08 Feb 2010
2 answers
126 views
I have download the Dynamic Data Field Templates example you created for some of the rad control.  Do you have a field template example using RadBinary image and Dynamic Data using L2S connected to Sql Server 2008 with a column dbtype of image?  I ahve been trying to make it work and am getting familiar with creating my own custom FieldTemplates using UIHint ect. but have not been able to get RadBinary image working, If you could provid an example in Vb.net that would be great.

Thank you,

Daniel Elebash
Rosen
Telerik team
 answered on 08 Feb 2010
2 answers
111 views
How to Retrive Images from Database in RadEditor. ?

Suppose i design blogs than i need to display Text As well as Images from Database .
How is it possible . ?
Dhruval Dave
Top achievements
Rank 1
 answered on 08 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?