Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
142 views
I have a problem using the popup edit form in the grid. In IE 7, the modal form is all greyed out. This works fine in Firefox 3.5. All the demos work fine in IE, so I'm assuming it's a CSS problem?

Above this code is a bunch of other divs, but here is the basics of it.

 <div class="contentfull"> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
         <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="grdCourses"> 
               <UpdatedControls> 
                  <telerik:AjaxUpdatedControl ControlID="grdCourses" /> 
               </UpdatedControls> 
            </telerik:AjaxSetting> 
         </AjaxSettings> 
      </telerik:RadAjaxManager> 
    
      <telerik:RadGrid ID="grdCourses" runat="server" AllowMultiRowEdit="false" AllowMultiRowSelection="false" 
                     AllowSorting="true" Skin="Vista" Width="50%"> 
         <ClientSettings> 
         <Scrolling AllowScroll="false" /> 
            <Selecting AllowRowSelect="true"/> 
         </ClientSettings> 
         <ExportSettings Excel-FileExtension="xls" Excel-Format="ExcelML" ExportOnlyData="True" OpenInNewWindow="True"></ExportSettings>  
         <MasterTableView GridLines="None" EditMode="PopUp" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" AllowPaging="False"> 
            <CommandItemSettings AddNewRecordText="Add New Course" /> 
            <Columns> 
               <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> 
               <telerik:GridBoundColumn UniqueName="CourseID" HeaderText="ID" DataField="CourseID"></telerik:GridBoundColumn> 
               <telerik:GridBoundColumn UniqueName="Title" DataField="Title" HeaderText="Title"  Visible="True" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn> 
               <telerik:GridBoundColumn UniqueName="Description" DataField="Details" HeaderText="Description"  Visible="False"></telerik:GridBoundColumn> 
               <telerik:GridButtonColumn UniqueName="Delete" CommandName="Delete" Text="Delete"></telerik:GridButtonColumn> 
            </Columns> 
             
            <EditFormSettings EditFormType="Template"> 
               <FormTemplate> 
               <div> 
 Hi Edit Form 
</div> 
                   
               </FormTemplate> 
                 
               <PopUpSettings Height="800px" ScrollBars="None" Width="800px" Modal="true" /> 
            </EditFormSettings> 
         </MasterTableView> 
      </telerik:RadGrid> 
   </div><!--contentfull--> 

Any ideas? I'll keep trying to figure it out as I'm assuming it's a css problem.
Mira
Telerik team
 answered on 21 Aug 2009
1 answer
148 views
Hello Sir i want the grouping inside the group for example

> ProdutName : XYz
Pro                    cost             Loc
abc                  2000            ind
paq                 2000            srilanka

>ProductNam: PQR
Pro              Cost             Loc
abc              2000            USA
paq             2000            Holand
Combined
  |--              4000             USA  
  |--              4000            USA
 | --              4000            USA

Just like this type of grouping means in combined group., grup the product they have same cost and location is same and prodcut is same then show its in combined. The Product Name is Primary Fileld. Inside that grup bye cost and loc.

Is this possible grouping inside grouping is it possible ?  And also display the sum in below footer of group.


Reply
Thanks

Iana Tsolova
Telerik team
 answered on 21 Aug 2009
7 answers
195 views
I was wondering if there is a way to create my own custom skins and have it in the drop down list with all the default skins that come with the RadControls.  I need this functionality because I could possibly use a different skin for the same component either on the same page or some where else on the website that I'm working on.

I have gone through the help file to try and see if there is a way, but it only shows you how to apply the skin to all the controls site wide.

Kai Thao
Kai
Top achievements
Rank 1
 answered on 21 Aug 2009
1 answer
133 views
Hi,

I am trying to implement the following solution

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultvb.aspx

In the LinkManager.ascx of the RadEditor.

The javascript functions cannot find div1 and in function OnClientDropDownOpenedHandler

var tree = sender.get_items().getItem(0).findControl("RadTreeView1");

does not work.

Can you please assist?

Marc








Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 21 Aug 2009
2 answers
178 views
Hello,

I have seen a similar problem to this elsewhere, but have not been able to get any of the proposed solutions to work.  Here is my issue:

I have a page with a RadTabStrip and RadMultiPage.  The tabstrip is being used only as an indicator of progress, while I am using next and back buttons on each pageview to move between the items (using the "wizard" functionality).  I have the whole thing inside an ajaxpanel, because I didn't want the whole page to reload each time the user clicked next or back.

I have a RadEditor on the 2nd pageview (so it is hidden at first).  In IE, everything works fine.  However, in Firefox, when the RadEditor is initially hidden, then shown after the user clicks next, I cannot click in the content area to edit.  If I click the Preview button, then go back to Design (we have disabled the HTML view), I can click in and edit the content area, but none of the buttons work.  If I click one of the buttons (like Bold), it just adds a "#" to the path of the page, so I'm assuming that whatever javascript was supposed to run when clicking that button isn't running.

If I remove the ajaxpanel, the RadEditor works fine in Firefox, so I'm assuming it's related to the AjaxPanel.  I would like to be able to use the AjaxPanel, because I want an indicator for the user to see that something is going on between steps.


Here is a basic form that I just tested that illustrates the issue: 
(I am using Firefox 3.0.10, and RadControls for ASP.NET AJAX Q1 2009)

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager id="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
     
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" /> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" EnablePageHeadUpdate="false">  
    <telerik:RadTabStrip ID="RadTabStrip1"  
                             runat="server"  
                             MultiPageID="RadMultiPage1"  
                             SelectedIndex="0"  
                             EnableEmbeddedSkins="false" 
                             meta:resourceKey="RadTabStrip1Resource1"> 
                              
            <Tabs> 
                <telerik:RadTab PageViewID="Step 1" Selected="true" runat="server" CssClass="progress current" /> 
                <telerik:RadTab PageViewID="Step 2" runat="server" CssClass="progressDisabled" /> 
                <telerik:RadTab PageViewID="Step 3" runat="server" CssClass="progressDisabled" /> 
            </Tabs> 
        </telerik:RadTabStrip> 
         
         
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
         
         
            <%-- STEP 1 --%> 
            <telerik:RadPageView ID="SelectAudience" runat="server" Selected="true" meta:resourceKey="SelectAudienceResource1"> 
                <p>Step 1</p>                
                <div class="block append-bottom"> 
                    <div class="prepend-16 span-6" align="center"> 
                        <asp:Button ID="btnNextStep1" runat="server" CssClass="next"  
                            text="Step 2" /> 
                    </div> 
                </div> 
            </telerik:RadPageView>            
             
             
             
             
             
             
             
            <%-- STEP 2 --%> 
            <telerik:RadPageView ID="CreateMessage" runat="server" meta:resourceKey="CreateMessageResource1"> 
             
                <div class="block">                  
                    <div class="span-24">             
                        <telerik:RadEditor ID="txtMessage"  
                                           runat="server"  
                                           Skin="Vista" 
                                           SkinID="messageEdit" 
                                           EditModes="Design, Preview"  
                            meta:resourceKey="txtMessageResource1" > 
                            <Tools> 
                                <telerik:EditorToolGroup> 
                                        <telerik:EditorTool Name="Bold" /> 
                                        <telerik:EditorTool Name="Italic" /> 
                                        <telerik:EditorTool Name="Underline" /> 
                                        <telerik:EditorTool Name="AjaxSpellCheck" /> 
                                        <telerik:EditorTool Name="Copy" /> 
                                        <telerik:EditorTool Name="Cut" /> 
                                        <telerik:EditorTool Name="Paste" /> 
                                        <telerik:EditorTool Name="PasteFromWord" /> 
                                        <telerik:EditorTool Name="Undo" /> 
                                        <telerik:EditorTool Name="InsertTime" />                                       
                                        <telerik:EditorTool Name="JustifyLeft" /> 
                                        <telerik:EditorTool Name="JustifyCenter" /> 
                                        <telerik:EditorTool Name="JustifyRight" /> 
                                        <telerik:EditorTool Name="Superscript" /> 
                                        <telerik:EditorTool Name="Subscript" /> 
                                </telerik:EditorToolGroup> 
                             
                            </Tools> 
 
                            <Content> 
                            </Content> 
 
                        </telerik:RadEditor> 
                    </div> 
                </div> 
               <div class="block append-bottom"> 
                    <div class="prepend-10 span-12" align="center"> 
                        <asp:Button ID="btnPreviousStep2" runat="server" CssClass="previous"  
                            Text="Back" CausesValidation="False" /> 
                        <asp:Button ID="btnNextStep2" runat="server" CssClass="next" Text="Step 3"  
                            ValidationGroup="2"  /> 
                    </div> 
                </div> 
            </telerik:RadPageView>         
             
             
             
             
            <%-- STEP 3 --%> 
            <telerik:RadPageView ID="Confirmation" runat="server">             
                <p>Step 3</p>    
                <div class="block append-bottom"> 
                    <div class="prepend-4 span-6" align="center"> 
                        <asp:Button ID="btnPreviousStep3" runat="server" CssClass="previous"  
                            Text="Back" CausesValidation="False"  
                            meta:resourceKey="btnPreviousStep3Resource1" /> 
                    </div> 
                    <div class="span-6" align="center"> 
                        <asp:Button ID="btnStartOver" runat="server" CssClass="startOver"  
                            Text="Start Over" CausesValidation="False"  /> 
                    </div> 
 
                </div>            
            </telerik:RadPageView> 
        </telerik:RadMultiPage>  
        </telerik:RadAjaxPanel> 
    </form> 
