Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
 Hi,

I am adding controls dynamically in OnItemCreated event.
OnitemDataBound setting the value to same controls on the basis of hidden field present in same row.

This works fine.

But after button click event which is at the bottom page  I am getting same value.
the problem is ,in OnItemCreated controls are getting created  again.
But if i checked for already added controls its showing null.

Can you please suggest.
My code is as below.

protected void OnItemCreated(object sender, GridItemEventArgs e)
        {
            if (!IsPostBack)
            {
                RadGrid rg = (RadGrid)sender;
 
                SQWParameter oSQWParameter = (SQWParameter)ViewState["oParameter"];
 
                if (e.Item is GridDataItem)
                {
                    GridDataItem item = e.Item as GridDataItem;
                    HiddenField hdnValue = (HiddenField)e.Item.FindControl("hdnId");
                    WebControl rwControl = GetContorlByParameter(oSQWParameter);
                    item["Column2"].Controls.Add(rwControl);
                }
 
            }
        }
 
private WebControl GetContorlByParameter(SQWParameter oSQWParameter)
        {
            RadTextBox txtValue = new RadTextBox();
            RadNumericTextBox ntxtValue = new RadNumericTextBox();
            RadComboBox cmbValue = new RadComboBox();
            RadDatePicker rdpValue = new RadDatePicker();
 
            int iControlType = 0;
            int iValue = 0;
 
 
            switch (oSQWParameter.Type)
            {
                case ParameterType.Text:
                    switch (oSQWParameter.ValueType)
                    {
                        case ParameterValueType.UniqueValue:
                            iControlType = 0;
                            txtValue = new RadTextBox();
                            txtValue.ID = "rwControlValue";
                            txtValue.Text = oSQWParameter.DefaultValue.ToString();
                            txtValue.EmptyMessage = oSQWParameter.DefaultValue.ToString();
                            txtValue.Width = 120;
                            break;
                        case ParameterValueType.ValueList:
                            iControlType = 2;
                            cmbValue = new RadComboBox();
                            cmbValue.ID = "rwControlValue";
                            cmbValue.Width = 110;
                            cmbValue.Items.AddRange(GetValueListItems(oSQWParameter.ValueList));
                            break;
 
                    }
                    break;
                case ParameterType.Numeric:
                    switch (oSQWParameter.ValueType)
                    {
                        case ParameterValueType.UniqueValue:
                            iControlType = 1;
                            ntxtValue = new RadNumericTextBox();
                            ntxtValue.ID = "rwControlValue";
                            txtValue.Width = 120;
                            ntxtValue.NumberFormat.DecimalDigits = oSQWParameter.DecimalPlaces;
                            if (!oSQWParameter.Use1000Separator)
                                ntxtValue.NumberFormat.GroupSeparator = "";
                            ntxtValue.EmptyMessage = oSQWParameter.DefaultValue.ToString();
                            break;
                        case ParameterValueType.ValueList:
                            iControlType = 2;
                            cmbValue = new RadComboBox();
                            cmbValue.ID = "rwControlValue";
                            cmbValue.Width = 110;
                            cmbValue.Items.AddRange(GetValueListItems(oSQWParameter.ValueList));
                            break;
 
                    }
                    break;
                case ParameterType.Date:
                    switch (oSQWParameter.ValueType)
                    {
                        case ParameterValueType.UniqueValue:
                            iControlType = 3;
                            rdpValue = new RadDatePicker();
                            rdpValue.ID = "rwControlValue";
                            rdpValue.Width = 120;
                            rdpValue.MinDate = new DateTime(1900, 1, 1, 12, 00, 00);
                            rdpValue.DateInput.DateFormat = "MM/dd/yyyy";
                            DateTime dtValue = (DateTime)oSQWParameter.DefaultValue;
                            rdpValue.DateInput.EmptyMessage = dtValue.ToString("MM/dd/yyyy");
                            break;
                    }
                    break;
            }
 
            if (iControlType == 0)
                return txtValue;
            else if (iControlType == 1)
                return ntxtValue;
            else if (iControlType == 2)
                return cmbValue;
            else
                return rdpValue;
 
        }
 
  protected void OnItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = e.Item as GridDataItem;
 
                HiddenField hdnValue = (HiddenField)e.Item.FindControl("hdnValue");           
                 
                 RadTextBox rwControl = (RadTextBox)e.Item.FindControl("ntxtValue");
                  rwControl.Text = hdnValue.Value;
                             
            }
        }
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Jan 2012
1 answer
47 views
I have radgrid with using List<Classname> for datasource.When I insert the data,new data replace with old data and old data is disappearing.How can I insert new data to the grid without losing old one? 
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Jan 2012
3 answers
59 views
Hi all
I have a problem with FF 8 and greater version. (We have a MOSS2007/WSS3 Frontend Server, Win2003 x86)
The RadEditor Light was succesfull installed and deployed. Test with multiple Browser are ok but with Firefox 8 and greater there show a simple text box without any editing possibility. Its seems the edotor not load in FF 8 and greater versions.
Is that a known copatibility issue or is there a posibility to configure the editor so that it works with FF 8?

