Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
117 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
0 answers
99 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
1 answer
129 views
Does anyone have any examples of doing client-side databinding on a RadGrid where one of the columns is a custom AJAX control?

I've been using a GridTemplateColumn for my custom control, but am unsure how to bind the data to the control at the client level.

Thanks,
Jason
Tsvetina
Telerik team
 answered on 28 May 2012
3 answers
224 views
HI,

I am following this documentation to have radWindow in my application as well. 
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

The trouble is the radWindow being popped-up has funny unwanted borders - series of rectangles in the bottom. Please see the attached screen being highlighted in YELLOW :)

Could you please anyone hint me the problem?

Many thanks.

MG
Munna
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
211 views
Is there a way to set the focus to a treeview (such that the user can navigate the tree using arrow keys) without raising the OnNodeClick event?

I have a popup displaying a RadTreeView which closes once the user has selected a node on the tree, however when the popup is displayed the treeview does not have focus.

Edit:
I've realised the problem may be more to do with the ModalPopupExtender in which the TreeView is placed.  I believe the focus remains on the form behind the popup.  

Thanks in advance...

Michael
Bozhidar
Telerik team
 answered on 28 May 2012
4 answers
279 views
Hi,

I have a grid that's grouped by days of the week. What I would like is to group by specific categories, for example; today, yesterday. All entries for today's date grouped in "Today", all entries for yesterday grouped in "Yesterday" but I'm not sure how. Currently the grid is grouped by every new date. Can I manually set this up in code? I attached a screen shot of my current grid and here is the code for my most recent attempt:
protected void RadGrid2_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        this.grdRecentActivity.MasterTableView.GroupsDefaultExpanded = false;
        if (e.Item is GridGroupHeaderItem)
        {
            GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;
            DataRowView groupDataRow = (DataRowView)e.Item.DataItem;
            DateTime currentdate = DateTime.Now.Date;
            DateTime yesterdaysDate = DateTime.Now.AddDays(-1).Date;
            DateTime dayBeforeYesterday = DateTime.Now.AddDays(-2).Date;
            DateTime activityDate = DateTime.Parse(groupDataRow.Row.ItemArray[0].ToString());
 
            if (activityDate == currentdate)
                item.DataCell.Text = "Today";
            if (activityDate == yesterdaysDate)
                item.DataCell.Text = "Yesterday";
            if (activityDate == dayBeforeYesterday)
                item.DataCell.Text = "Day Before Yesterday";
 
            //item.DataCell.Text = groupDataRow.Row.ItemArray[0];
        }
    }
Ron
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
210 views
I click on the save button in the toolbar. Select in the dialog Save Image to server. I save the image to database using the code below, but it even create a image file to the folder.
How do I get around the problem that it creates an image in the folder when I save? Just want the image changes are saved to the database when I choose "Save Image to server". Someone who can help me :-)
Protected Sub RadImageEditor1_ImageSaving(sender As Object, args As ImageEditorSavingEventArgs)
 
    Dim img As EditableImage = args.Image
    Dim s As New MemoryStream()
    img.Image.Save(s, img.RawFormat)
    Dim imgData As Byte() = s.ToArray()
Dobromir
Telerik team
 answered on 28 May 2012
3 answers
187 views
Greetings!

I was curious about how to get the scrollheight in a gridview. Because if i click a row in the gridview when the gridview is scrolled down, my context menu appear almost at the bottem of the page. But if the grid isn`t scrolled, the context menu appears as it should be. So i`m searching for a way to maintain the contextmenu within the gridview. I think the scrollheight can help me with that.

If you know a solution for this, please reply! ( or a solution without the scrollheight).

Thanks in forward!

Tsvetina
Telerik team
 answered on 28 May 2012
3 answers
201 views
Hi,

I have some problems with Scrolling in GridView in IE8 and IE9 with Compatibility On.

I have attached 3 pictures:

1. AllCorrect.jpg : Is the normal and correct behavior. IN IE9 and others browers.
2. IE9_CompatibilityOn.jpg  : Compatibility View On in IE9, looks like the AllowScroll is ignored and all the columns show without scrolling.
3. IE8_LongBlankSpace.jpg : In IE8 all my Content move to right with a big blank space, if i set AllowScroll = False, it looks and works fine.

I hope there is a solution for this.

