Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
268 views
My radgrid is inside the radpanelbar but it won't show up. When it is outside the radpanelbar in a different panel it works perfectly. What is going on? Is OnNeedDataSource not triggering correctly? I couldn't find the control in the code-behind to make it work.

<telerik:RadPanelBar ID="SectionDetailsPanelBar" runat="server" Width="100%">
                            <Items>
                                <telerik:RadPanelItem runat="server" Text="Section Details">
                                    <ContentTemplate>
                                        <asp:Panel ID="SectionDetailsPanel" runat="server" GroupingText="Add Pages/Section">
                                            <telerik:RadGrid ID="RadGridSectionDetails" runat="server" AllowAutomaticUpdates="True" DataSourceID="dsReportSectionDetail" OnItemCommand="RadGridSectionDetails_ItemCommand"  Width="100%">
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ReportSectionID" DataSourceID="dsReportSectionDetail">
                                    <Columns>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="MoveUp" FilterControlAltText="Filter columnDelete column" ImageUrl="~/Images/arrow_up24.png" UniqueName="columnMoveUp">
                                            <HeaderStyle Width="25px"></HeaderStyle>
                                        </telerik:GridButtonColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="MoveDown" FilterControlAltText="Filter columnEdit column" ImageUrl="~/Images/arrow_down24.png" UniqueName="columnMoveDown">
                                            <HeaderStyle Width="25px"></HeaderStyle>
                                        </telerik:GridButtonColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit" FilterControlAltText="Filter columnEdit column" ImageUrl="~/Images/edit_2_24.png" UniqueName="columnEdit">
                                        </telerik:GridButtonColumn>
                                        <telerik:GridBoundColumn DataField="ReportSectionID" DataType="System.Guid" FilterControlAltText="Filter ReportSectionID column" HeaderText="ReportSectionID" ReadOnly="True" SortExpression="ReportSectionID" UniqueName="ReportSectionID" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ReportPageID" DataType="System.Guid" FilterControlAltText="Filter ReportPageID column" HeaderText="ReportPageID" ReadOnly="True" SortExpression="ReportPageID" UniqueName="ReportPageID" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SectionType" FilterControlAltText="Filter SectionType column" HeaderText="SectionType" ReadOnly="True" SortExpression="SectionType" UniqueName="SectionType" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SectionName" FilterControlAltText="Filter SectionName column" HeaderText="Heading Name" SortExpression="SectionName" UniqueName="SectionName">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SectionDescription" FilterControlAltText="Filter SectionDescription column" HeaderText="Heading Description" SortExpression="SectionDescription" UniqueName="SectionDescription">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SectionHeader" FilterControlAltText="Filter SectionHeader column" HeaderText="SectionHeader" ReadOnly="True" SortExpression="SectionHeader" UniqueName="SectionHeader" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CustomTitle" FilterControlAltText="Filter CustomTitle column" HeaderText="Custom Title" SortExpression="CustomTitle" UniqueName="CustomTitle">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>                                       
                                        <telerik:GridTemplateColumn DataField="SectionHTML" FilterControlAltText="Filter SectionHTML column" HeaderText="Section HTML" UniqueName="SectionHTML">
                                            <ItemTemplate></ItemTemplate>
                                            <EditItemTemplate>
                                                <telerik:RadEditor ID="RadEditorSectionHTML" runat="server" Content='<% # bind("SectionHTML")%>' NewLineMode="P"></telerik:RadEditor>
                                            </EditItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="LineBreaksAfter" DataType="System.Int32" FilterControlAltText="Filter LineBreaksAfter column" HeaderText="Line Breaks After" SortExpression="LineBreaksAfter" UniqueName="LineBreaksAfter" MaxLength="2">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="DefaultData" FilterControlAltText="Filter DefaultData column" HeaderText="DefaultData" ReadOnly="True" SortExpression="DefaultData" UniqueName="DefaultData" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridCheckBoxColumn DataField="IncludeOnReport" DataType="System.Boolean" FilterControlAltText="Filter IncludeOnReport column" HeaderText="Include On Report" SortExpression="IncludeOnReport" UniqueName="IncludeOnReport">
                                        </telerik:GridCheckBoxColumn>
                                        <telerik:GridCheckBoxColumn DataField="ShowTitle" DataType="System.Boolean" FilterControlAltText="Filter ShowTitle column" HeaderText="Show Title" UniqueName="ShowTitle">
                                        </telerik:GridCheckBoxColumn>
                                        <telerik:GridBoundColumn DataField="Seq" DataType="System.Int32" FilterControlAltText="Filter Seq column" HeaderText="Seq" ReadOnly="True" SortExpression="Seq" UniqueName="Seq" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridCheckBoxColumn DataField="Deleted" DataType="System.Boolean" FilterControlAltText="Filter Deleted column" HeaderText="Deleted" ReadOnly="True" SortExpression="Deleted" UniqueName="Deleted" Visible="False">
                                        </telerik:GridCheckBoxColumn>
                                        <telerik:GridBoundColumn DataField="UpdateDate" DataType="System.DateTime" FilterControlAltText="Filter UpdateDate column" HeaderText="Update Date" ReadOnly="True" SortExpression="UpdateDate" UniqueName="UpdateDate" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="UpdateUser" FilterControlAltText="Filter UpdateUser column" HeaderText="Update User" ReadOnly="True" SortExpression="UpdateUser" UniqueName="UpdateUser" Visible="False">
                                            <ColumnValidationSettings>
                                                <ModelErrorMessage Text="" />
                                            </ColumnValidationSettings>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" FilterControlAltText="Filter columnDelete column" ImageUrl="~/Images/symbol_delete24.png" UniqueName="columnDelete">
                                            <HeaderStyle Width="25px"></HeaderStyle>
                                        </telerik:GridButtonColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelBar>
