Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
When I want my textbox to show a value like "0.000001" it automatically converts it to "1E-06". How can I stop it from doing this?

Daniel
Telerik team
 answered on 01 Apr 2009
1 answer
110 views
Hi
   I am need some help in RadChart(pie chart).In pie chart i am having four parts and filled four parts with different colours. Now i need a legend for these four parts, beside that pie chart.In legend i wanna give corresponding colour part name

  How can i do this.

  Thanks
  Srikanth Gunnala
Shinu
Top achievements
Rank 2
 answered on 01 Apr 2009
1 answer
121 views
Hi,

I have a page that has two RadGrids and I want to do a batch update to both grids. Because there are two grids, having a update commanditem doesn't seem appropriate.

On the button click I call the following procedure:
For Each Item As GridEditableItem In RadGrid1.EditItems 
                ObjectDataSource1.UpdateParameters.Item("Field1").DefaultValue = Item("Field1").Text 
                ObjectDataSource1.UpdateParameters.Item("Field2").DefaultValue = Item("Field2").Text 
                ObjectDataSource1.UpdateParameters.Item("Field3").DefaultValue = Item("Field3").Text 
                ObjectDataSource1.UpdateParameters.Item("Field4").DefaultValue = Item("Field4").Text 
                ObjectDataSource1.UpdateParameters.Item("Field5").DefaultValue = Item("Field5").Text 
                ObjectDataSource1.UpdateParameters.Item("Field6").DefaultValue = Item("Field6").Text 
                ObjectDataSource1.Update() 
        Next 


The solution seems fairly simple, but it appears I'm missing something. Any help would be appreciated.

JM
Yavor
Telerik team
 answered on 01 Apr 2009
3 answers
170 views
 

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 1:  <%@ Control Language="C#" AutoEventWireup="True" Inherits="Prop.Admin.UserControls.Admin_UserControls_AdminMenu" Codebehind="AdminMenu.ascx.cs" %>
Line 2: <%@ Register TagPrefix="Telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>Line 3:  <Telerik:RadPanelbar ID="rpbMenu" runat="server" Width="150px" 
Line 4:     HeaderExpandedCssClass="cmenuitemMHoverAll" 

Source File: /UserControls/AdminMenu.ascx    Line: 2

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

=== Pre-bind state information ===
LOG: User = WIFI\rich
LOG: DisplayName = Telerik.Web.UI
 (Partial)
LOG: Appbase = file:///F:/Projects/Prop/trunk/NewAdmin/
LOG: Initial PrivatePath = F:\Projects\Prop\trunk\NewAdmin\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: F:\Projects\Prop\trunk\NewAdmin\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Pavlina
Telerik team
 answered on 01 Apr 2009
3 answers
111 views
I'm using the Grid control and want to implement some custom behaviors like a custom drop cue, hiding the dragged item in the table and stuff like that. Would this be possible? If so, where should I look for examples?
Georgi Krustev
Telerik team
 answered on 01 Apr 2009
1 answer
141 views
Hi,

We use in the Grid different column with the date format : dd-MM-yyyy (01-02-2009).
The standard filtering don't work.
I read different post and the documentation ( with many broken links) about this problem but i don't found any solution.

Do you have a nice sample to implement the filter with different format date who's work.
I use for the date only the filter Equal To.

