Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
671 views
I have a radiobuttonlist which is a trigger for three other controls. The issue I am having is that the OnSelectedIndexChanged event is not firing the second time around. This means that the rest of the controls encompassed by the trigger doesn't update.

I need help determing why the three controls are not being updated by Ajax the second time around. Notice the boldfaced items which are the key to getting this to work.

If I remove the AJAX manager, the controls get updated successfully the second time around, but you can see the postback occurring in the browser which I ultimately don't want to see. 

Here is my html:
<code>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rblDataType">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lstPatientEDLogs" />
                <telerik:AjaxUpdatedControl ControlID="pnlNoPatientInfoCounts" />
                <telerik:AjaxUpdatedControl ControlID="pnlPatientInfoCounts" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
</code>

<code>
<asp:Panel ID="pnlData" runat="server" GroupingText="Data Type for DOS" Width="1100px">
                    <asp:RadioButtonList ID="rblDataType" RepeatDirection="Horizontal" TextAlign="Right"
                        runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="rblDataType_SelectedIndexChanged">
                        <asp:ListItem Text="No Patient Info" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Patient Info"></asp:ListItem>
                        <asp:ListItem Text="Visit Info" Enabled="false"></asp:ListItem>
                    </asp:RadioButtonList>
                </asp:Panel>
</code>

<code>
<asp:Panel ID="pnlNoPatientInfoCounts" runat="server" GroupingText="No Patient Info Count"
                    Width="1100px">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblDataNETCnt1" runat="server" Text="DataNET: "></asp:Label>
                                <asp:Label ID="lblDataNETCntData1" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblDataNET_PendingCnt1" runat="server" Text="DataNET/Pending: "></asp:Label>
                                <asp:Label ID="lblDataNET_PendingCntData1" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblDataNET_DeficientCnt1" runat="server" Text="DataNET/Deficient: "></asp:Label>
                                <asp:Label ID="lblDataNET_DeficientCntData1" runat="server" Text="0"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
</code>

</code>
<asp:Panel ID="pnlPatientInfoCounts" runat="server" GroupingText="Patient Info Count"
                    Width="1100px">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblDataNET_PendingCnt2" runat="server" Text="DataNET/Pending: "></asp:Label>
                                <asp:Label ID="lblDataNET_PendingCntData2" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblDataNET_DeficientCnt2" runat="server" Text="DataNET/Deficient: "></asp:Label>
                                <asp:Label ID="lblDataNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblCodeNETCnt2" runat="server" Text="CodeNET: "></asp:Label>
                                <asp:Label ID="lblCodeNETCntData2" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblCodeNET_PendingCnt2" runat="server" Text="CodeNET/Pending: "></asp:Label>
                                <asp:Label ID="lblCodeNET_PendingCntData2" runat="server" Text="0"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblCodeNET_DeficientCnt2" runat="server" Text="CodeNET/Deficient: "></asp:Label>
                                <asp:Label ID="lblCodeNET_DeficientCntData2" runat="server" Text="0"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
</code>

Here is my server side code-behind: This is the code that changes the other three controls. However, when the index is changed for the radiobuttonlist, the second time around, a postback is never fired. It gets hit the first time I change the index of the radiobuttonlist, but not the second time.
<code>
protected void rblDataType_SelectedIndexChanged(Object sender, EventArgs e)
        {
            LoadDatesofSvc();
        }
</code>
Tsvetina
Telerik team
 answered on 18 Aug 2011
2 answers
60 views
I have a ASPX page with Rad grid , this grid loaded with data.

 

when a row is selected and clicked on a radTolBarButton,to edit its content . Actually it opens a Rad window (window.radopen) with all the controls in editable mode.

 

we can edit ,save and also close this window ( provided a Rad button 'Close' in a Rad tool bar )

 

My Requirement is below.

 

on edit - save - close button click

 

1.Need to close the window - (this is happening)

 

2.Need to refresh the content in the grid - from - where this rad window opend. (this is not happening)

 

 

I dont want to change Content edit procedure. This is already finalised.

 

The only thing is to refresh the grid content on Rad window close.


Please help me.

Thanks in advance

Dilip
Top achievements
Rank 1
 answered on 18 Aug 2011
2 answers
233 views
I am able to update and delete the rows from RadGrid but It gives me following exception on insert :-
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot insert the value NULL into column 'Alert_Level_ID', table 'AlertEmailManagement.dbo.Alert_Level'; column does not allow nulls. INSERT fails.
The statement has been terminated.
The problem is it does insert the row in Database and I am sure that alert_level_id is not null.
eher is my code:-
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ITIMaster.Master" CodeBehind="AlertLevelAdmin.aspx.vb" Inherits="EmailAlertsMonitor.AlertLevelAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadGrid ID="gvAlertLevels" runat="server" AutoGenerateColumns="False" 
        CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None" 
        Skin="Outlook" AllowAutomaticDeletes ="true" AllowAutomaticUpdates ="true" AllowAutomaticInserts="true" >
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames ="Alert_Level_ID" CommandItemDisplay ="TopAndBottom"  >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
<Columns >
     <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
     <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this alert?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
  
    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" 
        UniqueName="TemplateColumn" HeaderText ="Alert Level ID">
          <ItemTemplate >
                <asp:Label ID="lblAlertLevelID" runat ="server" Text ='<%#EVAL("Alert_Level_ID") %>'></asp:Label>
          </ItemTemplate>
          <EditItemTemplate >
                <asp:TextBox ID="txtAlertLevelID" runat ="server" Text ='<%#EVAL("Alert_Level_ID") %>'></asp:TextBox>
                <asp:CompareValidator ID="cvAlertLevelID" runat ="server" ControlToValidate ="txtAlertLevelID" Operator ="DataTypeCheck" Type ="Integer" SetFocusOnError ="true" ErrorMessage ="Alert Level ID must be numeric." ForeColor ="Red" ValidationGroup ="editData" ></asp:CompareValidator>
          </EditItemTemplate>
     </telerik:GridTemplateColumn>
     <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" 
        UniqueName="TemplateColumn" HeaderText ="Alert Level Description">
          <ItemTemplate >
                <asp:Label ID="lblAlertLevel" runat ="server" Text ='<%#EVAL("Alert_Level") %>'></asp:Label>
          </ItemTemplate>
          <EditItemTemplate >
                <asp:TextBox ID="txtAlertLevel" runat ="server" Text ='<%#EVAL("Alert_Level") %>'></asp:TextBox>
                <asp:RequiredFieldValidator ID="rvAlertLevel" runat ="server" ControlToValidate="txtAlertLevel" SetFocusOnError ="true" ErrorMessage ="Must enter Alert Level Description." ForeColor ="Red" ValidationGroup ="editData"></asp:RequiredFieldValidator>
          </EditItemTemplate>
     </telerik:GridTemplateColumn>
    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" 
        UniqueName="TemplateColumn3" HeaderText ="Alert Level Color Code">
         <ItemTemplate >
                <asp:Label ID="lblAlertLevelColor" runat ="server" Text ='<%#EVAL("Alert_Level_Color_Code") %>'></asp:Label>
                 
          </ItemTemplate>
          <EditItemTemplate >
                  <telerik:RadColorPicker ID="RadColorPicker1" runat="server" ShowIcon="true" OnColorChanged ="RadColorPicker1_ColorChanged" Width ="250px" Height ="400px" >
                  </telerik:RadColorPicker>
          </EditItemTemplate>
            
    </telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                       ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                       SelectCommand="SELECT * FROM [Alert_Level]" 
                       InsertCommand ="INSERT INTO [Alert_Level] VALUES(@alertLevelID,@alertLevel,@alertColorCode)"
                       UpdateCommand ="UPDATE [Alert_Level] SET alert_level=@alertLevel,alert_level_color_code=@alertColorCode WHERE alert_Level_ID=@alertLevelID" 
                       DeleteCommand ="DELETE FROM [Alert_Level] WHERE alert_Level_ID=@alertLevelID" >
     <InsertParameters >
       <asp:Parameter Name ="AlertLevelID" Type ="Int16" />
       <asp:Parameter Name ="AlertLevel" Type ="String" />
       <asp:Parameter Name ="AlertColorCode" Type ="String" />
     </InsertParameters>                  
     <UpdateParameters >
       <asp:Parameter Name ="AlertLevelID" Type ="Int16" />
       <asp:Parameter Name ="AlertLevel" Type ="String" />
       <asp:Parameter Name ="AlertColorCode" Type ="String" />
     </UpdateParameters>                 
     <DeleteParameters >
       <asp:Parameter Name ="AlertLevelID" Type ="Int16" />
     </DeleteParameters>                  
                         
