Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
I am using VS2008 to build a RadMenu. When in Design mode, I am creating a RadMenu using the menu builder to create root items and child items. My menu is fairly lengthy and each root item contains several child items. When I try to reorder the root and child items by simply dragging and dropping the items within the menu builder the operation appears to work however, odd inconsistencies are heppening when I save the menu. In some cases it doesn't actually reorder the items and in some cases it creates duplicate item entries etc. The only way I seem to be able to do any reordering where it works consistently is by manually changing the order within the html within source mode. Has there been any bugs reported for the RadMenu where there are inconsistencies in using the menu builder? I am using the AJAX 2009.3.1314.35 version.
Veronica
Telerik team
 answered on 30 Mar 2010
1 answer
645 views
Hello
I have 2 radgrids in my page. Both are populated when I click on a button "valider" in my form. When I click on the edit command on one or the other grid, the grid I clicked on disappear. If I click on the edit of the other grid (while the first one is dissapeared), the first one appear in edit mode and the one I just click on, disappear!
Here is my code
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FEN_ORIENTEUR_MODIFIE_ELEVE.aspx.vb" Inherits="ChoixDeCours.FEN_ORIENTEUR_MODIFIE_ELEVE" %> 
<%@ 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"> 
<%@ Register TagPrefix="header" TagName="a" Src="Menu.ascx" %>   
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Choix de cours</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <header:a ID="A1" runat="server" />   
    <div> 
    <asp:scriptmanager ID="ScriptManager1" runat="server" ></asp:scriptmanager> 
     <table border="3">  
            <tr> 
                <td><asp:Label ID="LbFiche" runat="server" Text="Entrer le numéro de fiche"></asp:Label></td>  
                <td><telerik:RadTextBox runat="server" ID="TxtFiche"></telerik:RadTextBox></td>  
            </tr> 
            <tr> 
                <td colspan="2" align="center"><asp:Button id="Btn_Valider" runat="server" Text="Valider"></asp:Button></td>  
            </tr> 
            <tr> 
                <td colspan="2" align="center"><asp:Label ID="LbPrenom" runat="server"></asp:Label>&nbsp;<asp:Label ID="LbNom" runat="server" ></asp:Label></td>  
            </tr> 
        </table> 
        <br /> 
        <table> 
            <tr> 
                <td> 
                    <telerik:RadGrid ID="RadGridCours" runat="server" Skin="Office2007">  
                        <MasterTableView   
                            AutoGenerateColumns="false"    
                            HierarchyDefaultExpanded="true"   
                            EditMode="InPlace"   
                            CommandItemDisplay="bottom"   
                            CommandItemStyle-HorizontalAlign="Center" 
                            CommandItemSettings-AddNewRecordText="Ajouter un nouveau cours" 
                            CommandItemSettings-RefreshText="Rafraîchir">  
                              
                            <CommandItemSettings   
                                AddNewRecordText="Ajouter un nouveau cours"   
                                RefreshText="Rafraîchir">  
                            </CommandItemSettings> 
                              
                            <Columns> 
                                <telerik:GridEditCommandColumn  
                                    ButtonType="ImageButton"   
                                    UniqueName="EditCommandColumn">  
                                </telerik:GridEditCommandColumn> 
                                  
                                <telerik:GridButtonColumn   
                                    ConfirmText="Supprimer ce cours pour cet Ã©lève?"   
                                    ConfirmDialogType="RadWindow"   
                                    ConfirmTitle="Supprimer"   
                                    ButtonType="ImageButton" 
                                    CommandName="Delete"   
                                    Text="Supprimer"   
                                    UniqueName="DeleteColumnCours">  
                                    <ItemStyle HorizontalAlign="Center"  /> 
                                </telerik:GridButtonColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="FICHE"   
                                    HeaderText="Fiche"   
                                    Visible="false" 
                                    ReadOnly="true">  
                                </telerik:GridBoundColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="ID_ECO"   
                                    HeaderText="École"   
                                    Visible="false" 
                                    ReadOnly="true">  
                                </telerik:GridBoundColumn> 
                                                                
                                <telerik:GridBoundColumn   
                                    DataField="ID_COURS"   
                                    HeaderText="Cours">  
                                </telerik:GridBoundColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="DESCRIPTION"   
                                    Headertext="Description">  
                                </telerik:GridBoundColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="NB_PERIODES"   
                                    HeaderText="Nbs périodes">  
                                </telerik:GridBoundColumn> 
                                  
                                 <telerik:GridBoundColumn   
                                    DataField="PRIORITE"   
                                    HeaderText="Priorité">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                              
                            <EditFormSettings> 
                            <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
                            </EditFormSettings> 
 
                            <CommandItemStyle HorizontalAlign="Center"></CommandItemStyle> 
                              
                        </MasterTableView> 
                    </telerik:RadGrid> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                <br /> 
                <telerik:RadGrid ID="RadGridParcours" runat="server" Skin="Office2007">  
                        <MasterTableView   
                            AutoGenerateColumns="false"    
                            HierarchyDefaultExpanded="true"   
                            EditMode="InPlace"   
                            CommandItemDisplay="None">  
                              
                            <Columns> 
                                <telerik:GridEditCommandColumn  
                                    ButtonType="ImageButton"   
                                    UniqueName="EditCommandColumn">  
                                </telerik:GridEditCommandColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="QUESTION" 
                                    ReadOnly="true"   
                                    HeaderText="Parcours">  
                                </telerik:GridBoundColumn> 
                                  
                                <telerik:GridBoundColumn   
                                    DataField="Choix1"   
                                    HeaderText="Choix de l'élève">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
 
                            <EditFormSettings> 
                            <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
                            </EditFormSettings> 
 
                            <CommandItemStyle HorizontalAlign="Center"></CommandItemStyle> 
                        </MasterTableView> 
                    </telerik:RadGrid> 
                </td> 
            </tr> 
         </table> 
    </div> 
    </form> 