Bellow my code:

     <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" 
                        GridLines="None" PageSize="13" Height="455px" OnNeedDataSource="RadGrid1_OnNeedDataSource" 
                        AutoGenerateColumns="false" OnInit="RadGrid_Init" AllowSorting="true" AllowPaging="true" EnableViewState="false"  
                        PagerStyle-AlwaysVisible="true" AllowFilteringByColumn="true" FilterItemStyle-HorizontalAlign="Left"
                        <MasterTableView DataKeyNames="ReactionId" Width="100%" IsFilterItemExpanded="true" AllowFilteringByColumn="true"
                            <Columns> 
                                <telerik:GridBoundColumn DataField="ReactionId" HeaderText="Id" AllowFiltering="false" UniqueName="ReactionId" SortExpression="ReactionId"
                                    <HeaderStyle HorizontalAlign="Left" Width="20" /> 
                                    <ItemStyle HorizontalAlign="Left" Width="20" Wrap="false" Height="20px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridTemplateColumn UniqueName="VacancyName" DataField="VacancyName" InitializeTemplatesFirst="false" SortExpression="VacancyName" AllowFiltering="true"
                                    <HeaderTemplate> 
                                        <asp:LinkButton ID="btnVacancyName" Text="Vacaturetitel" ToolTip="Sorteren per vacaturetitel" CommandName="Sort" CommandArgument="VacancyName" runat="server"></asp:LinkButton> 
                                    </HeaderTemplate> 
                                    <HeaderStyle HorizontalAlign="Left" /> 
                                    <ItemTemplate> 
                                         <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
                                            <asp:LinkButton ID="btn_EditReaction" runat="server" CommandArgument='<%#Eval("ReactionId")%>' CssClass="lnk" CommandName="EditReaction" OnClick="Edit_OnClick" CausesValidation="false"><%#Eval("VacancyName")%></asp:LinkButton> 
                                         </telerik:RadCodeBlock> 
                                    </ItemTemplate> 
                                    <ItemStyle Width="100%" HorizontalAlign="left" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn DataField="StatusName" HeaderText="Status" UniqueName="StatusName" SortExpression="StatusName"
                                    <ItemStyle HorizontalAlign="Left" Wrap="false" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ReactionDate" HeaderText="Reactiedatum" UniqueName="ReactionDate" DataType="System.DateTime" DataFormatString="{0:dd-MM-yyyy}" SortExpression="ReactionDate"
                                    <ItemStyle HorizontalAlign="Left" Wrap="false" /> 
                                </telerik:GridBoundColumn> 
                            </Columns> 
                        </MasterTableView> 
                        <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Volgende pagina" PrevPageText="Vorige pagina" NextPagesToolTip="Volgende pagina" PrevPagesToolTip="Vorige pagina" PagerTextFormat="Pagina: {4}  Pagina {0} tot {3} op {5}"  />  
                        <GroupingSettings CaseSensitive="false" /> 
                        <FilterMenu EnableTheming="true" Skin="Office2007"
                            <collapseAnimation Duration="200" Type="OutQuint" /> 
                        </FilterMenu> 
                        <ClientSettings AllowDragToGroup="False" EnableRowHoverStyle="true"></ClientSettings> 
                    </telerik:RadGrid> 


and the filter code :