</asp:SqlDataSource>
</asp:Content>
Imports Telerik.Web.UI
Imports System.Drawing
Public Class AlertLevelAdmin
    Inherits System.Web.UI.Page
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
    End Sub
  
    Public Sub RadColorPicker1_ColorChanged(ByVal sender As Object, ByVal e As EventArgs)
        Dim RadColorPicker1 As RadColorPicker = CType(sender, RadColorPicker)
        Dim gvItem As GridItem = DirectCast(RadColorPicker1.NamingContainer, GridItem)
        gvItem.BackColor = RadColorPicker1.SelectedColor
    End Sub
  
    Private Sub gvAlertLevels_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles gvAlertLevels.ItemDataBound
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            item("TemplateColumn3").BackColor = ColorTranslator.FromHtml((DataBinder.Eval(e.Item.DataItem, ("Alert_Level_Color_Code").ToString)))
        End If
  
        Dim radColorPicker1 As RadColorPicker = DirectCast(e.Item.FindControl("RadColorPicker1"), RadColorPicker)
        If Not IsNothing(radColorPicker1) Then
            If Not IsDBNull(DataBinder.Eval(e.Item.DataItem, ("Alert_Level_Color_Code"))) Then
                radColorPicker1.SelectedColor = ColorTranslator.FromHtml((DataBinder.Eval(e.Item.DataItem, ("Alert_Level_Color_Code").ToString)))
            End If
        End If
  
  
    End Sub
  
    Private Sub gvAlertLevels_ItemDeleted(sender As Object, e As Telerik.Web.UI.GridDeletedEventArgs) Handles gvAlertLevels.ItemDeleted
        Try
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim alertLevelID As Integer = CInt(item.GetDataKeyValue("Alert_Level_ID").ToString)
            SqlDataSource1.DeleteParameters("AlertLevelID").DefaultValue = alertLevelID
            SqlDataSource1.Delete()
        Catch ex As Exception
  
        End Try
    End Sub
  
    Private Sub gvAlertLevels_ItemInserted(sender As Object, e As Telerik.Web.UI.GridInsertedEventArgs) Handles gvAlertLevels.ItemInserted
        Try
            Dim alertLevelID As Integer = DirectCast(e.Item.FindControl("txtAlertLevelID"), TextBox).Text
            Dim alertLevel As String = DirectCast(e.Item.FindControl("txtAlertLevel"), TextBox).Text
            Dim alertColorCode As String = ColorTranslator.ToHtml(DirectCast(e.Item.FindControl("RadColorPicker1"), RadColorPicker).SelectedColor)
            SqlDataSource1.InsertParameters("AlertLevelID").DefaultValue = alertLevelID
            SqlDataSource1.InsertParameters("AlertLevel").DefaultValue = alertLevel.ToUpper
            SqlDataSource1.InsertParameters("AlertColorCode").DefaultValue = alertColorCode
            SqlDataSource1.Insert()
        Catch ex As Exception
  
        End Try
    End Sub
  
    Private Sub gvAlertLevels_ItemUpdated(sender As Object, e As Telerik.Web.UI.GridUpdatedEventArgs) Handles gvAlertLevels.ItemUpdated
        Try
            Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim alertLevelID As Integer = CInt(item.GetDataKeyValue("Alert_Level_ID").ToString)
            Dim alertLevel As String = DirectCast(item.FindControl("txtAlertLevel"), TextBox).Text
            Dim alertColorCode As String = ColorTranslator.ToHtml(DirectCast(item.FindControl("RadColorPicker1"), RadColorPicker).SelectedColor)
            SqlDataSource1.UpdateParameters("AlertLevelID").DefaultValue = alertLevelID
            SqlDataSource1.UpdateParameters("AlertLevel").DefaultValue = alertLevel.ToUpper
            SqlDataSource1.UpdateParameters("AlertColorCode").DefaultValue = alertColorCode
            SqlDataSource1.Update()
        Catch ex As Exception
  
        End Try
    End Sub
End Class
Sonia
Top achievements
Rank 1
 answered on 18 Aug 2011
3 answers
68 views
I'm trying to develop custom application for SharePoint 2010 using Visual Web Part template in Visual Studio 2010, as well as converting existing standard web application (aspx) to Visual Web Part.

I would like to know if there is any difference that I should have known when starting to do it. Any difficulties or limiations?

So far, I found one difference, as stated in this blog:
http://blogs.c5insight.com/Home/tabid/40/entryid/173/SharePoint-2010-Visual-Web-Parts-Using-Script-Managers-AJAX.aspx

It is said that we must add and configure the RadAjaxManager in code-behind instead of on the aspx page like usual. Anyone please confirm for me if it is true.

Is there any other difference that I should know of?

Thanks.


LamKhoa
Top achievements
Rank 1
 answered on 18 Aug 2011
3 answers
98 views
Hello,

I have this code on the .aspx code:

<telerik:RadWindowManager ID="RadWindowManagerUI" runat="server" />         
    <telerik:RadAjaxPanel ID="RadAjaxPanelFreezeSheets" runat="server" LoadingPanelID="RadAjaxLoadingPanelFreezeSheets">
        <telerik:RadGrid ID="RadGridFreezeSheets" runat="server"  Skin="WebBlue"
            onneeddatasource="RadGridFreezeSheets_NeedDataSource" AllowPaging="True"
            AllowSorting="True" ondeletecommand="RadGridFreezeSheets_DeleteCommand" 
            oninsertcommand="RadGridFreezeSheets_InsertCommand" 
            AllowFilteringByColumn="True"              
            onitemcommand="RadGridFreezeSheets_ItemCommand"             
            onupdatecommand="RadGridFreezeSheets_UpdateCommand" CellSpacing="0" 
            GridLines="None" AllowAutomaticUpdates="true">
            <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="FreezeID"
                    InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="PopUp">
                    <Columns>                       
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" /> 
                        <telerik:GridButtonColumn ConfirmText="Delete this freeze sheet?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                            ConfirmDialogWidth="220px" />
                            <telerik:GridTemplateColumn DataField="FreezeID" HeaderText="Freeze Sheet" UniqueName="FreezeID"
                            Visible="false">
                            <InsertItemTemplate>
                                <asp:Label ID="LabelEdit" runat="server" Text='<%# Eval("FreezeID") %>' Visible="false"></asp:Label>                                                                
                            </InsertItemTemplate>
                            <EditItemTemplate>
                                <asp:Label ID="LabelEdit" runat="server" Text='<%# Eval("FreezeID") %>'></asp:Label>                                
                            </EditItemTemplate>
                            <ItemTemplate><asp:Label ID="LabelFN" runat="server" Text='<%# Eval("FreezeID") %>' Visible="false"></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>                        
                        <telerik:GridBoundColumn DataField="Username" HeaderText="User" UniqueName="Username" />           
                        <telerik:GridTemplateColumn DataField="DateStarted" HeaderText="Date started" UniqueName="DateStarted">
                                <EditItemTemplate>
                                    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" SelectedDate='<%# Bind("DateStarted") %>'>
                                    </telerik:RadDatePicker>                                
                            </EditItemTemplate>
                            <InsertItemTemplate>
                            <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
                                    </telerik:RadDatePicker>                                
                            </InsertItemTemplate>
                            <ItemTemplate><asp:Label ID="LabelSD" runat="server" Text='<%# Eval("DateStarted") %>'></asp:Label></ItemTemplate>                            
                        </telerik:GridTemplateColumn>             
                        
                        <telerik:GridTemplateColumn DataField="DateCompleted" HeaderText="Date completed" UniqueName="DateCompleted">
                                <EditItemTemplate>
                                    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" SelectedDate='<%# Bind("DateCompleted") %>'>
                                    </telerik:RadDatePicker>                                
                            </EditItemTemplate>
                            <InsertItemTemplate>
                            <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
                                    </telerik:RadDatePicker>                                
                            </InsertItemTemplate>
                            <ItemTemplate><asp:Label ID="LabelPD" runat="server" Text='<%# Eval("DateCompleted") %>'></asp:Label></ItemTemplate>                            
                        </telerik:GridTemplateColumn>                        
                        <telerik:GridBoundColumn DataField="Status" HeaderText="Status" UniqueName="Status" />
                        <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" UniqueName="Notes" />  
                        <telerik:GridButtonColumn  UniqueName="columnx" HeaderText="" CommandName="Process" DataTextField="FreezeID" DataTextFormatString="Process Freeze"/>                                              
                    </Columns>
                </MasterTableView>
        </telerik:RadGrid>        
 
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelFreezeSheets" runat="server" Skin="WebBlue">
    </telerik:RadAjaxLoadingPanel>

