Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
108 views
I don't think this is an issue with the combobox, but it doesn't get hidden in IE7/8. It does in FF and Chrome. The list open up behind the  applet. Does anybody have an suggestions?
Tiberiu Saulean
Top achievements
Rank 1
 answered on 08 Feb 2010
1 answer
147 views
Hi,

I have a custom MOSS 2007 web part which uses a RadGrid bound to a LinqDataSource hitting a SQL DB. Everything works fine when running MOSS and SQL on the same machine, but when moving the webpart to an environment where those services reside on separate machines I run into the usual 'double-hop' issue. User on machine A authenticates to MOSS machine B; on machine B the web.config is set to impersonate; but those impersonated credentials cannot be sent to the last hop to SQL machine C.

I don't think I can get away with changing the impersonation account on the entire web application's web.config (web app is used for many, many other things than this one web part). I also don't believe getting Kerberos set up between the MOSS machine B and the SQL machine C would be acceptable for the target environment, but I'm investigating that approach just in case.

Suggestions on how this would typically be done? Best approach I've come up with so far is to:
1. Create a domain account login.
2. Grant that domain login the appropriate access on the SQL box.
3. Edit the DataClasses.designer.cs file to intercept the Get method for the table and wrap the 'return this.GetTable<tablename>();' with additional code to read in an encrypted username / password from the web.config, use them to impersonate the domain account, make the call, and then undo the impersonation.

Note that this requires editing an auto-generated file, which means having to deal with preventing re-generation so I don't lose the chnages, etc.

Any better approaches out there?

Thanks,

William
Tsvetoslav
Telerik team
 answered on 08 Feb 2010
11 answers
124 views
Hi

                In Hierarchical Data Binding child tab is not getting the theme applied.

Source code for aspx:

    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager id="ScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadTabStrip runat="server" Skin="Sunset" EnableEmbeddedSkins="true" EnableTheming="true" EnableEmbeddedScripts="true"  ID="RadTabStrip1"></telerik:RadTabStrip>
    </div>
    </form>

server side coding:

 Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Not Page.IsPostBack Then
            For i As Integer = 1 To 4
                Dim rootTab As RadTab = New RadTab
                RadTabStrip1.Tabs.Add(rootTab)
                rootTab.Text = "Root Tab " & i

                For j As Integer = 1 To 4
                    Dim childTab As RadTab = New RadTab
                    rootTab.Tabs.Add(childTab)
                    childTab.Text = "Child Tab " & i & "." & j
                Next
            Next
            RadTabStrip1.SelectedIndex = 0
        End If
    End Sub


Please help me...





Yana
Telerik team
 answered on 08 Feb 2010
7 answers
266 views
I have created a grid which is to be displayed right-to-left. This grid has a pager item which should also be displayed right-to-left. Regardless of the 'dir' setting my numeric pager item is always displayed left-to-right (but right-aligned). I would like to know how to enforce RTL direction on the numeric pager item so that the numeric hyperlinks are displayed RTL.
I have created a simple page, shown below, which exhibits this behaviour.

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ 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" dir="rtl">  
<head runat="server">  
    <title>Numeric Pager RTL Test</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
      
    <div dir="rtl">  
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"/>  
          
        <telerik:RadGrid ID="RadGrid1" runat="server" PageSize="5" Skin="Vista" AllowPaging="True" ShowGroupPanel="True" Width="100%">  
            <PagerStyle AlwaysVisible="True" Mode="NumericPages" PageButtonCount="5" /> 
            <MasterTableView CommandItemDisplay="Top" Dir="RTL"/>  
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 

Default.aspx.cs
using System;  
using System.Data;  
using System.Globalization;  
 
public partial class _Default : System.Web.UI.Page   
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-SA");  
 
        DataSet ds = new DataSet("NumericPagerDataSet");  
        DataTable dt = new DataTable("GridTable");  
        dt.Columns.Add("Id", System.Type.GetType("System.String"));  
        ds.Tables.Add(dt);  
 
        for (int i = 0; i < 10; i++)  
        {  
            DataRow dr = dt.NewRow();  
            dr.SetField("Id", i.ToString());  
            dt.Rows.Add(dr);  
        }  
 
        RadGrid1.DataSource = ds;  
        RadGrid1.DataBind();  
    }  
}  

The following demo: http://demos.telerik.com/aspnet-ajax/grid/examples/styles/righttoleft/defaultcs.aspx correctly displays the numeric pager hyperlinks right-to-left. I cannot see any obvious difference between my page and the Telerik demo.
I am using RadControls for ASP.NET AJAX Q3 2008.
Any help is greatly appreciated.
Dimo
Telerik team
 answered on 08 Feb 2010
1 answer
79 views
I bought You Program solution.

But I need to customizing your component.

For example, I could use proglam Skin (Office2007, Sunset, WebBlue etc.). but I want to customizing skin color.

Can I change you skin color?

If I could change it. How to change it??
Shinu
Top achievements
Rank 2
 answered on 08 Feb 2010
5 answers
166 views
Hi, 

I thought that telerik chart can support a series time graph. 
(for example, x axis is date/time(YYmmDD HH:MM) and y axis is Temperature).
Need to displace various room temperatures measured on the different time intervals in the same graph.
(let say, I have a data for .. 

Rm1.
___DATE____  __Temp__
091229 09:00    70
091229 10:00    71
091229 12:00    74
091229 13:00    72
.     .
.     .
.     .

Rm2.
___DATE____  __Temp__
091229 09:10    73
091229 10:20    74
091229 12:30    77
091229 13:20    76
.     .
.     .
.     .


Rm3.
___DATE____  __Temp__
091229 09:15    72
091229 10:10    73
091229 11:30    76
091229 13:20    76
.     .
.     .
.     .

Rm4.
.      .
.      .
.      .

my real data have less than 10mins various interval.  I need to display at least 6 month's information in one graph. 

So, does RadChart can support this?? 
I assumed that it can. But, I cannot be sure based on the evaluation version. 

Thank you for your supports in advance.

Ves
Telerik team
 answered on 08 Feb 2010
2 answers
50 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
148 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
126 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 ObjectByVal 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 ObjectByVal e As System.EventArgs) 
        'populate ddl2 
 
 
    End Sub 
 
    Protected Sub RadGrid1_ItemCommand(ByVal source As ObjectByVal 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 ObjectByVal 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 StringAs 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
132 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 { getset; } 
        private RadAjaxManager RadAjaxManager1 { getset; } 
        private RadAjaxLoadingPanel RadAjaxLoadingPanel1 { getset; } 
        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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?