</body> 
</html> 
 
Imports System.Data.SqlClient  
Imports Telerik.Web.UI  
Partial Public Class FEN_ORIENTEUR_MODIFIE_ELEVE  
    Inherits System.Web.UI.Page  
    Public fonctionsvbs As New fonctionVb  
    Dim dsChoixCoursEleve As New DataSet  
    Dim dsChoixParcoursEleve As New DataSet  
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
          
    End Sub 
 
    Private Sub Btn_Valider_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles Btn_Valider.Click  
        CreerGrids()  
    End Sub 
 
    Private Sub CreerGrids()  
        Dim strEleve As String 
        Dim myDaEleve As New SqlDataAdapter  
        Dim cmdEleve As New SqlCommand  
        Dim dsEleve As New DataSet  
        Dim strChoixCoursEleve As String 
        Dim myDaChoixCoursEleve As New SqlDataAdapter  
        Dim cmdChoixCoursEleve As New SqlCommand  
        Dim strChoixParcoursEleve As String 
        Dim myDaChoixParcoursEleve As New SqlDataAdapter  
        Dim cmdChoixParcoursEleve As New SqlCommand  
        Dim MySQLCoursRequis As String 
        Dim myDaCoursRequis As New SqlDataAdapter  
        Dim cmdCoursRequis As New SqlCommand  
        Dim dsCoursRequis As New DataSet  
        Dim strsqlAnglais As String 
        Dim myDaAnglais As New SqlDataAdapter  
        Dim cmdAnglais As New SqlCommand  
        Dim dsAnglais As New DataSet  
 
        strEleve = "SELECT GPM_T_ECO.ANNEE, GPM_E_DAN.STATUT_DON_AN,GPM_E_DAN.CLASSE, GPM_E_ELE.FICHE, GPM_E_ELE.NOM, GPM_E_ELE.PNOM, GPM_E_ADR.ENVOI_MEQ, GPM_E_ADR.DATE_FIN_ADR, GPM_T_ECO.ECO, GPM_T_ECO.ID_ECO" & _  
               " FROM ((GPM_E_DAN INNER JOIN GPM_T_ECO ON GPM_E_DAN.ID_ECO = GPM_T_ECO.ID_ECO) INNER JOIN GPM_E_ELE ON GPM_E_DAN.FICHE = GPM_E_ELE.FICHE) INNER JOIN GPM_E_ADR ON GPM_E_ELE.FICHE = GPM_E_ADR.FICHE" & _  
               " WHERE (((GPM_E_DAN.STATUT_DON_AN)='a') AND ((GPM_E_ELE.FICHE)=" & Me.TxtFiche.Text & ") AND ((GPM_E_ADR.ENVOI_MEQ)='1') AND ((GPM_E_ADR.DATE_FIN_ADR) Is Null) AND ((GPM_T_ECO.ID_ECO)=" & Session("sID_ECO") & "));" 
 
        cmdEleve = New SqlCommand(strEleve, Me.fonctionsvbs.myConnGPI)  
        myDaEleve = New SqlDataAdapter(cmdEleve)  
        Me.fonctionsvbs.myConnGPI.Open()  
        myDaEleve.Fill(dsEleve)  
        Me.fonctionsvbs.myConnGPI.Close()  
 
        If dsEleve.Tables(0).Rows.Count > 0 Then 
            Me.LbNom.Text = dsEleve.Tables(0).Rows(0).Item("NOM")  
            Me.LbPrenom.Text = dsEleve.Tables(0).Rows(0).Item("PNOM")  
            Session("sFiche") = dsEleve.Tables(0).Rows(0).Item("FICHE")  
            Session("sNiveau") = dsEleve.Tables(0).Rows(0).Item("CLASSE")  
 
            strChoixCoursEleve = "SELECT * FROM T_ELEVE_CHOIX_COURS WHERE FICHE=" & Session("sFiche") & " ORDER BY PRIORITE" 
            cmdChoixCoursEleve = New SqlCommand(strChoixCoursEleve, Me.fonctionsvbs.myConnChoixCours)  
            myDaChoixCoursEleve = New SqlDataAdapter(cmdChoixCoursEleve)  
            Me.fonctionsvbs.myConnChoixCours.Open()  
            myDaChoixCoursEleve.Fill(dsChoixCoursEleve)  
            Me.fonctionsvbs.myConnChoixCours.Close()  
            Me.RadGridCours.DataSource = dsChoixCoursEleve  
            Me.RadGridCours.DataBind()  
 
            'Va chercher tous les cours requis  
            MySQLCoursRequis = "SELECT GPM_E_CRS_ELE.FICHE, GPM_E_CRS_ELE.CRS, GPM_T_ECO.ANNEE, GPM_E_CRS_ELE.PRES_CHX_CRS, GPM_T_CRS.NB_PER_CYCLE FROM (GPM_E_CRS_ELE INNER JOIN GPM_T_CRS ON (GPM_E_CRS_ELE.CRS = GPM_T_CRS.CRS) AND (GPM_E_CRS_ELE.ID_ECO = GPM_T_CRS.ID_ECO)) INNER JOIN GPM_T_ECO ON GPM_E_CRS_ELE.ID_ECO = GPM_T_ECO.ID_ECO WHERE (((GPM_E_CRS_ELE.FICHE)=" & Session("sFiche") & ") AND ((GPM_T_ECO.ANNEE)=" & Session("sAnneePrevisionnelle") & ") AND ((GPM_E_CRS_ELE.PRES_CHX_CRS)='1'));" 
            cmdCoursRequis = New SqlCommand(MySQLCoursRequis, Me.fonctionsvbs.myConnGPI)  
            myDaCoursRequis = New SqlDataAdapter(cmdCoursRequis)  
            Me.fonctionsvbs.myConnGPI.Open()  
            myDaCoursRequis.Fill(dsCoursRequis)  
            Me.fonctionsvbs.myConnGPI.Close()  
 
            'Va chercher dans quel parcours l'élève est avec la table T_ELEVE_PARCOURS  
            For Each rowAnglais In dsCoursRequis.Tables(0).Rows  
 
                strsqlAnglais = "SELECT * FROM T_ELEVE_PARCOURS WHERE ID_ECO = " & Session("sID_ECO") & " AND ID_COURS = '" & rowAnglais.Item("CRS").ToString & "'" 
                cmdAnglais = New SqlCommand(strsqlAnglais, Me.fonctionsvbs.myConnChoixCours)  
                myDaAnglais = New SqlDataAdapter(cmdAnglais)  
                Me.fonctionsvbs.myConnChoixCours.Open()  
                myDaAnglais.Fill(dsAnglais)  
                Me.fonctionsvbs.myConnChoixCours.Close()  
 
                If dsAnglais.Tables(0).Rows.Count > 0 Then 
                    Session("sParcours") = dsAnglais.Tables(0).Rows(0).Item("PARCOURS")  
                    Exit For 
                End If 
            Next 
 
            strChoixParcoursEleve = "SELECT T_PARCOURS_CHOIX.QUESTION, T_PARCOURS_CHOIX.NIVEAU, T_ELEVE_CHOIX_PARCOURS.FICHE, T_PARCOURS_CHOIX.ID_ECO, T_PARCOURS_CHOIX.[ACTIF], CASE WHEN CHOIX=0 THEN 'Non' ELSE 'Oui' END AS Choix1, T_PARCOURS_CHOIX.PARCOURS FROM T_ELEVE_CHOIX_PARCOURS INNER JOIN T_PARCOURS_CHOIX ON (T_ELEVE_CHOIX_PARCOURS.PARCOURS = T_PARCOURS_CHOIX.POUR_QUEL_PARCOURS) AND (T_ELEVE_CHOIX_PARCOURS.ID_ECO = T_PARCOURS_CHOIX.ID_ECO) WHERE (((T_PARCOURS_CHOIX.NIVEAU)=" & Session("sNiveau") & ") AND ((T_ELEVE_CHOIX_PARCOURS.FICHE)=" & Session("sFiche") & ") AND ((T_PARCOURS_CHOIX.ID_ECO)=" & Session("sID_ECO") & ") AND ((T_PARCOURS_CHOIX.[ACTIF])=1)AND ((T_PARCOURS_CHOIX.PARCOURS)='" & Session("sParcours") & "'))" 
            cmdChoixParcoursEleve = New SqlCommand(strChoixParcoursEleve, Me.fonctionsvbs.myConnChoixCours)  
            myDaChoixParcoursEleve = New SqlDataAdapter(cmdChoixParcoursEleve)  
            Me.fonctionsvbs.myConnChoixCours.Open()  
            myDaChoixParcoursEleve.Fill(dsChoixParcoursEleve)  
            Me.fonctionsvbs.myConnChoixCours.Close()  
            Me.RadGridParcours.DataSource = dsChoixParcoursEleve  
            Me.RadGridParcours.DataBind()  
 
 
        End If 
    End Sub 
 
    Private Sub RadGridCours_DeleteCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.DeleteCommand  
 
    End Sub 
 
    Private Sub RadGridCours_InsertCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.InsertCommand  
 
    End Sub 
 
    Private Sub RadGridCours_UpdateCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.UpdateCommand  
 
    End Sub 
 
    Private Sub RadGridParcours_UpdateCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridParcours.UpdateCommand  
 
    End Sub 