</body> 
</html> 
 




Any help is greatly appreciated.

Thanks,
Gene






Gene
Top achievements
Rank 1
 answered on 21 Aug 2009
1 answer
154 views
Hi
   If you go to sample
http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/scrolling/defaultcs.aspx

and have a close look at panel bar text  i-e "Win Forms Controls" then you will find that it is not vertically aligned in middle.  The space left below text is more then the space available above text. My Guess is its 2 px on top and 5 px left at bottom and between that is the text.

Is there any way to align it properly ?


Best Regards
Rizwan Bashir
Alex Gyoshev
Telerik team
 answered on 21 Aug 2009
1 answer
173 views
I am trying to use the Radupload to upload files to the SQL server. The problem I am having is with the path of the file. I am using the code below. The file is trying to be located on the server instead of the client machine. How do I get the correct path so that the server can locate the file.


 

If RadUpload1.UploadedFiles.Count > 0 Then

 

 

For Each validFile As UploadedFile In RadUpload1.UploadedFiles

 

MyNcr = validFile.GetName

 

If Right(validFile.GetName, 3) = "jpg" Or Right(validFile.GetName, 3) = "JPG" Then

 

 

'validFile.SaveAs(Path.Combine("c:\", validFile.GetName()), True)

 

 

Dim fs As FileStream = New FileStream(validFile.FileName, FileMode.Open, FileAccess.Read)

 

 

Dim br As BinaryReader = New BinaryReader(fs)

 

 

photo = br.ReadBytes(System.Convert.ToInt32(fs.Length))

br.Close()

fs.Close()

 

 

 

 

Genady Sergeev
Telerik team
 answered on 21 Aug 2009
3 answers
99 views
I have a RadTreeViewContextMenu on a RadTree that contains an Item Template with a textbox. button, and customvalidator.  On Postback, I need to display the RadTreeViewContextMenu if validation fails.  I'm at a loss on how to do this.  Any ideas?

Thanks in advance,
Gene.
Veselin Vasilev
Telerik team
 answered on 21 Aug 2009
1 answer
121 views
Hi,

I want to know if it's possible to stretch a RadToolBar to fit the width of RadWindows when the one was resized? (javascript)
and how ?

Because my radwindow must be able to resizing by user, and when I resiz my window; the toolbar don't fit the new width of the window.

Thanks.
Yana
Telerik team
 answered on 21 Aug 2009
4 answers
174 views
I have a RadGrid with an inline edit form.
I have a lot of columns with display=false.
Is there an easy way to be able to expand a row to display those columns - like displaying the edit form in readonly mode?

Also the grid always renders at 100% width.
Is there a way to have the grid render at auto width?
(I currently solve this problem by nesting the grid in an empty table like this: <table><tr><td><telerik:RadGrid /></td></tr></table>, but that seems to be an 'evil hack'.)