Greatings Ralf
Rumen
Telerik team
 answered on 04 Jan 2012
1 answer
174 views
I have two RadDateTimePickers embedded in a DetailsView. The problem is that when I run the page, the picker for RadDatePickerStarts  inputs the date&time in the text box for the second picker (RadDatePickerEnds). The second picker  does not input the selected date&time anywhere. How do I get each picker to place input into the correct box?
 
  <asp:TemplateField HeaderText="Starts" SortExpression="Starts">
                    <EditItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Starts") %>'
                            ID="RadDatePickerStarts" runat="server">
                        </telerik:RadDateTimePicker>
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Starts") %>'
                            ID="RadDatePickerStarts" runat="server">
                        </telerik:RadDateTimePicker>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Starts") %>'
                            ID="RadDatePickerStarts" runat="server">
                        </telerik:RadDateTimePicker>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ends" SortExpression="Ends">
                    <EditItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Ends") %>'
                            ID="RadDatePickerEnds" runat="server">
                        </telerik:RadDateTimePicker>
                        <asp:CompareValidator ID="CompareValidator1" runat="Server" ControlToCompare="RadDatePickerStarts"
                            ControlToValidate="RadDatePickerEnds" Operator="GreaterThan" ErrorMessage="Date range is not valid "
                            Display="Dynamic" />
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Ends") %>'
                            ID="RadDatePickerEnds" runat="server">
                        </telerik:RadDateTimePicker>
                        <asp:CompareValidator ID="CompareValidator1" runat="Server" ControlToCompare="RadDatePickerStarts"
                            ControlToValidate="RadDatePickerEnds" Operator="GreaterThan" ErrorMessage="Date range is not valid "
                            Display="Dynamic" />
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <telerik:RadDateTimePicker ClientIDMode="Static" SelectedDate='<%# Bind("Ends") %>'
                            ID="RadDatePickerEnds" runat="server">
                        </telerik:RadDateTimePicker>
                    </ItemTemplate>
                </asp:TemplateField>
Maria Ilieva
Telerik team
 answered on 04 Jan 2012
2 answers
91 views
I have the following code:
void Application_BeginRequest(object sender, EventArgs e)
{
    var culture = Culture.GetBrowserOrDefaultCulture();
    culture.DateTimeFormat.ShortTimePattern = "HH:mm:ss";
    culture.DateTimeFormat.LongTimePattern = "HH:mm:ss";
    Thread.CurrentThread.CurrentCulture = culture;
    Thread.CurrentThread.CurrentUICulture = culture;
}

For instance, I set US culture in my browser. Everything changes accordingly in my page output.
However, RadDateTimePicker keeps showing datetime in some specific - I guess, OS-defined, format and does not care this setting.

How to fix this?