End Class 
Any idea??
Thank you
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2010
3 answers
101 views
Hi.

Currently I'm using the Q1 2010 hotfix (2010.1.323) to remedy some ListView problems that were happening.

Now, the navigation arrows on the calendar have disappeared. I was just using text for them "<<", "<", etc. The areas are still there and I can click on them, but no text. I tried setting the links to arrow images, but all that appears is a white border with a little square in the middle. Dis anything change with the calendar navigation or is it a bug?

Thanks,
Ed
Pavel
Telerik team
 answered on 30 Mar 2010
5 answers
163 views
As title says, U get a server 500 error when I have RadCompression enabled and I do a postback in a classic ASP page. Using W2k8 IIS7 with the latest internal build.

Any fix to this?
Pavel
Telerik team
 answered on 30 Mar 2010
1 answer
123 views
Is there a combobox onselectedindexchanged equivalent? Seems odd that they would not inherit this essential function from <asp:DropDownList /> control.
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2010
1 answer
106 views
RE: v4.5.6 Radeditor Lite

I'm having difficulties with controlling boarders after the table is created. Seems that in Firefox (3.5) the table tools behaves quite oddly. The table properties | boarders is completely unable to show the table boarders when editing or after in FF3.5. Only after that I see that in IE8 the boarders are there! (maybe part a Sharepoint quirk).