Aspx for GridView:
<telerik:RadGrid ID="gridCVCOrders" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Windows7"
            OnItemCommand="gridCVCOrders_ItemCommand" OnItemDataBound="gridCVCOrders_ItemDataBound"
            OnNeedDataSource="gridCVCOrders_NeedDataSource1">
            <ExportSettings ExportOnlyData="True" IgnorePaging="True" HideStructureColumns="true"
                FileName="CVCReport">
            </ExportSettings>
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
            <MasterTableView CommandItemDisplay="Top" TableLayout="Fixed" Width="100%" AllowMultiColumnSorting="true"
                PageSize="7" BorderStyle="None" DataKeyNames="OrderID" ClientDataKeyNames="OrderID"
                HeaderStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                AlternatingItemStyle-HorizontalAlign="Center">
                <CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToExcelButton="true"
                    ShowAddNewRecordButton="false"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int64" FilterControlAltText="Filter OrderID column"
                        HeaderText="OrderID" SortExpression="OrderID" UniqueName="OrderID" Visible="false"
                        meta:resourcekey="GridBoundColumnResource1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderDate" HeaderStyle-Width="100px" DataType="System.DateTime"
                        FilterControlAltText="Filter OrderDate column" HeaderText="OrderDate" SortExpression="OrderDate"
                        UniqueName="OrderDate" meta:resourcekey="GridBoundColumnResource2">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductName" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"
                        FilterControlAltText="Filter ProductName column" HeaderText="ProductName" SortExpression="ProductName"
                        UniqueName="ProductName" meta:resourcekey="GridBoundColumnResource3">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Quantity" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-HorizontalAlign="Center" FilterControlAltText="Filter Quantity column"
                        HeaderText="Quantity" SortExpression="Quantity" UniqueName="Quantity" DataType="System.Int32"
                        meta:resourcekey="GridBoundColumnResource4">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductAmount" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center"
                        FilterControlAltText="Filter ProductAmount column" HeaderText="ProductAmount"
                        HeaderStyle-HorizontalAlign="Center" SortExpression="ProductAmount" UniqueName="ProductAmount"
                        DataType="System.Decimal" meta:resourcekey="GridBoundColumnResource5">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CustomerName" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center"
                        FilterControlAltText="Filter CustomerName column" HeaderText="CustomerName" HeaderStyle-HorizontalAlign="Center"
                        SortExpression="CustomerName" UniqueName="CustomerName" meta:resourcekey="GridBoundColumnResource6">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CPF" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"
                        FilterControlAltText="Filter CPF column" HeaderText="CPF" ItemStyle-HorizontalAlign="Center"
                        SortExpression="CPF" UniqueName="CPF" meta:resourcekey="GridBoundColumnResource7">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RG" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center"
                        FilterControlAltText="Filter RG column" ItemStyle-HorizontalAlign="Center" HeaderText="RG"
                        SortExpression="RG" UniqueName="RG" meta:resourcekey="GridBoundColumnResource8">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Gender" HeaderStyle-Width="100px" FilterControlAltText="Filter Gender column"
                        HeaderText="Gender" SortExpression="Gender" UniqueName="Gender" meta:resourcekey="GridBoundColumnResource9">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BirthDate" HeaderStyle-Width="100px" DataType="System.DateTime"
                        FilterControlAltText="Filter BirthDate column" HeaderText="BirthDate" SortExpression="BirthDate"
                        UniqueName="BirthDate" meta:resourcekey="GridBoundColumnResource10">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Billing Address" HeaderStyle-Width="100px"
                        SortExpression="BillingAddress" UniqueName="BillingAddress" meta:resourcekey="GridTemplateColumnResource1">
                        <ItemTemplate>
                            <asp:HyperLink ID="targetControlBilling" runat="server" NavigateUrl="#" Text="View Billing Address"
                                meta:resourcekey="targetControlBillingResource1"></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="BillingStreet" FilterControlAltText="Filter BillingStreet column"
                        HeaderText="BillingStreet" SortExpression="BillingStreet" UniqueName="BillingStreet"
                        Visible="false" meta:resourcekey="GridBoundColumnResource11">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BillingNumber" FilterControlAltText="Filter BillingNumber column"
                        HeaderText="BillingNumber" SortExpression="BillingNumber" UniqueName="BillingNumber"
                        Visible="false" meta:resourcekey="GridBoundColumnResource12">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BillingComplement" FilterControlAltText="Filter BillingComplement column"
                        HeaderText="BillingComplement" SortExpression="BillingComplement" UniqueName="BillingComplement"
                        Visible="false" meta:resourcekey="GridBoundColumnResource13">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BillingNeighborhood" FilterControlAltText="Filter BillingNeighborhood column"
                        HeaderText="BillingNeighborhood" SortExpression="BillingNeighborhood" UniqueName="BillingNeighborhood"
                        Visible="false" meta:resourcekey="GridBoundColumnResource14">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BillingState" FilterControlAltText="Filter BillingState column"
                        HeaderText="BillingState" SortExpression="BillingState" UniqueName="BillingState"
                        Visible="false" meta:resourcekey="GridBoundColumnResource15">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BillingCity" FilterControlAltText="Filter BillingCity column"
                        HeaderText="BillingCity" SortExpression="BillingCity" UniqueName="BillingCity"
                        Visible="false" meta:resourcekey="GridBoundColumnResource16">
                    </telerik:GridBoundColumn>
                    <%--<telerik:GridBoundColumn DataField="BillingCountry" FilterControlAltText="Filter BillingCountry column"
                        HeaderText="BillingCountry" SortExpression="BillingCountry" UniqueName="BillingCountry"
                        Visible="false" meta:resourcekey="GridBoundColumnResource17">
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn DataField="BillingZipCode" FilterControlAltText="Filter BillingZipCode column"
                        HeaderText="BillingZipCode" SortExpression="BillingZipCode" UniqueName="BillingZipCode"
                        Visible="false" meta:resourcekey="GridBoundColumnResource18">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Shipping Address" HeaderStyle-Width="100px"
                        SortExpression="ShippingAddress" UniqueName="ShippingAddress" meta:resourcekey="GridTemplateColumnResource2">
                        <ItemTemplate>
                            <asp:HyperLink ID="targetControlShipping" runat="server" NavigateUrl="#" Text="View Shipping Address"
                                meta:resourcekey="targetControlShippingResource1"></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="ShippingStreet" FilterControlAltText="Filter ShippingStreet column"
                        HeaderText="ShippingStreet" SortExpression="ShippingStreet" UniqueName="ShippingStreet"
                        Visible="false" meta:resourcekey="GridBoundColumnResource19">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShippingNumber" FilterControlAltText="Filter ShippingNumber column"
                        HeaderText="ShippingNumber" SortExpression="ShippingNumber" UniqueName="ShippingNumber"
                        Visible="false" meta:resourcekey="GridBoundColumnResource20">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShippingComplement" FilterControlAltText="Filter ShippingComplement column"
                        HeaderText="ShippingComplement" SortExpression="ShippingComplement" UniqueName="ShippingComplement"
                        Visible="false" meta:resourcekey="GridBoundColumnResource21">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShippingNeighborhood" FilterControlAltText="Filter ShippingNeighborhood column"
                        HeaderText="ShippingNeighborhood" SortExpression="ShippingNeighborhood" UniqueName="ShippingNeighborhood"
                        Visible="false" meta:resourcekey="GridBoundColumnResource22">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShippingState" FilterControlAltText="Filter ShippingState column"
                        HeaderText="ShippingState" SortExpression="ShippingState" UniqueName="ShippingState"
                        Visible="false" meta:resourcekey="GridBoundColumnResource23">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShippingCity" FilterControlAltText="Filter ShippingCity column"
                        HeaderText="ShippingCity" SortExpression="ShippingCity" UniqueName="ShippingCity"
                        Visible="false" meta:resourcekey="GridBoundColumnResource24">
                    </telerik:GridBoundColumn>
                    <%--<telerik:GridBoundColumn DataField="ShippingCountry" FilterControlAltText="Filter ShippingCountry column"
                        HeaderText="ShippingCountry" SortExpression="ShippingCountry" UniqueName="ShippingCountry"
                        Visible="false" meta:resourcekey="GridBoundColumnResource25">
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn DataField="ShippingZipCode" FilterControlAltText="Filter ShippingZipCode column"
                        HeaderText="ShippingZipCode" SortExpression="ShippingZipCode" UniqueName="ShippingZipCode"
                        Visible="false" meta:resourcekey="GridBoundColumnResource26">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PersonalEmail" HeaderStyle-Width="150px" FilterControlAltText="Filter PersonalEmail column"
                        HeaderText="PersonalEmail" SortExpression="PersonalEmail" UniqueName="PersonalEmail"
                        meta:resourcekey="GridBoundColumnResource27">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ComercialEmail" HeaderStyle-Width="150px" FilterControlAltText="Filter ComercialEmail column"
                        HeaderText="ComercialEmail" SortExpression="ComercialEmail" UniqueName="ComercialEmail"
                        meta:resourcekey="GridBoundColumnResource28">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDDPhone" HeaderStyle-Width="100px" FilterControlAltText="Filter DDDPhone column"
                        HeaderText="DDDPhone" SortExpression="DDDPhone" UniqueName="DDDPhone" meta:resourcekey="GridBoundColumnResource29">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone" HeaderStyle-Width="100px" DataFormatString=" {0} "
                        FilterControlAltText="Filter Phone column" HeaderText="Phone" SortExpression="Phone"
                        UniqueName="Phone" meta:resourcekey="GridBoundColumnResource30">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDDComercialPhone" HeaderStyle-Width="100px"
                        FilterControlAltText="Filter DDDComercialPhone column" HeaderText="DDDComercialPhone"
                        SortExpression="DDDComercialPhone" UniqueName="DDDComercialPhone" meta:resourcekey="GridBoundColumnResource31">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ComercialPhone" HeaderStyle-Width="100px" DataFormatString=" {0} "
                        FilterControlAltText="Filter ComercialPhone column" HeaderText="ComercialPhone"
                        SortExpression="ComercialPhone" UniqueName="ComercialPhone" meta:resourcekey="GridBoundColumnResource32">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DDDCellPhone" HeaderStyle-Width="100px" FilterControlAltText="Filter DDDCellPhone column"
                        HeaderText="DDDCellPhone" SortExpression="DDDCellPhone" UniqueName="DDDCellPhone"
                        meta:resourcekey="GridBoundColumnResource33">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CellPhone" HeaderStyle-Width="100px" DataFormatString=" {0} "
                        FilterControlAltText="Filter CellPhone column" HeaderText="CellPhone" SortExpression="CellPhone"
                        UniqueName="CellPhone" meta:resourcekey="GridBoundColumnResource34">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Reference" HeaderStyle-Width="100px" FilterControlAltText="Filter Reference column"
                        HeaderText="Reference" SortExpression="Reference" UniqueName="Reference" meta:resourcekey="GridBoundColumnResource35">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Campaign" HeaderStyle-Width="100px" FilterControlAltText="Filter Campaign column"
                        HeaderText="Campaign" SortExpression="Campaign" UniqueName="Campaign" meta:resourcekey="GridBoundColumnResource36">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Company" HeaderStyle-Width="100px" FilterControlAltText="Filter Company column"
                        HeaderText="Company" SortExpression="Company" UniqueName="Company" meta:resourcekey="GridBoundColumnResource37">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderNumber" HeaderStyle-Width="80px" FilterControlAltText="Filter OrderNumber column"
                        HeaderText="Order Number" SortExpression="OrderNumber" UniqueName="OrderNumber"
                        DataFormatString=" {0} " meta:resourcekey="GridBoundColumnResource38">
                        <HeaderStyle Width="80px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="OrderNumber" />
                        </GroupByFields>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="OrderNumber" FieldAlias="OrderNumber" HeaderText="Ordem"
                                SortOrder="Ascending" />
                            <telerik:GridGroupByField FieldName="OrderID" FieldAlias="OrderID" HeaderText="Ítens"
                                Aggregate="Count" />
                            <telerik:GridGroupByField FieldName="ProductAmount" FieldAlias="GroupTotal" Aggregate="Sum"
                                HeaderText="Total" />
                            <telerik:GridGroupByField FieldName="OrderStatus" FieldAlias="OrderStatus" HeaderText="Status" />
                        </SelectFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <AlternatingItemStyle HorizontalAlign="Center"></AlternatingItemStyle>
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom" />
                <HeaderStyle HorizontalAlign="Center" Wrap="True"></HeaderStyle>
            </MasterTableView>
        </telerik:RadGrid>