I just want it to pick up the culture, set for the thread - I don't want to write special code for every RadDateTimePicker on my pages - I have tons of them!
Alexander
Top achievements
Rank 1
 answered on 04 Jan 2012
0 answers
99 views
Hi!,
Here it is, my very 1st thread :D. so be patient please lol...(i´m not very good at english either so...)

ok....i have a form with a RadGrid in it...wich i´m using as a control (ascx2)..called from another page(ascx1).
when i use <UpdatePanel> in ascx1, RadNumericTextBox contents in ascx2, let users imput alphanumeric characters beside numbers..i realized that about 2 seconds later, the RadNumericTextBox clean data leaving numbers only...but i would like to know if is there any way to show warning icon, just like RadNumericTextBox works normally..
here's the code:

ascx1:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="VB" AutoEventWireup="true" CodeBehind="ReceptionsUserControl.ascx.vb" Inherits="TelerikTests.ReceptionsUserControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
             Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
            <asp:UpdatePanel ID="pnl_Receptions" runat="server" >
            <ContentTemplate>
<telerik:RadGrid ID="tlk_Grid" OnNeedDataSource="tlk_Grid_NeedDataSource" AllowSorting="True" PageSize="15"
    AllowPaging="True" runat="server" AutoGenerateColumns="false"  Skin="Sunset" AllowMultiRowSelection="false" >
    <PagerStyle Mode="NextPrevAndNumeric" />
    <MasterTableView Width="100%" DataKeyNames="OrderNumber" >
        <Columns>
            <telerik:GridBoundColumn DataField="OrderNumber" HeaderText="N° Pedido" />
            <telerik:GridBoundColumn DataField="OrderDescription" HeaderText="Descripción" />
            <telerik:GridBoundColumn DataField="WareHouseFrom" HeaderText="Almacén Emisor" />
            <telerik:GridBoundColumn DataField="DeliveredDate" HeaderText="Fecha Entrega" />
            <telerik:GridBoundColumn DataField="OrderSenderfullname" HeaderText="Autorizado Por" />
            <telerik:GridEditCommandColumn HeaderText="Recibir" ButtonType="ImageButton" />
        </Columns>
        <PagerStyle Mode="NextPrevAndNumeric" />
 
  <EditFormSettings EditFormType="WebUserControl" UserControlName="~/_ControlTemplates/CtrlTlkGridDetail.ascx" />
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true" />
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
 
 
ascx2:
<table width="50%" style="position: relative; margin-left: 234px;">
    <tr>
        <td colspan="2" style="text-align: center">
            <telerik:RadGrid ID="tlk_GridDetail" runat="server" Width="100%" AllowFilteringByColumn="True"
                AutoGenerateColumns="false" Skin="Sunset" AllowPaging="true" PageSize="8">
                <MasterTableView CommandItemDisplay="None" AllowFilteringByColumn="false" DataKeyNames="strProductCode"
                    Width="100%" PagerStyle-AlwaysVisible="true">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="strProductCode" DataField="strProductCode" HeaderText="Cod. Artículo"
                            FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridBoundColumn UniqueName="strProductName" DataField="strProductName" HeaderText="Descripción"
                            FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridNumericColumn UniqueName="dblSentQuantity" DataField="dblSentQuantity"
                            HeaderText="Cant. Solicitada" FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Right"
                            ItemStyle-HorizontalAlign="right" NumericType="Number" DataFormatString="{0:N}"  />
                        <telerik:GridTemplateColumn UniqueName="strReceivedQuantity" HeaderText="Cant. Recibida"
                            ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="right">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txt_ReceivedQuantity" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "dblSentQuantity" ) %>'>
                                    </telerik:RadNumericTextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <PagerStyle Mode="NumericPages" />
                </MasterTableView>
                <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
                </ClientSettings>
                 
            </telerik:RadGrid>
        </td>
    </tr>
  <tr>
  <td><br />
  <div class="RadGrid_Sunset" style="width: 100%">
        <table class="RadGrid_WebBlue rgMasterTable" cellspacing="0" style="width: 100%">
            <tr>
                <th class="RadGrid_Sunset rgHeader" colspan="2">
                    Resumen Orden Nro:
                    <label id="lbl_OrderNumber" runat="server"></label>
                </th>
            </tr>
            <tr class="RadGrid_Sunset rgRow">
                <td>
                    Condiciones Higiénicas de la Cava:
                </td>
                <td>
                <asp:DropDownList ID="ddl_WHTrailerConditions" runat="server" Width="62%">
                <asp:ListItem Text="Buena" Value="0"></asp:ListItem>
                <asp:ListItem Text="Regular" Value="1"></asp:ListItem>
                <asp:ListItem Text="Mala" Value="2"></asp:ListItem>
                </asp:DropDownList>                   
                </td>
            </tr>
            <tr class="RadGrid_Sunset rgAltRow" >
                <td>
                    Estado del Termoking
                </td>
                <td>
                   <asp:DropDownList ID="ddl_TermokingSatus" runat="server" Width="62%">
                <asp:ListItem Text="Prendido" Value="0"></asp:ListItem>
                <asp:ListItem Text="Apagado"  Value="1"></asp:ListItem>
                   </asp:DropDownList>
                </td>
            </tr>
             <tr class="RadGrid_Sunset rgAltRow">
                <td>
                   Temp. Registrada en el Termoking:
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txt_TermokingTemperature" runat="server"  NumericType="Number" EnabledStyle-HorizontalAlign="Right"  />
                    Â°F
                </td>
            </tr>
             <tr class="RadGrid_Sunset rgAltRow">
                <td>
                   Temp. Registrada en el Producto Recibido:
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txt_ReceivedProduct" runat="server"  NumericType="Number" EnabledStyle-HorizontalAlign="Right" />
                    Â°F
                </td>
            </tr>
        </table>
    </div>
  </td>
  </tr>
    <tr>
        <td colspan="2" style="text-align: center"><br />
            <asp:ImageButton ID="btnAceptar" runat="server" CommandName="PerformInsert" ImageUrl="~/_layouts/images/done.png"
                Width="24px" />
                
            <asp:ImageButton ID="btnCancelar" runat="server" CommandName="Cancel" ImageUrl="~/_layouts/images/cancel.png"
                Width="24px" />
        </td>
    </tr>