Bozhidar
Telerik team
 answered on 22 Aug 2014
1 answer
184 views
I'm a little confused as to why the little color box next to the series in the legend are not appearing.  I've used other types of charts, but I'm attempting my first Pie Chart and I'm at a loss as to why it's not showing as the legend is something that I basically "set and forget" so to speak.  See attached image.  Code as followed.

<telerik:RadHtmlChart runat="server" ID="PieChart1" Width="1160" Height="500px" Transitions="true">
    <Appearance>
            <FillStyle BackgroundColor="White"></FillStyle>
    </Appearance>
    <ChartTitle Text="">
            <Appearance Align="Center" BackgroundColor="White" Position="Top" />
    </ChartTitle>
    <Legend>
        <Appearance BackgroundColor="White" Position="Right" Visible="true" /> 
    </Legend>
    <PlotArea>               
        <Appearance>
            <FillStyle BackgroundColor="White" />                   
        </Appearance>
        <Series>                   
            <telerik:PieSeries DataFieldY="Count" NameField="Product">
                <LabelsAppearance ClientTemplate="#=dataItem.Product# #=dataItem.Percentage#%"/>
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>

DataTable dt = GetData();
PieChart1.DataSource = dt;
PieChart1.DataBind();
Stamo Gochev
Telerik team
 answered on 22 Aug 2014
3 answers
187 views
Hello,
     In my application, I have HTTP compression already implemented along with ScriptResourceHandler having enableCompression property set to true.
Many pages in application use RadGrid and some use RadEditor control. As there are few non-telerik ajax comtrols, I have AjaxScriptManager in my application. I would like to know the benefits and drawbacks if I implement RadCompression along with the HTTP Compression and ScriptResourceHandler Compression.
Thanks.
Maria Ilieva
Telerik team
 answered on 22 Aug 2014
4 answers
122 views
Hi,

is it possible to write Text in the Toolbar-Area like the attached Picture.
I want to save the page space around the Editor.
The text should be the description of the editorcontent

thanks in advance

Johann
Johann
Top achievements
Rank 1
 answered on 22 Aug 2014
1 answer
668 views
Please observe the snapshot 
The numbers in pager style are jumping downwards and upwards when i place mouse pointer over it,not able to find out what the issue is,can any help me..

 RadGrid1.PagerStyle.Position = GridPagerPosition.TopAndBottom;
 RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
 RadGrid1.PagerStyle.PagerTextFormat = "{4} Page {0} from {1}, rows {2} to {3} from {5}";
 RadGrid1.PagerStyle.PageSizeLabelText = "Results per page";
Princy
Top achievements
Rank 2
 answered on 22 Aug 2014
5 answers
293 views
We have following error when install Telerik Control Panel

