Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
120 views
I added my comments to the forum.

http://www.telerik.com/community/forums/aspnet-ajax/grid/refresh-radgrid-after-insert-causes-another-insert.aspx#2789395


I need some response asap.

thanks
Eyup
Telerik team
 answered on 19 Sep 2013
1 answer
87 views

I know we can perform calculations and add them to a group header:

Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)
 
    If TypeOf e.Item Is GridGroupHeaderItem Then
        Dim item As GridGroupHeaderItem = CType(e.Item, GridGroupHeaderItem)
        Dim groupDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)
        item.DataCell.Text = (item.DataCell.Text + "; Avg: ")
        item.DataCell.Text = (item.DataCell.Text + (CType(groupDataRow("total"), Decimal) / Integer.Parse(groupDataRow("count").ToString)).ToString)
    End If
End Sub

But is there a way to just add the Column aggregate:
<telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column"
HeaderText="Subject" SortExpression="Subject" UniqueName="Subject" ItemStyle-HorizontalAlign="Left"
FooterStyle-HorizontalAlign="Left" FooterText="Tickets " Aggregate="Count">
</telerik:GridBoundColumn>

Thank you in advance.




Kostadin
Telerik team
 answered on 19 Sep 2013
1 answer
123 views
Hi telerik

Can I perform mathematical validation using radcaptcha? Ex. 3+2=? like this.

Any help appreciated
Lovella
Shinu
Top achievements
Rank 2
 answered on 19 Sep 2013
3 answers
417 views
how to increase the font size of text which we enter in the search box .
i tried font-size property but its not working for me..
Magdalena
Telerik team
 answered on 19 Sep 2013
2 answers
101 views
I guys, I´m new in telerik and I began to study the scheduler component, everything works fine with the database but I´m not using stored procedures, so I wanna know how can I use stored procedure with the scheduler component...
Vanilson
Top achievements
Rank 1
 answered on 19 Sep 2013
4 answers
152 views
Hi

Updated radcontrols to the latest release and noticed an usual behavior with radwindow title. Before updating the window title is automatically set to the title of its content by default and in the new release the title is null if no value is specified. Is this an expected modification?

Thanks
Damian
Shinu
Top achievements
Rank 2
 answered on 19 Sep 2013
21 answers
719 views
Documentation states:  

RadAsyncUpload's file handler can be inherited and extended to support custom functionality, for example, saving images directly to a database, without using temporary folder. 
(http://www.telerik.com/help/aspnet-ajax/asyncupload-extending-handler.html) 

I believe I've implemented a custom handler as described in the documentation, but when deployed to a test server running with limited permissions I am seeing: RadAsyncUpload could not create App_Data folder.

My custom handler writes files directly to the database, am I missing something or is the Temp directory always required for the async upload control?

I have DisablePlugins="true" and HttpHandlerUrl="~/Handlers/ImageUploadHandler.ashx"

Please advise.

Thanks,

Adam Nelson

Hristo Valyavicharski
Telerik team
 answered on 19 Sep 2013
12 answers
363 views
I have a RadComboBox following the Load-on-demand PageMethod example. http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

I am getting an alert with the message 'Authentication Failed' when I click the drop down. The RadComboBox happens to be in a RadGrid and I tried calling the same method on the RadGrid DataItemBound event and the method completed successfully (removing any question of database connectivity issues).

<telerik:RadComboBox ID="uxService" runat="server" DropDownWidth="175px" EmptyMessage="Service:" Height="150px" Width="100px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnClientBlur="dropDownBlur">
   <WebServiceSettings Method="GetServices" Path="TimeCard.ascx" />
</telerik:RadComboBox>

[WebMethod]
public static RadComboBoxData GetServices(RadComboBoxContext context)
{
    DataView data = Website.BlueSkyFactory.Time.GetServices(context.Text + "%");
    RadComboBoxData serviceData = new RadComboBoxData();
    int itemOffset = context.NumberOfItems;
    int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Count);
    serviceData.EndOfItems = endOffset == data.Count;
    List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(endOffset - itemOffset);
    RadComboBoxItemData itemData;
    for (int i = itemOffset; i < endOffset; i++)
    {
        itemData = new RadComboBoxItemData();
        itemData.Text = data[i]["FriendlyName"].ToString();
        itemData.Value = data[i]["ServiceId"].ToString();
        result.Add(itemData);
    }
    serviceData.Message = GetStatusMessage(endOffset, data.Count);
    serviceData.Items = result.ToArray();
    return serviceData;
}

Please advise.
Nencho
Telerik team
 answered on 19 Sep 2013
1 answer
141 views
I am attempting to display aggregates in the group header.

I am attempting to use the example from this link:
http://www.telerik.com/help/aspnet-ajax/grid-group-header-footer-templates.html

However I keep getting the following error:

Compiler Error Message: BC30108: 'GridGroupHeaderItem' is a type and cannot be used as an expression.

Source Error:

Line 130: <asp:Label ID="Label7" runat="server" Text='<%# Eval("IDIssueCategory") %>'>

Line 131: </asp:Label>

Line 132: <asp:Label runat="server" ID="Label2" Width="200px" Text='<%# "Number of units: "+ (((GridGroupHeaderItem)Container).AggregatesValues["Subject"]) %>'

Line 133: Visible='<%# ((((GridGroupHeaderItem)Container).AggregatesValues["Subject"]) != null)%>'>

Line 134: </asp:Label>


Here is my code.
<telerik:RadGrid ID="rgd_OpenTickets" runat="server" Skin="WebBlue" CellSpacing="0"
                                    DataSourceID="sds_OpenTickets" GridLines="None" ShowFooter="True" FooterStyle-HorizontalAlign="Left">
                                    <MasterTableView AutoGenerateColumns="False" ClientDataKeyNames="IDIssueCategory"
                                        DataKeyNames="IDIssueCategory" DataSourceID="sds_OpenTickets" HeaderStyle-HorizontalAlign="Center"
                                        ShowFooter="True" ShowGroupFooter="True">
                                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                        </RowIndicatorColumn>
                                        <GroupByExpressions>
                                            <telerik:GridGroupByExpression>
                                                <SelectFields>
                                                    <telerik:GridGroupByField FieldName="CategoryName" HeaderText=" " />
                                                </SelectFields>
                                                <GroupByFields>
                                                    <telerik:GridGroupByField FieldName="IDIssueCategory" />
                                                </GroupByFields>
                                            </telerik:GridGroupByExpression>
                                        </GroupByExpressions>
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="IDIssueCategory" DataType="System.Int32" FilterControlAltText="Filter IDIssueCategory column"
                                                HeaderText="IDIssueCategory" SortExpression="IDIssueCategory" UniqueName="IDIssueCategory"
                                                Visible="False">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="CategoryName" DataType="System.Int32" FilterControlAltText="Filter CategoryName column"
                                                HeaderText="CategoryName" SortExpression="CategoryName" UniqueName="CategoryName"
                                                Visible="False">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="IDTicket" DataType="System.Int32" FilterControlAltText="Filter IDTicket column"
                                                HeaderText="ID" ReadOnly="True" SortExpression="IDTicket" UniqueName="IDTicket"
                                                ItemStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="RequestorUserName" FilterControlAltText="Filter RequestorUserName column"
                                                HeaderText="Requestor" SortExpression="RequestorUserName" UniqueName="RequestorUserName"
                                                ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="EnteredDate" HeaderText="Enter Date" ItemStyle-Width="65px"
                                                SortExpression="EnteredDate" UniqueName="EnteredDate" FilterControlAltText="Filter EnteredDate column"
                                                HeaderStyle-HorizontalAlign="Center" DataType="System.DateTime" DataFormatString="{0:MM/dd/yy}"
                                                ItemStyle-HorizontalAlign="Center">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Priority" FilterControlAltText="Filter Priority column"
                                                HeaderText="Priority" SortExpression="Priority" UniqueName="Priority" ItemStyle-Width="20px"
                                                ItemStyle-HorizontalAlign="Center" DataType="System.Decimal">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Status column"
                                                HeaderText="Status" SortExpression="Status" UniqueName="Status" ReadOnly="True"
                                                ItemStyle-Width="70px">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column"
                                                HeaderText="Subject" SortExpression="Subject" UniqueName="Subject" ItemStyle-HorizontalAlign="Left"
                                                FooterStyle-HorizontalAlign="Left" FooterText="Tickets " Aggregate="Count">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="AssignedTech" FilterControlAltText="Filter AssignedTech column"
                                                HeaderText="Tech" ReadOnly="True" SortExpression="AssignedTech" UniqueName="AssignedTech"
                                                ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Right">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                        <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                        <GroupHeaderTemplate>
                                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("IDIssueCategory") %>'>
                                            </asp:Label>
                                            <asp:Label runat="server" ID="Label1" Width="200px" Text='<%# "Total: "+ (((GridGroupHeaderItem)Container).AggregatesValues["Subject"]) %>'
                                                Visible='<%# ((((GridGroupHeaderItem)Container).AggregatesValues["Subject"]) != null)%>'>
                                            </asp:Label>
                                        </GroupHeaderTemplate>
                                    </MasterTableView>
                                    <FooterStyle BackColor="#CCFF99" Font-Bold="True"></FooterStyle>
                                    <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                                    <FilterMenu EnableImageSprites="False">
                                    </FilterMenu>
                                </telerik:RadGrid>


Any help much appreciated.

Kostadin
Telerik team
 answered on 19 Sep 2013
3 answers
88 views
I have a very unusual problem.After adding the property ShowContentDuringLoad="False" at rad window a scroll bar appears at radgrid inside the rad window.Can you please help. My telerik version is Q2 2013. Please check the attached image.
Marin Bratanov
Telerik team
 answered on 19 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?