And this is the code behind (the aspx.cs)

public partial class FreezeSheets : System.Web.UI.Page
    {
        private Domain.FreezeRepository freezeRepo = new Domain.FreezeRepository();
 
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
 
        protected void RadGridFreezeSheets_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            RadGridFreezeSheets.DataSource = freezeRepo.FindAllFreezes();            
        }
 
        protected void RadGridFreezeSheets_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            Response.Redirect("AddFreezeSheet.aspx");
        }
 
        protected void RadGridFreezeSheets_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
 
        }
 
        protected void RadGridFreezeSheets_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "InitInsert")
            {
                Response.Redirect("AddFreezeSheet.aspx");
            }
 
            if (e.CommandName == "Process")
            {
                Response.Redirect("FreezeSheetSamples.aspx.aspx?q=" + (e.Item as GridDataItem).GetDataKeyValue("FreezeID").ToString());
            }     
        }
 
        protected void RadGridFreezeSheets_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            try
            {
                GridEditableItem item = e.Item as GridEditableItem;
                var freezeID = item.GetDataKeyValue("FreezeID").ToString();
                Domain.Freeze oldFreeze = freezeRepo.GetFreeze(Convert.ToInt16(freezeID));
                item.UpdateValues(oldFreeze);
                freezeRepo.Save();
            }
            catch (Exception ex)
            {
                RadWindowManagerUI.RadAlert("Unable to save your information. make sure the combination you are entering is unique for the selected freezer. Additional information: " + ex.Message, 330, 100, "DNA CellLab"null);
            }
        }
    }

When the grid is displayed in the page, everything seems fine. The links on the grid work correctly. The deletes are completed. Everything is OK except the edit command. When I click on the pencil icon, I can see the ajax icon spinning, but it never enters into edit mode. In the code I have it to show the edit as a popup window, but even if I try the inline mode, it does not work. Help...
Maria Ilieva
Telerik team
 answered on 18 Aug 2011
1 answer
105 views
I have a RadGrid within a RadPageView / RadMultiPage - switching pages using the RadTabStrip.  My issue is that when my RadGrid is within the RadPageView, parts of my codebehind no longer work.

The RadGrid is fully functional outside the PageView - however inside of it, it cannot access one of my Unique columns.  

The code that it cannot find is as follows:  (it cannot find the value of "bytes" because it does not see the column)

If TypeOf e.Item Is GridEditableItem Then
             Dim gridEditedItem1 As GridEditableItem = TryCast(e.Item, GridEditableItem)
             Dim bytes As Byte() = (DirectCast(gridEditedItem1.EditManager.GetColumnEditor("ImageFile"), GridAttachmentColumnEditor)).UploadedFileContent
             If bytes Is Nothing OrElse bytes.Length = 0 Then
                 bytes = New Byte() {}
             End If
             'Return bytes
         End If

How can I rectify this situation?
Tsvetina
Telerik team
 answered on 18 Aug 2011
2 answers
219 views
Hi there,
I have RadGrid on my page with custom CommandItemTemplate(Several RadButtons). When I select a row in my grid and click on any button RadNotification is shown. But I can still select a row... How to put RadAjaxLoadingPanel over my RadGrid that will disappear after RadNotification is closed?

I want next scenario to happen:
- user select row
- click on button
- RadAjaxLoadingPanel activates & RadNotification is shown
- user close RadNotification & RadAjaxLoadingPanel is closing

p.s. Sorry for my english
 
Andrew
Top achievements
Rank 1
 answered on 18 Aug 2011
3 answers
233 views
Hi,

I am trying to write a user control with the Rad ListView to show a list of Hyperlinks which navigates to different URL.
The List of Hyperlinks are variable (show a different list in different scenarios) and also builds up different URL's.
Can someone please suggest,  how can i go about it? or is there any other control i can use to display the same. the list of hyperlinks come on a popup window.

- The datasource i am having is a List of Enum's. e.g. as List<enum> actions.
- i am not able to assign a the datasource to the Radlistview correctly, as i am not sure what will be the DataKey in my case and what property th eEval Method will evaluate??

I have also tried the object datasource but as my collection is of Type Enum i am not able to create any property in it to display it..

I need this urgently. quick help or a sample will be of great for me. we are using the latest telerik version (Q2) with 3.5




Pavlina
Telerik team
 answered on 18 Aug 2011
1 answer
286 views
If for example I have a table in my database looking like that:
-------------------------------------------------
TEST
-------------------------------------------------
ID         int                     autoincrement PK
A          nvarchar(20)
B          nvarchar(10)    null
C          int                     null
-------------------------------------------------

So field A always require a value, but fields B and C can have nulls.
Now if I create simplest linq data source, and radgrid using that data source to select/insert/edit data in that database.
Everything is nice, except that If on edit/insert forms I leave field for B empty, in database it will input empty string instead of null. That would still be ok, I could live with it. But if I leave field for C (integer) empty, I will get an exception that the value from the field can't be converted into int32.

So my question is: how can I force radgrid to replace empty values on edit/insert form with NULL?

Thanks,

Daniel
Shinu
Top achievements
Rank 2
 answered on 18 Aug 2011
5 answers
204 views
Hi guys.
Im developing a dnn module and Im trying to update a runat div using the rad ajax manager.
The thing is the module keeps throwing the following error when I add the div to the controls that need to be updated via ajax call:
This is the code:
<%@ Control Language="C#" Inherits="OnData.WebSite.Modules.TrabajaConNosotros.ViewTrabajaConNosotros" 
    CodeFile="ViewTrabajaConNosotros.ascx.cs" AutoEventWireup="true" %> 
<%@ Register Src="../../controls/Modal/ModalMessage.ascx" TagName="ModalMessage" 
    TagPrefix="uc1" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script type="text/javascript"
    function showLanguageForm(){ 
        document.getElementById('<%= frmIdioma.ClientID %>').style.display = ''
    } 
     
    function showFormalAcademicForm(){ 
        document.getElementById('<%= frmFAcademic.ClientID %>').style.display = ''
    } 
     
    function showCertificationForm(){ 
        document.getElementById('<%= frmCertificacion.ClientID %>').style.display = ''
    } 
     
    function showAcademicaGeneralForm(){ 
        document.getElementById('<%= frmAcademicaGeneral.ClientID %>').style.display = ''
    } 
     
    function checkLength(control, lenght, targetdiv){ 
        var textbox = document.getElementById(control); 
        var span = document.getElementById(targetdiv); 
        numeroCaracteres = textbox.value.length; 
        span.innerHTML = 'Te quedan ' + (lenght - numeroCaracteres) + ' caracteres'; 
        if(numeroCaracteres > lenght) 
        { 
            span.innerHTML = 'Te pasaste por '  + (numeroCaracteres - lenght)+ ' caracteres'; 
        } 
    } 
     
     