Application Version: 2013.4.1210.1
Description: Application needs to close
Details:
Telerik.CommonInstaller.InstallerUIBase.Navigation.NavigationException: Getting view model failed. ---> Telerik.CommonInstaller.Application.Exceptions.ProductServiceException: Failed to create Products due to invalid product definition. ---> System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.GetProductDetails(String productCode)
   at Telerik.CommonInstaller.Application.ControlPanel.Helpers.ControlPanelItemModelFactory.GetProductDetails(String productCode)
   at Telerik.CommonInstaller.Application.ControlPanel.Helpers.ControlPanelItemModelFactory.CreateProductVersionBase(RawProductVersion productVersion)
   at Telerik.CommonInstaller.Application.ControlPanel.Helpers.ControlPanelItemModelFactory.CreateControlPanelItemModel(RawProductVersion latestRawVersion, IEnumerable`1 allVersions, Boolean isLicenseActive, InstalledProductDetector upgradeHelper)
   at Telerik.CommonInstaller.Application.ControlPanel.Helpers.ControlPanelItemModelFactory.GetControlPanelItemModel(IList`1 productVersionsPerProductCode)
   at Telerik.CommonInstaller.Application.ControlPanel.Helpers.ControlPanelItemModelFactory.GetControlPanelItemModels(IList`1 productVersionLicenses)
   at Telerik.CommonInstaller.Application.ControlPanel.Services.ControlPanelProductService.GetControlPanelItemModelsPrivate()
   at Telerik.CommonInstaller.Application.ControlPanel.Services.ControlPanelProductService.<GetControlPanelItemModels>b__0()
   at Telerik.CommonInstaller.Application.Services.ProductService.CatchAndRethrow[T](Func`1 action)
   --- End of inner exception stack trace ---
   at Telerik.CommonInstaller.Application.Services.ProductService.CatchAndRethrow[T](Func`1 action)
   at Telerik.CommonInstaller.Application.ControlPanel.Services.ControlPanelProductService.GetControlPanelItemModels()
   at Telerik.CommonInstaller.ControlPanel.ViewModels.PageViewModelRepository.get_ProductsPageViewModel()
   at Telerik.CommonInstaller.ControlPanel.ViewModels.PageViewModelRepository.GetViewModel[T](Object argument)
   at Telerik.CommonInstaller.InstallerUIBase.Navigation.NavigationControllerBase.<>c__DisplayClass6`2.<GetViewModelAndNavigateToSubsequentPageAsync>b__4(Object sender, DoWorkEventArgs args)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
   --- End of inner exception stack trace ---
   at Telerik.CommonInstaller.InstallerUIBase.Navigation.NavigationControllerBase.<>c__DisplayClass6`2.<GetViewModelAndNavigateToSubsequentPageAsync>b__5(Object sender, RunWorkerCompletedEventArgs args)
   at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
   at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

How to fix that?
Thank you
Marin Bratanov
Telerik team
 answered on 22 Aug 2014
5 answers
292 views
I am trying to test Devcraft Suite. I have issues installing the product - http://www.telerik.com/developer-productivity-tools/download.aspx. I am behind proxy and I did provide the credetials, but it didn't work with both options - using Internet proxy settings as well as providing direct proxy settings with authentication details during install.

If there is a full install file for this, I would appreciate. We are able to install RadControls for ASP.NET AJAX and test these fine.Following is the error:

ValidationVersion.xml from ProductInfoService. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.GetResponse() at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri, String sourceName) --- End of inner exception stack trace --- at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri, String sourceName) at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.get_WebInstallerValidationVersion() at Telerik.CommonInstaller.Application.Services.DeprecationService.GetWebInstallerMinVersion() at Telerik.CommonInstaller.Application.Services.DeprecationService.CheckWebInstallerDeprecated() at Telerik.CommonInstaller.WebInstaller.App.CheckIsDeprecated() at Telerik.CommonInstaller.InstallerUIBase.ApplicationBase.OnStartup(StartupEventArgs e) at Telerik.CommonInstaller.WebInstaller.App.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Marin Bratanov
Telerik team
 answered on 22 Aug 2014
1 answer
101 views
Hi,

Is that possible to connect to a cube by passing session id into OLAP connection string? Other controls like 'DevExpress' have this features which is very useful as i can manipulate the cube to show sliced set of data as i want. I don't think its a hard feature to add, since just need to connect to the cube session? Thanks.
Eyup
Telerik team
 answered on 22 Aug 2014
1 answer
234 views
Hello

as shown in attached image

 I want to call Radgrid  SelectedIndexChange event on arrow key press

ie I want to display selected row value in corresponding textbox.

as i navigate to another row , the text in textbox should change.


Thanks
Kishor Dange
Konstantin Dikov
Telerik team
 answered on 22 Aug 2014
6 answers
1.2K+ views
Hi,

I am using radgrid which is having multiple groups (5), each group is having 10 columns. My rad grid having following properties :

. Frozen Columns.
. Grouping.
. Scrolling.
. TableLayout="Fixed" for MasterTableView.

If i set width for radgrid 100% its crossing the screen. If i reduces the with % my radgrid columns are collapsing and some of the groups not displaying. If i set width in pixels for radgrid, individual column groups, HeaderStyle-Width and  ItemStyle-Width some of the columns are displaying in the last group.

Can any one help on this. Thanks in advance.

Regards,
Venkatesh.
Venelin
Telerik team
 answered on 22 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?