Editing the table using IE8 the tool actually seems to work better though still very inconsistent when trying to set boarders properties.
Stanimir
Telerik team
 answered on 30 Mar 2010
1 answer
95 views
foreach (GridColumn col in radGdSurvey.MasterTableView.Columns)  
            {  
                  
                if (col.ColumnType == "GridBoundColumn" && col.UniqueName == "JobsID")  
                {  
                    if (e.CommandName == RadGrid.EditCommandName)  
                    {  
                        (col as GridBoundColumn).ReadOnly = true;  
                        col.Visible = false;  
                    }  
                    else  
                    {  
                        (col as GridBoundColumn).ReadOnly = false;  
                        col.Visible = true;  
                    }  
                }  
            }       

Ok I hit my edit button on the grid, when it pops i want to make JobsID readonly in the edit form, the above does not work, I am do something wrong I just do not know what.  Any help would be great.

Thx in advance
Princy
Top achievements
Rank 2
 answered on 30 Mar 2010
2 answers
217 views
Hello Admin Telerik!
Can you help me!. I need to update a field in DataBase when user Drag-Drop column. The field will save order column in RadGrid...
(http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx)
Ex:
    order
      1
      2
      3
      4
I don't know how to do it.
Thank you! Have a good day!
peter huynh
Top achievements
Rank 1
 answered on 30 Mar 2010
4 answers
173 views
I have a grid that I want to allow the client to filter the data because it is a very clean solution.  The problem is that the grid is pulling all of the data over from the server into the .NET side and then applies the filtering accordingly.  The problem is that there is 10 years worth of history data that is pulling across the network and that is killing performance.  Is there any way to turn the filtering on to filter the data pulled from the server instead of pulling it all then filtering?  Or is there a better way to do this?
lkeel
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
137 views
Hello Sir,

I m trying two Plot Two Series Chart

Please see Attached Image. I want one series as a Bar chart and another series as a Line Chart.


Please Provide me Information i tried my best to achieve it.

I have done Blow Setting but it Not working .

<telerik:RadChart ID="RadChart2" runat="server" DataSourceID="LinqDataSource2"
            DefaultType="Line">
            <Series>
<telerik:ChartSeries Name="Series 1" Type="Line" >
                </telerik:ChartSeries>
                
                <telerik:ChartSeries Name="Series 2"  YAxisType="Secondary"   Type="Pie">
                </telerik:ChartSeries>
</Series>


Schlurk
Top achievements
Rank 2
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?