</table>
THANKSSSSS!!!!

Melizabeth
Top achievements
Rank 1
 asked on 04 Jan 2012
3 answers
82 views
Hi we noticed an issue that we think has to do with the implementation of RadEditor Light.  The issue has to do with Alerts on lists and what that content contains when alerts are sent.
When a list item is modified the expected behaviour is that subsequent alerts will let you know what was changed and what wasn't changed.  please view this link for the screen shot..

screen shot 1

You will notice that "Notes" was changed and thus you get the line across the old content + the new content.  The other columns such as Details (which at this time is using regular SharePoint Rich Text Editor) does not show anything, because nothing has changed.

upon changing the rich text editor to a Moss Radeditor Light,
screen shot 2
You can see that we're not changing anything , and that it is indeed using a rad editor. When we hit ok, and email gets sent that has this unexpected behaviour

unexpected behaviour

as you can see, even if we dont' make any modifications, the fields that use rad editor light will always have the "edited" tag as well as the line across the old text.  This seems like bug to me, and I want to know how and if there is a fix for this issue... thanks


Charles

Rumen
Telerik team
 answered on 04 Jan 2012
1 answer
127 views
I'm experiencing the following issue on a very simple and basic code:
The radmenu OnClientItemClicked is not fired only on firefox (ver.7)
On all the other browser it's working as expected.

the RadMenu is empty and the items are added in code-behind:

RadMenuItem rmiItem = new RadMenuItem();
rmiItem .Text = "Menu Voice Text";
rmiItem .Value = "http://www.someurl.com";
//rmiItem .NavigateUrl = "#";
rmMainMenu.Items.Add(rmiItem );

and here is the radmenu in the aspx page:


<telerik:RadMenu ID="rmMainMenu" runat="server" Skin="Office2007" OnClientItemClicked="OnClientItemClicked" Width="100%">
<Items>
</Items>
</telerik:RadMenu>


once the user click over the menu item the following javascript is executed:

<script type="text/javascript">
    function OnClientItemClicked(sender, eventArgs) {
        var item = eventArgs.get_item();
        submitTo(item.get_value());
    }
 
    function submitTo(url) {
        form2.action = url;
        form2.submit();
    }
 
</script>

In IE7, IE8, Chrome and Safari, everything works as expected and the user is redirected to the page specified in the Value attribute of the RadMenu.
Only in Firefox, instead it does nothing, except that putting a # at the end of the URL (is not a postback)

Please note that this code is used to perform a POST submit of data to a different URL so, for this reason I haven't used the property NavigateURL.
In any case it works in the other browser so it's something wrong with RadMenu and Firefox.

Any help is appreciated.
Thanks
Marco

marco
Top achievements
Rank 2
 answered on 04 Jan 2012
2 answers
129 views
Hello
I have a radupload inside radgrid as an itemtemplate. The uploader is used to save icon image in database along with other details. The grid has a checkbox whose autopostback is set on for checking checkChanged event accordingly. I have used radajaxmanager so that the page doesnot post back. But i face a problem when i try to save the uploaded image icon using radtoolbarbutton. Uploaded file show 0 count when i try to save the same as the page post back and there is no file to save. I have also added a client side function for disabling ajax on its clientclick of radtoolbarbutton but it results in an error of "Object doesn't support property or method 'set_enableAjax'". Please help me in achieving the required target without any code compromises.
Thanks in advance.
Dimitar Terziev
Telerik team
 answered on 04 Jan 2012
3 answers
110 views
I get the following error when trying to insert a record ...Unable to cast object of type 'Telerik.Web.UI.GridCommandItem' to type 'Telerik.Web.UI.GridEditFormInsertItem'.  I have followed the examples, what am I missing here?
Private Sub grdLogins_DeleteCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles grdLogins.DeleteCommand
    Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
    Dim LoginID As Integer = CInt(item.OwnerTableView.DataKeyValues(item.ItemIndex)("LoginKey").ToString)
    gUserData.DeleteUserNTCredential(LoginID)
    grdLogins.Rebind()
End Sub
 
Private Sub grdLogins_InsertCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles grdLogins.InsertCommand
    Dim insertedItem As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem)
    Dim UserID As Integer = GetSelectedUser()
    Dim Login As String = (TryCast(insertedItem("NTLogin").Controls(0), TextBox)).Text
    gUserData.AddUserNTCredential(UserTree.SelectedValue, Login, GetEditorInfo)
    grdLogins.Rebind()
End Sub
 
Private Sub grdLogins_UpdateCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles grdLogins.UpdateCommand
    Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
    Dim LoginID As Integer = CInt(editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("LoginKey").ToString)
    Dim Login As String = (TryCast(editedItem("NTLogin").Controls(0), TextBox)).Text
    Dim UserID As Integer = CInt(GetSelectedUser())
    gUserData.UpdateUserNTCredential(UserID, LoginID, Login, GetEditorInfo)
    grdLogins.Rebind()
End Sub
 
Private Sub grdLogins_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grdLogins.NeedDataSource
    Dim UserID As Integer
    If GetSelectedUser() Then
        UserID = GetSelectedUser()
    Else
        UserID = 0
    End If
    grdLogins.DataSource = gUserData.SelectUserNTCredentialsAll(UserID)
End Sub