Best Regards,
Manuel.
Pavlina
Telerik team
 answered on 28 May 2012
0 answers
99 views
Hi team,
Is it possible to apply validatorCalloutExtender on radgrid filter textbox? Here in below code (for reference only) i applied validatorCalloutExtender on TextBox.When error comes then one small pop window is open with error message and textbox border become red.Can we do same thing with radgrid filter textbox, when user trying to search with  wrong filter criteria?
Now i am able to show error message with the help of  javascript. please see "function ValidateFilter(sender, eventArgs)".
But i want to show error message as it is coming on TextBox.

function ValidateFilter(sender, eventArgs)
           {
            var arguments = eventArgs.get_commandArgument().split("|");
            var columnName = arguments[0];
            var valueEnteredIntoFilterControl = arguments[1];
           
            if (columnName == "YearsOfWorkExp")
            {
                if (isNaN(valueEnteredIntoFilterControl))
                {
                    var alertsay = "Please enter a numeric value";
                    alert(alertsay);
                    eventArgs.set_cancel(true);
                     
                }
            }
            else if (columnName == "FormattedName")
            {
 
                if (valueEnteredIntoFilterControl != "")
                {
                    if (/[^A-Za-z]/.test(valueEnteredIntoFilterControl)) {
                        alert("Please enter only letters in candidate name search filter");
                        valueEnteredIntoFilterControl.focus();
                         
                        eventArgs.set_cancel(true);
                    }
                }
 
            }
            
 
 
        }


<asp:TextBox ID="txtJobTitle" runat="server" CssClass="ven_box_txt"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="JobDescription"
                        ControlToValidate="txtJobTitle" Display="None" ErrorMessage="Job Title is required"
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender14" HighlightCssClass="errorHighLight"
                        TargetControlID="RequiredFieldValidator2" SkinID="TopLeftVCE" runat="server">
                    </cc1:ValidatorCalloutExtender>

chandan singh
Top achievements
Rank 1
 asked on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?