Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
89 views
hi
I am using the control on html field.the preview option is present on tab.Is there any option so that  when user preview then it should open in new window
onkar Agarwal
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
185 views

We are using the RadEditor for sharepoint and we try to paste some text from a word document but something goes really wrong.

The original formatting as copied from Word is shown in the image "originaltext.JPG", it has a table with some text a bulleted list.

When I tried to paste to my page using the "Paste from Word" some bulleted text is missing and the table's borders are not solid as shown in the image "pasteFromWord.JPG"

When I paste using the normal paste and then click cancel on the message "The content you are trying to paste has MS Word Formatting.
Would you like to clean it?" then I get all the text but no bullets, see image "normalPaste.JPG".

On the other hand when I tried to paste the same text (using both normal paste and paste from Word ) on your demo page http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

it actually looked pretty good (styling was not perfect but all the text and bullets were visible) as shown in the image "FromDemo.JPG"

Could you please let me know what might go wrong? Is it a configuration issue or something like that?

Stanimir
Telerik team
 answered on 30 Mar 2010
1 answer
90 views
Hi there,
I am currently replacing some controls in an existing web app and noticed that global li styles are overriding (and thus breaking) the RadMenu styles.

Not a big deal, but my question is (since I would have expected the override to be the other way around): should global styles be avoided in general when using RadControls?

Thx in advance!
Rgds - Marcus.
Yana
Telerik team
 answered on 30 Mar 2010
3 answers
201 views
hi,
I am using the textbox with the radformdecorator  to make the textbox have rounding corner. After that, i am adding the radInputManager for the validation control. I have found out that my textbox rounding corner have disappear. but when i have removing the rad input manager, i found out that the rounding corner appear again. Is that anyway to solve this problem?

best regards,
sookkien.
Dimo
Telerik team
 answered on 30 Mar 2010
1 answer
135 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
661 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 Object, ByVal e As System.EventArgs) Handles Me.Load  
          
    End Sub 
 
    Private Sub Btn_Valider_Click(ByVal sender As Object, ByVal 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 Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.DeleteCommand  
 
    End Sub 
 
    Private Sub RadGridCours_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.InsertCommand  
 
    End Sub 
 
    Private Sub RadGridCours_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridCours.UpdateCommand  
 
    End Sub 
 
    Private Sub RadGridParcours_UpdateCommand(ByVal source As Object, ByVal 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
104 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
171 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
127 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
111 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
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?