<telerik:RadGrid ID="grdLogins" runat="server" Skin="Office2010Blue"
                     AutoGenerateColumns="False" CellSpacing="0" GridLines="None" AllowPaging="True"
                     PageSize="5">
                 <ClientSettings>
                     <Selecting AllowRowSelect="True" />
                 </ClientSettings>
                 <MasterTableView DataKeyNames="LoginID"
                     CommandItemDisplay="Top" EditMode="InPlace">
                     <NoRecordsTemplate>
                         No Records to display.
                     </NoRecordsTemplate>
                     <CommandItemSettings ExportToPdfText="Export to PDF" />
                     <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                         Visible="True">
                         <HeaderStyle Width="20px" />
                     </RowIndicatorColumn>
                     <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                         Visible="True">
                         <HeaderStyle Width="20px" />
                     </ExpandCollapseColumn>
                     <Columns>
                         <telerik:GridBoundColumn DataField="LoginID"
                             FilterControlAltText="Filter LoginID column" UniqueName="LoginID"
                             Visible="False" Display="False" ReadOnly="True">
                         </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="NTLogin"
                             FilterControlAltText="Filter NTLogin column" HeaderText="NT Login"
                             UniqueName="NTLogin">
                         </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="CreateDate" Display="False"
                             FilterControlAltText="Filter CreateDate column" HeaderText="Date Added"
                             UniqueName="CreateDate" Visible="False">
                         </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="CreateBy"
                             FilterControlAltText="Filter CreateBy column" UniqueName="CreateBy"
                             Visible="False">
                         </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="UpdateDate"
                             FilterControlAltText="Filter UpdateDate column" UniqueName="UpdateDate"
                             Visible="False">
                         </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="UpdateBy"
                             FilterControlAltText="Filter UpdateBy column" UniqueName="UpdateBy"
                             Visible="False">
                         </telerik:GridBoundColumn>
                     </Columns>
                     <EditFormSettings>
                         <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                         </EditColumn>
                     </EditFormSettings>
                     <CommandItemTemplate>
                         <telerik:RadToolBar ID="RadToolBar1" Runat="server" Width="100%" Skin="Office2010Blue"
                         onbuttonclick="RadToolBar1_ButtonClick" EnableRoundedCorners="True">
                         <items>
             <telerik:RadToolBarButton runat="server" CommandName="InitInsert" ImageUrl="~/Images/add2.png"
                 Visible='<%# Not grdLogins.MasterTableView.IsItemInserted %>' Owner="RadToolBar1"
                 Text="Add New">
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="EditSelected" ImageUrl="~/Images/edit.png"
                 Owner="RadToolBar1" Text="Edit Selected" Visible='<%# grdLogins.EditIndexes.Count = 0 %>'>
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="UpdateEdited" ImageUrl="~/Images/check2.png"
                 Text="Update Edit" Visible='<%# grdLogins.EditIndexes.Count > 0 %>'>
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="CancelAll" ImageUrl="~/Images/undo.png"
                 Text="Cancel" Visible='<%# grdLogins.EditIndexes.Count > 0 or grdLogins.MasterTableView.IsItemInserted %>'>
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="PerformInsert" ImageUrl="~/Images/redo.png"
                 Text="Commit Insert" Visible='<%# grdLogins.MasterTableView.IsItemInserted%>'>
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="DeleteSelected" ImageUrl="~/Images/delete2.png"
                 Owner="RadToolBar1" Text="Delete Selected">
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Sep3">
             </telerik:RadToolBarButton>
             <telerik:RadToolBarButton runat="server" CommandName="RebindGrid" ImageUrl="~/Images/refresh.png"
                 Text="Refresh">
             </telerik:RadToolBarButton>
         </items>
                         </telerik:RadToolBar>
                         </CommandItemTemplate>
                 </MasterTableView>
                 <PagerStyle PageButtonCount="5" />
                 <FilterMenu EnableImageSprites="False">
                     <WebServiceSettings>
                         <ODataSettings InitialContainerName="">
                         </ODataSettings>
                     </WebServiceSettings>
                 </FilterMenu>
                 <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2010Blue">
                     <WebServiceSettings>
                         <ODataSettings InitialContainerName="">
                         </ODataSettings>
                     </WebServiceSettings>
                 </HeaderContextMenu>
                 </telerik:RadGrid>
Andrey
Telerik team
 answered on 04 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?