</script> 
 
<telerik:RadTabStrip ID="tbsStrip" runat="server" Skin="Forest" MultiPageID="rdMPControles" 
    SelectedIndex="0"
    <Tabs> 
        <telerik:RadTab Text="Informaci&#243;n General" runat="server" Selected="True"
        </telerik:RadTab> 
        <telerik:RadTab Text="Informaci&#243;n Acad&#233;mica Formal" runat="server"
        </telerik:RadTab> 
        <telerik:RadTab Text="Informaci&#243;n Acad&#233;mica General" runat="server"
        </telerik:RadTab> 
        <telerik:RadTab Text="Certificaciones" runat="server"
        </telerik:RadTab> 
        <telerik:RadTab Text="Informaci&#243;n de Idiomas" runat="server"
        </telerik:RadTab> 
    </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="rdMPControles" runat="server" SelectedIndex="0"
    <telerik:RadPageView ID="rpvInfoGeneral" runat="server" Selected="true"
        <div style="width: 450px; float: left;" runat="server" id="frmGeneral"
            <br /> 
            <h1> 
                Por favor complete todos los campos 
            </h1> 
            <br /> 
            <div id="form_container"
                <table width="450" border="0"
                    <tr> 
                        <td width="129"
                            <p> 
                                C&eacute;dula 
                            </p> 
                        </td> 
                        <td width="311"
                            <asp:TextBox ID="txtUsuario" runat="server" MaxLength="100" CssClass="input" /> 
                        </td> 
                        <td width="311"
                            <asp:Button ID="btnVerificar" runat="server" CssClass="verificar" Text="Ingresar" 
                                OnClick="btnVerificar_Click" ValidationGroup="vgLogin" /> 
                            <asp:RegularExpressionValidator ID="revCedulaLogin" runat="server" ControlToValidate="txtUsuario" 
                                Display="Dynamic" ErrorMessage="Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres" 
                                Font-Size="10px" ForeColor="YellowGreen" ToolTip="Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres" 
                                ValidationExpression="[0-9]{6,}" ValidationGroup="vgLogin">Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres</asp:RegularExpressionValidator> 
                            <asp:RegularExpressionValidator ID="revCedulaNew" runat="server" ControlToValidate="txtUsuario" 
                                Display="Dynamic" ErrorMessage="Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres" 
                                Font-Size="10px" ForeColor="YellowGreen" ToolTip="Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres" 
                                ValidationExpression="[0-9]{6,}" ValidationGroup="vgNewUser">Verifique que su c&eacute;dula se encuentre bien escrita y sea mayor a 6 caracteres</asp:RegularExpressionValidator><asp:RequiredFieldValidator 
                                    ID="rfvCedulaLogin" runat="server" ControlToValidate="txtUsuario" Display="Dynamic" 
                                    ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" ToolTip="Debes llenar este campo" 
                                    ValidationGroup="vgLogin" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator> 
                            <asp:RequiredFieldValidator ID="rfvCedulaNew" runat="server" ControlToValidate="txtUsuario" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ToolTip="Debes llenar este campo" ValidationGroup="vgNewUser" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                            <p> 
                                Contrase&ntilde;a</p> 
                        </td> 
                        <td> 
                            <asp:TextBox runat="server" CssClass="input" TextMode="Password" MaxLength="15" ID="txtPwd" /></td
                        <td> 
                            <asp:RequiredFieldValidator ID="rfvContrasenaLogin" runat="server" ControlToValidate="txtPwd" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ToolTip="Debes llenar este campo" ValidationGroup="vgLogin" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                    ID="revPwdLogin" runat="server" ControlToValidate="txtPwd" Display="Dynamic" 
                                    ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos. Verifique que la contrase&ntilde;a sea mayor a 8 caracteres" 
                                    ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos. Verifique que la contrase&ntilde;a sea mayor a 8 caracteres" 
                                    ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;){8,}" 
                                    ValidationGroup="vgLogin" Font-Size="10px">Este campo contiene caracteres  inv&aacute;lidos. Verifique que la contrase&ntilde;a sea mayor a 8 caracteres</asp:RegularExpressionValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                            <p> 
                                Nombre para mostrar:</p> 
                        </td> 
                        <td> 
                            <asp:TextBox runat="server" ID="txtPila" MaxLength="128" CssClass="input" /></td
                        <td> 
                            <asp:RequiredFieldValidator ID="rfvPila" runat="server" ControlToValidate="txtPila" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ToolTip="Debes llenar este campo" ValidationGroup="vgNewUser" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                    ID="revPila" runat="server" ControlToValidate="txtPila" Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ValidationGroup="vgNewUser" ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                    Font-Size="10px">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                            <p> 
                                Nombres</p> 
                        </td> 
                        <td> 
                            <asp:TextBox runat="server" ID="txtName" MaxLength="50" CssClass="input" /></td
                        <td> 
                            <asp:RequiredFieldValidator ID="rfvNombres" runat="server" ControlToValidate="txtName" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ValidationGroup="vgNewUser" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                    ID="revNombre" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ValidationGroup="vgNewUser" Font-Size="10px" ValidationExpression="([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                            <p> 
                                Apellidos</p> 
                        </td> 
                        <td> 
                            <asp:TextBox runat="server" ID="txtLasName" MaxLength="50" CssClass="input" /></td
                        <td> 
                            <asp:RequiredFieldValidator ID="rfvApellidos" runat="server" ControlToValidate="txtLasName" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ValidationGroup="vgNewUser" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                    ID="revLastName" runat="server" ControlToValidate="txtLasName" Display="Dynamic" 
                                    ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." ForeColor="YellowGreen" 
                                    ToolTip="Este campo contiene caracteres  inv&aacute;lidos." ValidationGroup="vgNewUser" 
                                    Font-Size="10px" ValidationExpression="([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                            <p> 
                                Email</p> 
                        </td> 
                        <td> 
                            <asp:TextBox runat="server" ID="txtEmail" MaxLength="256" CssClass="input" /> 
                        </td> 
                        <td> 
                            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" 
                                Display="Dynamic" ErrorMessage="Debes llenar este campo" ForeColor="YellowGreen" 
                                ValidationGroup="vgNewUser" Font-Size="10px">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                    ID="revEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="vgNewUser" 
                                    Font-Size="10px">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                    </tr> 
                    <tr> 
                        <td> 
                        </td> 
                        <td> 
                            <asp:Button ID="btnLimpiar" runat="server" CssClass="verificar" Text="Limpiar" OnClick="btnLimpiar_Click" /> 
                            <asp:Button ID="btnEnviar" runat="server" CssClass="verificar" Text="Enviar" CommandName="Add" 
                                OnClick="btnEnviar_Click" ValidationGroup="vgNewUser" /> 
                        </td> 
                        <td> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td colspan="3"
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </div> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="rpvInfoAcademicaFormal" runat="server"
        <telerik:RadGrid ID="rdGridInformacionAcademicaFormal" runat="server" AllowPaging="True" 
            GridLines="None" Skin="Forest" DataSourceID="odsnformacionAcademicaFormal" AutoGenerateColumns="False" 
            OnRowDrop="rdGridInformacionAcademicaFormal_RowDrop"
            <HeaderContextMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </HeaderContextMenu> 
            <MasterTableView DataSourceID="odsnformacionAcademicaFormal" DataKeyNames="Id"
                <NoRecordsTemplate> 
                    No haz ingresado informaci&oacute;n de este tipo en el sistema. 
                </NoRecordsTemplate> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Degree" HeaderText="T&#237;tulo Obtenido" SortExpression="Degree" 
                        UniqueName="Course"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="College" HeaderText="Universidad" SortExpression="College" 
                        UniqueName="College"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="StartedDate" DataType="System.DateTime" HeaderText="Fecha de Inicio" 
                        SortExpression="StartedDate" UniqueName="StartedDate"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="FinalizedDate" DataType="System.DateTime" HeaderText="Fecha de Finalizaci&#243;n" 
                        SortExpression="FinalizedDate" UniqueName="FinalizedDate" EmptyDataText="A&#250;n sin finalizar"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime" HeaderText="&#218;ltima Actualizaci&#243;n" 
                        SortExpression="CreationDate" UniqueName="CreationDate"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <PagerStyle NextPageText="Siguiente" PrevPageText="Anterior" /> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="true" /> 
                <ClientMessages PagerTooltipFormatString="P&#225;gina &lt;b&gt;{0}&lt;/b&gt; de &lt;b&gt;{1}&lt;/b&gt; pages" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:ObjectDataSource ID="odsnformacionAcademicaFormal" runat="server" SelectMethod="GetProfessionalAcademicBackgroundInfos" 
            TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
            <SelectParameters> 
                <asp:Parameter Name="userId" Type="Int32" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
        <asp:ImageButton ID="imbDeleteAcademicaFormal" runat="server" ImageUrl="~/Portals/0/images/trash_can.png" 
            AlternateText="Arrastre una fila para eliminar" ToolTip="Arrastre una fila para eliminar" /><asp:ImageButton 
                ID="imbEditAcademicaFormal" runat="server" ImageUrl="~/Portals/0/images/edit.png" 
                AlternateText="Arrastre una fila para editar" ToolTip="Arrastre una fila para editar" /><br /> 
        <span class="small" style="font-size: 11px;">Para agregar un nuevo t&iacute;tulo, haz 
            click <href="javascript:showFormalAcademicForm();">aqu&iacute;</a>.<br /> 
            Para editar un registro, arrastre una fila y sueltela sobre el l&aacute;piz.<br /> 
            Para eliminar un registro, arrastre una fila y sueltela sobre la papelera. </span> 
        <div id="frmFAcademic" runat="server" style="display: none;"
            <div style="width: 450px; float: left;"
                <br /> 
                <h1> 
                    Por favor complete todos los campos 
                </h1> 
                <br /> 
                <div id="Div2"
                    <table width="450" border="0"
                        <tr> 
                            <td width="129"
                                <p> 
                                    T&iacute;tulo</p> 
                            </td> 
                            <td width="311"
                                <asp:TextBox runat="server" ID="txtbTitle" MaxLength="50" CssClass="input" />&nbsp; 
                            </td> 
                            <td width="311"
                                <asp:RequiredFieldValidator ID="rfvTitulo" runat="server" ControlToValidate="txtbTitle" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ValidationGroup="vgTitle">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revTitulo" runat="server" ControlToValidate="txtbTitle" Display="Dynamic" 
                                        ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." Font-Size="10px" 
                                        ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgTitle">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Lugar d&oacute;nde estudi&oacute; 
                                </p> 
                            </td> 
                            <td> 
                                <p> 
                                    <asp:DropDownList runat="server" ID="ddlUniversidad" CssClass="input" AppendDataBoundItems="True" 
                                        DataSourceID="odsUniversidades" DataTextField="Name" DataValueField="Id"
                                        <asp:ListItem Selected="True" Value="0">[Seleccione]</asp:ListItem> 
                                    </asp:DropDownList> 
                                    <asp:ObjectDataSource ID="odsUniversidades" runat="server" SelectMethod="GetColleges" 
                                        TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
                                    </asp:ObjectDataSource> 
                                </p> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvUniversidad" runat="server" ControlToValidate="ddlUniversidad" 
                                    Display="Dynamic" ErrorMessage="Debes seleccionar una opci&oacute;n" Font-Size="10px" 
                                    ForeColor="YellowGreen" InitialValue="0" ToolTip="Debes seleccionar una opci&oacute;n" 
                                    ValidationGroup="vgTitle">Debes seleccionar una opci&oacute;n</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Fecha de Inicio</p> 
                            </td> 
                            <td> 
                                <div style="margin-left: 10px;"
                                    <telerik:RadDatePicker ID="rcInicio" runat="server" Skin="Forest"
                                        <DatePopupButton HoverImageUrl="" ImageUrl=""></DatePopupButton> 
                                        <DateInput ReadOnly="True" runat="server" ID="rdInicio" DateFormat="dd/MM/yyyy"
                                        </DateInput> 
                                        <Calendar Skin="Forest" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                            ViewSelectorText="x" CultureInfo="spanish (colombia)" runat="server" ID="clInicio"
                                        </Calendar> 
                                    </telerik:RadDatePicker> 
                                </div> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvFechaInicial" runat="server" ControlToValidate="rcInicio" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ValidationGroup="vgTitle">Debes llenar este campo</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Fecha de Finalizaci&oacute;n</p> 
                            </td> 
                            <td> 
                                <div style="margin-left: 10px;"
                                    <telerik:RadDatePicker ID="rdFinal" runat="server" Skin="Forest"
                                        <DatePopupButton HoverImageUrl="" ImageUrl=""></DatePopupButton> 
                                        <DateInput ReadOnly="True" runat="server" ID="diFinal" DateFormat="dd/MM/yyyy"
                                        </DateInput> 
                                        <Calendar Skin="Forest" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                            ViewSelectorText="x" CultureInfo="spanish (colombia)" runat="server" ID="clFinal"
                                        </Calendar> 
                                    </telerik:RadDatePicker> 
                                </div> 
                            </td> 
                            <td> 
                                <asp:CompareValidator ID="cmpFechaFormal" runat="server" ControlToCompare="rcInicio" 
                                    ControlToValidate="rdFinal" Display="Dynamic" ErrorMessage="Verifique que el intervalo de fechas sea correcto." 
                                    Font-Size="10px" ForeColor="YellowGreen" Operator="GreaterThan" ToolTip="Verifique que el intervalo de fechas sea correcto." 
                                    Type="Date" ValidationGroup="vgTitle">Verifique que el intervalo de fechas sea correcto.</asp:CompareValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                            </td> 
                            <td> 
                                <asp:Button ID="btnAcademicaFormalLimpiar" runat="server" CssClass="verificar" Text="Limpiar" 
                                    OnClick="btnAcademicaFormalLimpiar_Click" /> 
                                <asp:Button ID="btnAcademicaFormalEnviar" runat="server" CssClass="verificar" Text="Enviar" 
                                    CommandName="Add" OnClick="btnAcademicaFormalEnviar_Click" ValidationGroup="vgTitle" /> 
                            </td> 
                            <td> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3"
                            </td> 
                        </tr> 
                    </table> 
                </div> 
            </div> 
        </div> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="rpvInfoAcademicaGeneral" runat="server"
        <telerik:RadGrid ID="rdGridInformacionAcademicaGeneral" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="odsInformacionAcademicaGeneral" GridLines="None" 
            Skin="Forest" OnRowDrop="rdGridInformacionAcademicaGeneral_RowDrop"
            <HeaderContextMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </HeaderContextMenu> 
            <PagerStyle NextPageText="Siguiente" PrevPageText="Anterior" /> 
            <MasterTableView DataSourceID="odsInformacionAcademicaGeneral" DataKeyNames="Id"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Course" HeaderText="Curso" SortExpression="Course" 
                        UniqueName="Course"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="College" HeaderText="Instituci&#243;n Educativa" 
                        SortExpression="College" UniqueName="College"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="StartedDate" DataType="System.DateTime" HeaderText="Fecha de Inicio" 
                        SortExpression="StartedDate" UniqueName="StartedDate"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="FinalizedDate" DataType="System.DateTime" HeaderText="Fecha de Finalizaci&#243;n" 
                        SortExpression="FinalizedDate" UniqueName="FinalizedDate"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime" HeaderText="&#218;ltima Actualizaci&#243;n" 
                        SortExpression="CreationDate" UniqueName="CreationDate"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <NoRecordsTemplate> 
                    No haz ingresado informaci&oacute;n de este tipo en el sistema. 
                </NoRecordsTemplate> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="True" /> 
                <ClientMessages PagerTooltipFormatString="P&#225;gina: &lt;b&gt;{0}&lt;/b&gt; de &lt;b&gt;{1}&lt;/b&gt; pages" /> 
            </ClientSettings> 
        </telerik:RadGrid><asp:ObjectDataSource ID="odsInformacionAcademicaGeneral" runat="server" 
            SelectMethod="GetAcademicBackgroundInfos" TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
            <SelectParameters> 
                <asp:Parameter Name="userId" Type="Int32" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
        <asp:ImageButton ID="imbDeleteAcademicaGeneral" runat="server" ImageUrl="~/Portals/0/images/trash_can.png" 
            AlternateText="Arrastre una fila para eliminar" ToolTip="Arrastre una fila para eliminar" /><asp:ImageButton 
                ID="imbEditAcademicaGeneral" runat="server" ImageUrl="~/Portals/0/images/edit.png" 
                AlternateText="Arrastre una fila para editar" ToolTip="Arrastre una fila para editar" /> 
        <br /> 
        <span class="small" style="font-size: 11px;">Para agregar un nuevo curso, haz click 
            <href="javascript:showAcademicaGeneralForm();">aqu&iacute;</a>.<br /> 
            Para editar un registro, arrastre una fila y sueltela sobre el l&aacute;piz.<br /> 
            Para eliminar un registro, arrastre una fila y sueltela sobre la papelera. </span> 
        <br /> 
        <div id="frmAcademicaGeneral" runat="server" style="display: none;"
            <div style="width: 450px; float: left;"
                <br /> 
                <h1> 
                    Por favor complete todos los campos 
                </h1> 
                <br /> 
                <div id="Div5"
                    <table width="450" border="0"
                        <tr> 
                            <td width="129"
                                <p> 
                                    Curso</p> 
                            </td> 
                            <td width="311"
                                <asp:TextBox runat="server" ID="txtGeneralCurso" MaxLength="70" CssClass="input" /> 
                            </td> 
                            <td width="311"
                                <asp:RequiredFieldValidator ID="rfvCurso" runat="server" ControlToValidate="txtGeneralCurso" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCourse">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revCurso" runat="server" ControlToValidate="txtGeneralCurso" Display="Dynamic" 
                                        ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." Font-Size="10px" 
                                        ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgCourse">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Lugar d&oacute;nde estudi&oacute; 
                                </p> 
                            </td> 
                            <td> 
                                <p> 
                                    <asp:TextBox runat="server" ID="txtGeneralInstitucion" MaxLength="70" CssClass="input" /> 
                                </p> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvInstitucion" runat="server" ControlToValidate="txtGeneralInstitucion" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ValidationGroup="vgCourse">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revInstitucion" runat="server" ControlToValidate="txtGeneralInstitucion" 
                                        Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                        Font-Size="10px" ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgCourse">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Fecha de Inicio</p> 
                            </td> 
                            <td> 
                                <div style="margin-left: 10px;"
                                    <telerik:RadDatePicker ID="rdGeneralFechaInicio" runat="server" Skin="Forest"
                                        <DatePopupButton HoverImageUrl="" ImageUrl=""></DatePopupButton> 
                                        <DateInput ReadOnly="True" runat="server" ID="diGeneralFechaInicio" DateFormat="dd/MM/yyyy"
                                        </DateInput> 
                                        <Calendar Skin="Forest" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                            ViewSelectorText="x" CultureInfo="spanish (colombia)" runat="server" ID="clGeneralFechaInicio"
                                        </Calendar> 
                                    </telerik:RadDatePicker> 
                                </div> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvInicioCurso" runat="server" ControlToValidate="rdGeneralFechaInicio" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCourse">Debes llenar este campo</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Fecha de Finalizaci&oacute;n</p> 
                            </td> 
                            <td> 
                                <div style="margin-left: 10px;"
                                    <telerik:RadDatePicker ID="rdGeneralFechaFinalizacion" runat="server" Skin="Forest"
                                        <DatePopupButton HoverImageUrl="" ImageUrl=""></DatePopupButton> 
                                        <DateInput ReadOnly="True" runat="server" ID="diGeneralFechaFinalizacion" DateFormat="dd/MM/yyyy"
                                        </DateInput> 
                                        <Calendar Skin="Forest" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                            ViewSelectorText="x" CultureInfo="spanish (colombia)" runat="server" ID="clGeneralFechaFinalizacion"
                                        </Calendar> 
                                    </telerik:RadDatePicker> 
                                </div> 
                            </td> 
                            <td> 
                                <asp:CompareValidator ID="cmpFecha" runat="server" ControlToCompare="rdGeneralFechaInicio" 
                                    ControlToValidate="rdGeneralFechaFinalizacion" Display="Dynamic" ErrorMessage="Verifique que el intervalo de fechas sea correcto." 
                                    Font-Size="10px" ForeColor="YellowGreen" Operator="GreaterThan" ToolTip="Verifique que el intervalo de fechas sea correcto." 
                                    Type="Date" ValidationGroup="vgCourse">Verifique que el intervalo de fechas sea correcto.</asp:CompareValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                            </td> 
                            <td> 
                                <asp:Button ID="btnAcademicaGeneralLimpiar" runat="server" CssClass="verificar" Text="Limpiar" 
                                    OnClick="btnAcademicaGeneralLimpiar_Click" /> 
                                <asp:Button ID="btnAcademicaGeneralEnviar" runat="server" CssClass="verificar" Text="Enviar" 
                                    CommandName="Add" OnClick="btnAcademicaGeneralEnviar_Click" ValidationGroup="vgCourse" /> 
                            </td> 
                            <td> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3"
                            </td> 
                        </tr> 
                    </table> 
                </div> 
            </div> 
        </div> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="rdvCertificaciones" runat="server"
        <telerik:RadGrid ID="rdGridCertificaciones" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
            DataSourceID="odsCertificaciones" GridLines="None" Skin="Forest" OnRowDrop="rdGridCertificaciones_RowDrop"
            <HeaderContextMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </HeaderContextMenu> 
            <MasterTableView DataSourceID="odsCertificaciones" DataKeyNames="Id"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Description" HeaderText="Descripci&#243;n de la Certificaci&#243;n" 
                        SortExpression="Description" UniqueName="Description"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DevelopmentCompany" HeaderText="Compa&#241;&#237;a Desarrolladora" 
                        SortExpression="DevelopmentCompany" UniqueName="DevelopmentCompany"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Version" HeaderText="Version" SortExpression="Version" 
                        UniqueName="Version"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ObtainedDate" DataType="System.DateTime" HeaderText="Fecha en la cual Obtuvo la Certificaci&#243;n" 
                        SortExpression="ObtainedDate" UniqueName="ObtainedDate"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime" HeaderText="&#218;ltima Actualizaci&#243;n" 
                        SortExpression="CreationDate" UniqueName="CreationDate"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <NoRecordsTemplate> 
                    No haz ingresado informaci&oacute;n de este tipo en el sistema. 
                </NoRecordsTemplate> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
            <PagerStyle NextPageText="Siguiente" PrevPageText="Anterior" /> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="true" /> 
                <ClientMessages PagerTooltipFormatString="P&#225;gina: &lt;b&gt;{0}&lt;/b&gt; de &lt;b&gt;{1}&lt;/b&gt; pages" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:ObjectDataSource ID="odsCertificaciones" runat="server" SelectMethod="GetCertificactionInfos" 
            TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
            <SelectParameters> 
                <asp:Parameter Name="userId" Type="Int32" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
        <asp:ImageButton ID="imbDeleteCertificacion" runat="server" ImageUrl="~/Portals/0/images/trash_can.png" 
            AlternateText="Arrastre una fila para eliminar" ToolTip="Arrastre una fila para eliminar" /><asp:ImageButton 
                ID="imbEditCertificacion" runat="server" ImageUrl="~/Portals/0/images/edit.png" 
                AlternateText="Arrastre una fila para editar" ToolTip="Arrastre una fila para editar" /><br /> 
        <span class="small" style="font-size: 11px;">Para agregar una nueva certificaci&oacute;n, 
            haz click <href="javascript:showCertificationForm();">aqu&iacute;</a>.<br /> 
            Para editar un registro, arrastre una fila y sueltela sobre el l&aacute;piz.<br /> 
            Para eliminar un registro, arrastre una fila y sueltela sobre la papelera. </span> 
        <br /> 
        <div id="frmCertificacion" style="display: none;" runat="server"
            <div style="width: 450px; float: left;"
                <br /> 
                <h1> 
                    Por favor complete todos los campos 
                </h1> 
                <br /> 
                <div id="Div4"
                    <table width="450" border="0"
                        <tr> 
                            <td width="129"
                                <p> 
                                    Descripci&oacute;n</p> 
                            </td> 
                            <td width="311"
                                <asp:TextBox ID="txtDescripcionCertificacion" runat="server" MaxLength="200" TextMode="MultiLine" 
                                    CssClass="textarea" /> 
                            </td> 
                            <td width="311"
                                <span id="charactersLeft" style="color: #9ACD32; font-size: 10px;">Te quedan 200 caracteres</span>
                                <asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcionCertificacion" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCertificacion">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revDescripcion" runat="server" ControlToValidate="txtDescripcionCertificacion" 
                                        Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                        Font-Size="10px" ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+((\s|\S)([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgCertificacion">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator> 
                                <asp:RegularExpressionValidator ID="revLongitud" runat="server" ControlToValidate="txtDescripcionCertificacion" 
                                    Display="Dynamic" ErrorMessage="Te haz excedido en el m&aacute;ximo de caracteres" 
                                    Font-Size="10px" ForeColor="YellowGreen" ToolTip="Te haz excedido en el m&aacute;ximo de caracteres" 
                                    ValidationExpression="^[\s\S]{0,200}$" ValidationGroup="vgCertificacion">Te haz excedido en el m&aacute;ximo de caracteres</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Compa&ntilde;&iacute;a</p> 
                            </td> 
                            <td> 
                                <asp:TextBox runat="server" ID="txtCompaniaCertificacion" MaxLength="50" CssClass="input" 
                                    Columns="50" Rows="4" /> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvCompania" runat="server" ControlToValidate="txtCompaniaCertificacion" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCertificacion">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revCompania" runat="server" ControlToValidate="txtCompaniaCertificacion" 
                                        Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                        Font-Size="10px" ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgCertificacion">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Versi&oacute;n</p> 
                            </td> 
                            <td> 
                                <asp:TextBox runat="server" ID="txtVersionCertificacion" MaxLength="30" CssClass="input" /> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvVersion" runat="server" ControlToValidate="txtVersionCertificacion" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCertificacion">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revVersion" runat="server" ControlToValidate="txtVersionCertificacion" Display="Dynamic" 
                                        ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." Font-Size="10px" 
                                        ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgCertificacion">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Fecha de Obtenci&oacute;n 
                                </p> 
                            </td> 
                            <td> 
                                <div style="margin-left: 10px;"
                                    <telerik:RadDatePicker ID="rdCertificacionFechaObtencion" runat="server" Skin="Forest"
                                        <DatePopupButton HoverImageUrl="" ImageUrl=""></DatePopupButton> 
                                        <DateInput ReadOnly="True" runat="server" ID="diCertificacionFechaObtencion" DateFormat="dd/MM/yyyy"
                                        </DateInput> 
                                        <Calendar Skin="Forest" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                            ViewSelectorText="x" CultureInfo="spanish (colombia)" runat="server" ID="clCertificacionFechaObtencion"
                                        </Calendar> 
                                    </telerik:RadDatePicker> 
                                </div> 
                            </td> 
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvFechaCertificacion" runat="server" ControlToValidate="rdCertificacionFechaObtencion" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgCertificacion">Debes llenar este campo</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                            </td> 
                            <td> 
                                <asp:Button ID="btnCertificacionLimpiar" runat="server" CssClass="verificar" Text="Limpiar" 
                                    OnClick="btnCertificacionLimpiar_Click" /> 
                                <asp:Button ID="btnCertificacionEnviar" runat="server" CssClass="verificar" Text="Enviar" 
                                    CommandName="Add" OnClick="btnCertificacionEnviar_Click" ValidationGroup="vgCertificacion" /> 
                            </td> 
                            <td> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3"
                            </td> 
                        </tr> 
                    </table> 
                </div> 
            </div> 
        </div> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="rpvIdiomas" runat="server"
        <telerik:RadGrid ID="rdGridIdiomas" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
            DataSourceID="odsIdiomas" GridLines="None" Skin="Forest" OnRowDrop="rdGridIdiomas_RowDrop"
            <HeaderContextMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </HeaderContextMenu> 
            <MasterTableView DataSourceID="odsIdiomas" DataKeyNames="Id"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Language" HeaderText="Idioma" SortExpression="Language" 
                        UniqueName="Language"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SpeechLevel" HeaderText="Nivel Con Respecto a Habla" 
                        SortExpression="SpeechLevel" UniqueName="SpeechLevel"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="WriteLevel" HeaderText="Nivel con Respecto a Escritura" 
                        SortExpression="WriteLevel" UniqueName="WriteLevel"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Institution" HeaderText="Instituci&#243;n en la cual Estudio" 
                        SortExpression="Institution" UniqueName="Institution"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime" HeaderText="&#218;ltima Actualizaci&#243;n" 
                        SortExpression="CreationDate" UniqueName="CreationDate"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <NoRecordsTemplate> 
                    No haz ingresado informaci&oacute;n de este tipo en el sistema. 
                </NoRecordsTemplate> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True" Skin="Forest"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
            <PagerStyle NextPageText="Siguiente" PrevPageText="Anterior" /> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="True" /> 
                <ClientMessages PagerTooltipFormatString="P&#225;gina: &lt;b&gt;{0}&lt;/b&gt; de &lt;b&gt;{1}&lt;/b&gt; pages" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:ObjectDataSource ID="odsIdiomas" runat="server" SelectMethod="GetLanguageBackgroundInfos" 
            TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
            <SelectParameters> 
                <asp:Parameter Name="userId" Type="Int32" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
        <asp:ImageButton ID="imbDeleteLanguage" runat="server" ImageUrl="~/Portals/0/images/trash_can.png" 
            AlternateText="Arrastre una fila para eliminar" ToolTip="Arrastre una fila para eliminar" /><asp:ImageButton 
                ID="imbEditIdiomas" runat="server" ImageUrl="~/Portals/0/images/edit.png" AlternateText="Arrastre una fila para editar" 
                ToolTip="Arrastre una fila para editar" /><br /> 
        <span class="small" style="font-size: 11px;">Para agregar un nuevo idioma, haz click 
            <href="javascript:showLanguageForm();">aqu&iacute;</a>.<br /> 
            Para editar un registro, arrastre una fila y sueltela sobre el l&aacute;piz.<br /> 
            Para eliminar un registro, arrastre una fila y sueltela sobre la papelera. </span> 
        <br /> 
        <div id="frmIdioma" style="display: none;" runat="server"
            <div style="width: 450px; float: left;"
                <br /> 
                <h1> 
                    Por favor complete todos los campos 
                </h1> 
                <br /> 
                <div id="Div1"
                    <table width="450" border="0"
                        <tr> 
                            <td width="129"
                                <p> 
                                    Idioma</p> 
                            </td> 
                            <td width="311"
                                <asp:DropDownList runat="server" ID="ddlIdioma" CssClass="input" AppendDataBoundItems="True" 
                                    DataSourceID="odsIdioma" DataTextField="Name" DataValueField="Id"
                                    <asp:ListItem Selected="True" Value="0">[Seleccione]</asp:ListItem> 
                                </asp:DropDownList> 
                                <asp:ObjectDataSource ID="odsIdioma" runat="server" SelectMethod="GetLanguages" TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
                                </asp:ObjectDataSource> 
                            </td> 
                            <td width="311"
                                <asp:RequiredFieldValidator ID="rfvIdioma" runat="server" ControlToValidate="ddlIdioma" 
                                    Display="Dynamic" ErrorMessage="Debes seleccionar una opci&oacute;n" Font-Size="10px" 
                                    ForeColor="YellowGreen" InitialValue="0" ToolTip="Debes seleccionar una opci&oacute;n" 
                                    ValidationGroup="vgIdioma">Debes seleccionar una opci&oacute;n</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Nivel de Habla</p> 
                            </td> 
                            <td> 
                                <asp:DropDownList runat="server" ID="ddlNivelHabla" CssClass="input" AppendDataBoundItems="True" 
                                    DataSourceID="odsLanguageLevel" DataTextField="Description" DataValueField="Id"
                                    <asp:ListItem Selected="True" Value="0">[Seleccione]</asp:ListItem> 
                                </asp:DropDownList></td
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvNivelHabla" runat="server" ControlToValidate="ddlNivelHabla" 
                                    Display="Dynamic" ErrorMessage="Debes seleccionar una opci&oacute;n" Font-Size="10px" 
                                    ForeColor="YellowGreen" InitialValue="0" ToolTip="Debes seleccionar una opci&oacute;n" 
                                    ValidationGroup="vgIdioma">Debes seleccionar una opci&oacute;n</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                                <p> 
                                    Nivel de Escritura</p> 
                            </td> 
                            <td> 
                                <asp:DropDownList runat="server" ID="ddlNivelEscritura" CssClass="input" AppendDataBoundItems="True" 
                                    DataSourceID="odsLanguageLevel" DataTextField="Description" DataValueField="Id"
                                    <asp:ListItem Selected="True" Value="0">[Seleccione]</asp:ListItem> 
                                </asp:DropDownList></td
                            <td> 
                                <asp:RequiredFieldValidator ID="rfvNivelEscritura" runat="server" ControlToValidate="ddlNivelEscritura" 
                                    Display="Dynamic" ErrorMessage="Debes seleccionar una opci&oacute;n" Font-Size="10px" 
                                    ForeColor="YellowGreen" InitialValue="0" ToolTip="Debes seleccionar una opci&oacute;n" 
                                    ValidationGroup="vgIdioma">Debes seleccionar una opci&oacute;n</asp:RequiredFieldValidator></td
                        </tr> 
                        <tr> 
                            <td style="height: 42px"
                                <p> 
                                    Instituci&oacute;n</p> 
                            </td> 
                            <td style="height: 42px"
                                <asp:TextBox runat="server" ID="txtInstitucionIdioma" MaxLength="50" CssClass="input" /> 
                            </td> 
                            <td style="height: 42px"
                                <asp:RequiredFieldValidator ID="rfvInstitucionIdioma" runat="server" ControlToValidate="txtInstitucionIdioma" 
                                    Display="Dynamic" ErrorMessage="Debes llenar este campo" Font-Size="10px" ForeColor="YellowGreen" 
                                    ToolTip="Debes llenar este campo" ValidationGroup="vgIdioma">Debes llenar este campo</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                                        ID="revInstitucionIdioma" runat="server" ControlToValidate="txtInstitucionIdioma" 
                                        Display="Dynamic" ErrorMessage="Este campo contiene caracteres  inv&aacute;lidos." 
                                        Font-Size="10px" ForeColor="YellowGreen" ToolTip="Este campo contiene caracteres  inv&aacute;lidos." 
                                        ValidationExpression="([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;|-|_)+(\s([a-zA-Z]|[0-9]|&aacute;|&eacute;|&iacute;|&oacute;|&uacute;|-|_|&Aacute;|&Eacute;|&Iacute;|&Oacute;|&Uacute;|&ntilde;|&Ntilde;)+)*" 
                                        ValidationGroup="vgIdioma">Este campo contiene caracteres  inv&aacute;lidos.</asp:RegularExpressionValidator></td
                        </tr> 
                        <tr> 
                            <td> 
                            </td> 
                            <td> 
                                <asp:Button ID="btnIdiomaLimpiar" runat="server" CssClass="verificar" Text="Limpiar" 
                                    OnClick="btnIdiomaLimpiar_Click" /> 
                                <asp:Button ID="btnIdiomaEnviar" runat="server" CssClass="verificar" Text="Enviar" 
                                    CommandName="Add" OnClick="btnIdiomaEnviar_Click" ValidationGroup="vgIdioma" /> 
                            </td> 
                            <td> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3"
                                <asp:ObjectDataSource ID="odsLanguageLevel" runat="server" SelectMethod="GetLanguageLevels" 
                                    TypeName="OnData.WebSite.Modules.TrabajaConNosotros.TrabajaConNosotrosController"
                                </asp:ObjectDataSource> 
                            </td> 
                        </tr> 
                    </table> 
                </div> 
            </div> 
        </div> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 
<telerik:RadAjaxManager ID="rdManager" runat="server" DefaultLoadingPanelID="rdLoadingPane"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btnLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rdGridInformacionAcademicaFormal"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmFAcademic" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaFormalLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmFAcademic" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaFormalEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridInformacionAcademicaFormal" /> 
                <telerik:AjaxUpdatedControl ControlID="frmFAcademic" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rdGridInformacionAcademicaGeneral"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmAcademicaGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaGeneralLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmAcademicaGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaGeneralEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridInformacionAcademicaGeneral" /> 
                <telerik:AjaxUpdatedControl ControlID="frmAcademicaGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rdGridCertificaciones"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmCertificacion" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnCertificacionLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmCertificacion" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnCertificacionEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridCertificaciones" /> 
                <telerik:AjaxUpdatedControl ControlID="frmCertificacion" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rdGridIdiomas"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmIdioma" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnIdiomaLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmIdioma" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnIdiomaEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridIdiomas" /> 
                <telerik:AjaxUpdatedControl ControlID="frmIdioma" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaFormalLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmFAcademic" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaFormalEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridInformacionAcademicaFormal" /> 
                <telerik:AjaxUpdatedControl ControlID="frmFAcademic" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaGeneralLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmAcademicaGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnAcademicaGeneralEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridInformacionAcademicaGeneral" /> 
                <telerik:AjaxUpdatedControl ControlID="frmAcademicaGeneral" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnCertificacionLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmCertificacion" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnCertificacionEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridCertificaciones" /> 
                <telerik:AjaxUpdatedControl ControlID="frmCertificacion" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnIdiomaLimpiar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="frmIdioma" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnIdiomaEnviar"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rdGridIdiomas" /> 
                <telerik:AjaxUpdatedControl ControlID="frmIdioma" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="rdLoadingPane" runat="server" HorizontalAlign="Center" 
    Transparency="25" IsSticky="false" Wrap="False"
    <img alt="Loading..." src='<%= Page.ResolveUrl("~/Portals/0/images/cargando.gif") %>' 
        style="border: 0px;" /> 
    <span style="font-size: 11px; color: #698B22;">Cargando...</span> 
</telerik:RadAjaxLoadingPanel> 
 
This is the error Im getting:
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error. ---> System.Web.HttpException: Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error. ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) --- End of inner exception stack trace --- at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) at Telerik.Web.UI.RadAjaxControl.PerformRender() at Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at DotNetNuke.Framework.PageBase.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Iana Tsolova
Telerik team
 answered on 18 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?