/// <summary> 
        /// reduce menu filter options 
        /// </summary> 
        /// <param name="sender">object</param> 
        /// <param name="e">EventArgs</param> 
        /// translation: 
        /// NoFilter = Geen filter 
        /// Contains = Bevat het woord 
        /// Equal to = Gelijk aan 
        /// StartsWith = Begint met 
        /// EndsWith = Eindigd met 
        protected void RadGrid_Init(object sender, EventArgs e) 
        { 
            GridFilterMenu menu = RadGrid1.FilterMenu; 
            int i = 0
            while (i < menu.Items.Count
            { 
                if (menu.Items[i].Text == "NoFilter") 
                { 
                    menu.Items[i].Text = "Geen filter"
                    i++; 
                } 
                else if (menu.Items[i].Text == "Contains") 
                { 
                    menu.Items[i].Text = "Bevat het woord"
                    i++; 
 
                } 
                else if (menu.Items[i].Text == "EqualTo") 
                { 
                    menu.Items[i].Text = "Gelijk aan"
                    i++; 
                } 
                else if (menu.Items[i].Text == "StartsWith") 
                { 
                    menu.Items[i].Text = "Begint met"
                    i++; 
                } 
                else if (menu.Items[i].Text == "EndsWith") 
                { 
                    menu.Items[i].Text = "Eindigd met"
                    i++; 
                } 
                else 
                { 
                    menu.Items.RemoveAt(i); 
                } 
            } 
        } 


Thanks for your help.

Edwin.



Pavlina
Telerik team
 answered on 01 Apr 2009
3 answers
128 views
Hello,
My client would like to display the Max aggregate on sub-totals, and a total aggregate on the grand total. Is there a way to do this using RadGrid?
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Office2007" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" ShowFooter="True" ShowStatusBar="True">  
                    <HeaderContextMenu EnableTheming="True">  
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </HeaderContextMenu> 
                    <ExportSettings ExportOnlyData="True" IgnorePaging="True" OpenInNewWindow="True">  
                        <Pdf FontType="Embed" PageBottomMargin="0.25in" PageFooterMargin="0.25in" PageHeaderMargin="0.25in" PageHeight="8.5in" PageLeftMargin="0.25in" PageRightMargin="0.25in" PageTopMargin="0.25in" PageWidth="11in" Title="JPS Report" /> 
                    </ExportSettings> 
                    <FooterStyle Font-Bold="True" /> 
                    <MasterTableView ShowGroupFooter="true">  
                        <GroupByExpressions> 
                            <telerik:GridGroupByExpression> 
                                <GroupByFields> 
                                    <telerik:GridGroupByField FieldName="weeknumber" SortOrder="Ascending" /> 
                                </GroupByFields> 
                                <SelectFields> 
                                    <telerik:GridGroupByField FieldName="weeknumber" HeaderText=":" SortOrder="Ascending" /> 
                                </SelectFields> 
                            </telerik:GridGroupByExpression> 
                        </GroupByExpressions> 
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="sup_htstartdate" DataFormatString="{0:d}" HeaderText="HT Start Date" ItemStyle-CssClass="dateColumn" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                                <ItemStyle CssClass="dateColumn"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_htenddate" DataFormatString="{0:d}" HeaderText="HT End Date" ItemStyle-CssClass="dateColumn" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                                <ItemStyle CssClass="dateColumn"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="scn" HeaderText="Doc Number" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_bidtypename" HeaderText="Bid Type" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_probability" DataFormatString="{0}%" HeaderText="Probability" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_accountidname" HeaderText="Customer" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_plantname" HeaderText="Plant Name" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_city" HeaderText="City" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_state" HeaderText="State" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText="Monthly Total:">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_sitespecifictraining" HeaderText="Training" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_union" HeaderText="Union" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Sum">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_projectmanager" HeaderText="Project Mgr" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_unitsupervisors" HeaderText="Unit Sup" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_technician" HeaderText="Techs" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_administration" HeaderText="Admin" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_6wayunits" HeaderText="6 Ways" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_gastrains" HeaderText="Gas Trains" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_superpower12" HeaderText="SPR 12" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText=" " Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="sup_weeklyrevenue" HeaderText="Estimate" DataFormatString="{0:c}" ItemStyle-CssClass="moneyColumn" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="false" FooterText="" Aggregate="Max">  
                                <HeaderStyle Font-Bold="False" Font-Size="XX-Small"></HeaderStyle> 
                                <ItemStyle CssClass="moneyColumn"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <GroupHeaderItemStyle Font-Bold="True" /> 
                    <ClientSettings AllowKeyboardNavigation="True">  
                    </ClientSettings> 
                    <FilterMenu EnableTheming="True">  
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </FilterMenu> 
                </telerik:RadGrid> 

Thanks!
Georgi Krustev
Telerik team
 answered on 01 Apr 2009
1 answer
233 views
Im working with a load-on-demand using webservice treeview and I have some business rules that I want to run in a drag n drop context. All my business rules are implemented server side.

This means that I want to:

1. Disable drag / drop for specific nodes when first adding the node. I currently do this using the OnNodeDatabound event. This works fine for me, although it would be easier to do it server side. I am calling my load-on-demand webservice where I would like to do the work.
2. Disable drop depending on the node that the source is dragged onto based on server side logic. I have not been able to find out how to cancel the drop based on a server-side condition.
3. Provide the user with necessary GUI & error messages depending on the rules.

An example:
After a drop, I find out that the destination node returns false for a specific rule. This means that I have to cancel the drop and give the user a message "Cannot move node xxx because rule yyy failed"

Can you help me out with this?
Atanas Korchev
Telerik team
 answered on 01 Apr 2009
1 answer
172 views
Hi,
I need to grab the date from a raddatepicker.
The picker is initially set to 2009-03-01 but when I alert the selected date I just get "1" as in the day (I think)
var startDatePicker = $find("<%= RadDatePickerSalesStartDate.ClientID %>"); 
alert(startDatePicker.get_selectedDate().getDate()); 

Whats up with this?

/Mattias
Daniel
Telerik team
 answered on 01 Apr 2009
3 answers
150 views
Hi,
In a RadUpload control, how can I replace the default 'Browse' button with custom browse button (an image)?

Thanks
Paul
Telerik team
 answered on 01 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?