Here's the grid:

                <telerik:RadGrid ID="UsersGrid" runat="server"
                    AllowAutomaticDeletes="True"
                    AllowAutomaticInserts="True"
                    AllowAutomaticUpdates="True"
                    AllowFilteringByColumn="true"
                    AllowPaging="True"
                    AllowSorting="True"
                    AutoGenerateColumns="False"
                    DataSourceID="UsersDataSource"
                    OnItemCommand="UsersGrid_ItemCommand"
                    PageSize="20">
                    <ValidationSettings
                        EnableValidation="true"
                        ValidationGroup="Grid" />
                    <MasterTableView
                        AllowAutomaticDeletes="true"
                        AllowAutomaticInserts="true"
                        AllowAutomaticUpdates="true"
                        CommandItemDisplay="Top"
                        DataKeyNames="UserID"
                        NoMasterRecordsText="<%$ Resources:Strings, NoData %>">
                        <CommandItemSettings
                            AddNewRecordText="<%$ Resources:Strings, Add %>"
                            RefreshText="" />
                        <EditFormSettings ColumnNumber="2">
                            <EditColumn
                                ButtonType="ImageButton"
                                CancelText="<%$ Resources:Strings, Cancel %>"
                                InsertText="<%$ Resources:Strings, Insert %>"
                                UpdateText="<%$ Resources:Strings, Update %>" />
                        </EditFormSettings>
                        <Columns>
                            <telerik:GridTemplateColumn DataField="Username" Display="false" HeaderText="<%$ Resources:Strings, Username %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:HiddenField ID="UserID" runat="server" Value='<%# Eval("UserID") %>' />
                                    <telerik:RadTextBox ID="Username" runat="server" Text='<%# Bind("Username") %>' ValidationGroup="Grid" />
                                    <asp:RequiredFieldValidator ID="UsernameRequired" runat="server"
                                        ControlToValidate="Username"
                                        ErrorMessage="<%$ Resources:Strings, RequiredField %>"
                                        SetFocusOnError="true"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="UsernameRequiredExtender" runat="server" TargetControlID="UsernameRequired" />
                                    <asp:CustomValidator ID="UsernameValidator" runat="server"
                                        ControlToValidate="Username"
                                        ErrorMessage="<%$ Resources:Strings, UsernameTaken %>"
                                        OnServerValidate="UsernameValidator_ServerValidate"
                                        SetFocusOnError="true"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="UsernameValidatorExtender" runat="server" TargetControlID="UsernameValidator" />
                               </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, Password %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox ID="Password" runat="server" Text='<%# Bind("Password") %>' TextMode="Password" ValidationGroup="Grid" />
                                    <asp:RegularExpressionValidator ID="PasswordValidator" runat="server"
                                        ControlToValidate="Password"
                                        ErrorMessage="<%$ Resources:Strings, InvalidPassword %>"
                                        SetFocusOnError="true"
                                        ValidationExpression=".{7,}"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="PasswordValidatorExtender" runat="server" TargetControlID="PasswordValidator" />
                               </EditItemTemplate>
                            </telerik:GridTemplateColumn>                                    
                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="GivenName" HeaderText="<%$ Resources:Strings, GivenName %>" SortExpression="GivenName">
                                <ItemTemplate>
                                    <asp:Label ID="GivenName" runat="server" Text='<%# Eval("GivenName") %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                     <telerik:RadTextBox ID="GivenName" runat="server" Text='<%# Bind("GivenName") %>' ValidationGroup="Grid" />
                                    <asp:RequiredFieldValidator ID="GivenNameRequired" runat="server"
                                        ControlToValidate="GivenName"
                                        ErrorMessage="<%$ Resources:Strings, RequiredField %>"
                                        SetFocusOnError="true"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="GivenNameRequiredExtender" runat="server" TargetControlID="GivenNameRequired" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="FamilyName" HeaderText="<%$ Resources:Strings, FamilyName %>" SortExpression="FamilyName">
                                <ItemTemplate>
                                    <asp:Label ID="FamilyName" runat="server" Text='<%# Eval("FamilyName") %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox ID="FamilyName" runat="server" Text='<%# Bind("FamilyName") %>' ValidationGroup="Grid" />
                                    <asp:RequiredFieldValidator ID="FamilyNameRequired" runat="server"
                                        ControlToValidate="FamilyName"
                                        ErrorMessage="<%$ Resources:Strings, RequiredField %>"
                                        SetFocusOnError="true"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="FamilyNameRequiredExtender" runat="server" TargetControlID="FamilyNameRequired" />
                               </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="<%$ Resources:Strings, Telephone %>" SortExpression="Telephone">
                                <ItemTemplate>
                                    <asp:Label ID="Telephone" runat="server" Text='<%# Eval("Telephone") %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <div style="white-space:nowrap;">
                                        <telerik:RadTextBox ID="Telephone" runat="server" Text='<%# Bind("Telephone") %>' MaxLength="50" ValidationGroup="Grid" />
                                        <asp:CheckBox ID="HideTelephone" runat="server" Checked='<%# Bind("HideTelephone") %>' Text="<%$ Resources:Strings, Hide %>" />
                                    </div>
                               </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="<%$ Resources:Strings, Email %>" SortExpression="Email">
                                <ItemTemplate>
                                    <asp:Label ID="Email" runat="server" Text='<%# Eval("Email") %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <div style="white-space:nowrap;">
                                        <telerik:RadTextBox ID="Email" runat="server" Text='<%# Bind("Email") %>' MaxLength="50" ValidationGroup="Grid" />
                                        <asp:RegularExpressionValidator ID="EmailValidator" runat="server"
                                            ControlToValidate="Email"
                                            ErrorMessage="<%$ Resources:Strings, InvalidEmail %>"
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            ValidationGroup="Grid" />
                                        <ajax:ValidatorCalloutExtender ID="EmailValidatorExtender" runat="server"
                                            TargetControlID="EmailValidator" />
                                        <asp:CheckBox ID="HideEmail" runat="server" Checked='<%# Bind("HideEmail") %>' Text="<%$ Resources:Strings, Hide %>" />
                                    </div>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="DateOfBirth" Display="false" HeaderText="<%$ Resources:Strings, DateOfBirth %>" PickerType="DatePicker" />
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, Height %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox ID="Height" runat="server"
                                        DataType="Number"
                                        DbValue='<%# Bind("Height") %>'
                                        MinValue="50"
                                        MaxValue="250"
                                        NumberFormat-DecimalDigits="0"
                                        NumberFormat-GroupSizes="4" />                        
                                </EditItemTemplate>                        
                            </telerik:GridTemplateColumn>   
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, EyeColor %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="EyeColorID" runat="server"
                                        AppendDataBoundItems="true"
                                        DataSourceID="EyeColorDataSource"
                                        DataTextField="EyeColorName"
                                        DataValueField="EyeColorID"
                                        SelectedValue='<%# Bind("EyeColorID") %>'>
                                        <Items>
                                            <telerik:RadComboBoxItem />
                                        </Items>
                                    </telerik:RadComboBox>
                                </EditItemTemplate>                        
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, HairColor %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="HairColorID" runat="server"
                                        AppendDataBoundItems="true"
                                        DataSourceID="HairColorDataSource"
                                        DataTextField="HairColorName"
                                        DataValueField="HairColorID"
                                        SelectedValue='<%# Bind("HairColorID") %>'>
                                        <Items>
                                            <telerik:RadComboBoxItem />
                                        </Items>
                                    </telerik:RadComboBox>
                                </EditItemTemplate>                        
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="GraduationYear" HeaderText="<%$ Resources:Strings, GraduationYear %>" ItemStyle-HorizontalAlign="Center" SortExpression="GraduationYear" UniqueName="GraduationYear">
                                <ItemTemplate>
                                    <asp:Label ID="GraduationYear" runat="server" Text='<%# Eval("GraduationYear") %>' Visible='<%# (int)Eval("GraduationYear") != 0 %>' />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox ID="GraduationYear" runat="server"
                                        DataType="Number"
                                        DbValue='<%# Bind("GraduationYear") %>'
                                        MinValue='<%# DateTime.Now.Year - 10 %>'
                                        MaxValue='<%# DateTime.Now.Year + 10 %>'
                                        NumberFormat-DecimalDigits="0"
                                        NumberFormat-GroupSizes="4" />                   
                                </EditItemTemplate>                        
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn Display="false" EditFormColumnIndex="1" HeaderText="<%$ Resources:Strings, DescriptionDanish %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadEditor ID="DescriptionDanish" runat="server"
                                        Content='<%# Bind("DescriptionDanish") %>'
                                        SkinID="Description" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>                       
                            <telerik:GridTemplateColumn Display="false" EditFormColumnIndex="1" HeaderText="<%$ Resources:Strings, DescriptionEnglish %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadEditor ID="DescriptionEnglish" runat="server"
                                        Content='<%# Bind("DescriptionEnglish") %>'
                                        SkinID="Description" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>  
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, Website %>">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox ID="Website" runat="server" Text='<%# Bind("Website") %>' ValidationGroup="Grid" />
                                    <asp:RegularExpressionValidator ID="WebsiteValidator" runat="server"
                                        ControlToValidate="Website"
                                        ErrorMessage="<%$ Resources:Strings, InvalidUri %>"
                                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"
                                        ValidationGroup="Grid" />
                                    <ajax:ValidatorCalloutExtender ID="WebsiteValidatorExtender" runat="server"
                                        TargetControlID="WebsiteValidator" />                         
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>   
                            <telerik:GridTemplateColumn Display="false" HeaderText="<%$ Resources:Strings, Portrait %>" UniqueName="Portrait">
                                <ItemTemplate>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadBinaryImage ID="Portrait" runat="server"
                                        AutoAdjustImageControlSize="false"
                                        DataValue='<%# Eval("Portrait") != DBNull.Value ? Eval("Portrait") : null %>'
                                        GenerateEmptyAlternateText="true"
                                        Width="100px" />                                
                                    <div>
                                        <asp:Button ID="DeletePortrait" runat="server"
                                            CommandArgument='<%# Eval("UserID") %>'
                                            OnClick="DeletePortrait_Click"
                                            Text="<%$ Resources:Strings, Delete %>"
                                            Visible='<%# Eval("Portrait") != DBNull.Value %>' />
                                        <ajax:ConfirmButtonExtender ID="DeletePortraitExtender" runat="server" ConfirmText="<%$ Resources:Strings, AreYouSure %>" TargetControlID="DeletePortrait" />
                                    </div>                                
                                    <asp:FileUpload ID="PortraitUpload" runat="server" />
                                </EditItemTemplate>                        
                            </telerik:GridTemplateColumn>    
                            <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" DataField="Administrator" HeaderText="<%$ Resources:Strings, Administrator %>" ItemStyle-HorizontalAlign="Center" SortExpression="Administrator" />
                            <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" DataField="TeachingStaff" HeaderText="<%$ Resources:Strings, TeachingStaff %>" ItemStyle-HorizontalAlign="Center" SortExpression="TeachingStaff" />
                            <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" DataField="Student" HeaderText="<%$ Resources:Strings, Student %>" ItemStyle-HorizontalAlign="Center" SortExpression="Student" />
                            <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" DataField="Alumnus" HeaderText="<%$ Resources:Strings, Alumnus %>" ItemStyle-HorizontalAlign="Center" SortExpression="Alumnus" />
                            <telerik:GridCheckBoxColumn AutoPostBackOnFilter="true" DataField="Applicant" HeaderText="<%$ Resources:Strings, Applicant %>" ItemStyle-HorizontalAlign="Center" SortExpression="Applicant" />
                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:ImageButton ID="Unlock" runat="server"    
                                        AlternateText="<%$ Resources:Strings, Unlock %>"
                                        CommandArgument='<%# Eval("UserID") %>'
                                        ImageUrl="~/images/lock.gif"
                                        OnClick="Unlock_Click"
                                        ToolTip="<%$ Resources:Strings, Unlock %>"
                                        Visible='<%# Eval("IsLockedOut") %>' />
                                    <ajax:ConfirmButtonExtender ID="UnlockExtender" runat="server" ConfirmText="<%$ Resources:Strings, AreYouSure %>" TargetControlID="Unlock" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:ImageButton ID="Edit" runat="server"
                                        AlternateText="<%$ Resources:Strings, Edit %>"
                                        CommandName="Edit"
                                        ImageUrl="~/images/edit.gif"
                                        ToolTip="<%$ Resources:Strings, Edit %>" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>                                           
                                    <asp:ImageButton ID="Delete" runat="server"
                                        AlternateText="<%$ Resources:Strings, Delete %>"
                                        CommandName="Delete"
                                        ImageUrl="~/images/delete.gif"
                                        ToolTip="<%$ Resources:Strings, Delete %>" />
                                    <ajax:ConfirmButtonExtender ID="DeleteExtender" runat="server" TargetControlID="Delete" ConfirmText="<%$ Resources:Strings, AreYouSure %>" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>                                   
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
ondfisk
Top achievements
Rank 2
 answered on 21 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?