Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
166 views
I have a website running on HTTPS with no problems.
But when I export a grid to PDF gives me error on images with HTTPS links.


System.SystemException: Error while creating area : Encountered web exception while fetching image from file:///C:/inetpub/wwwroot/HTTPS/MySite/https://localhost/MySite/images/1000089.jpg: The given path's format is not supported.
at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)


Best regards,
Joaquim Oliveira
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Sep 2012
1 answer
88 views
Hi,
I am currently looking into the ASP.Net Scheduler control as I think it may be a good fit for an application I may soon be tasked with building. What the application will most likely involve, and where the Scheduler could conceivably be used is for a module that will allow shipping managers in our plant to select one or more orders from a list (contained in a ListBox, or Tree Control or some other list view), and "schedule" them to be shipped on a given day within a given week by adding them to the scheduler (calendar). Because things are apt to change in our environment (such as orders being placed on hold or being delayed), the same managers would need to "shuffle" the shipping dates for particular orders, possibly moving them to another date in another week or month.

With relation to the "lists" I mentioned above is there anyway to configure the editing templates that the Scheduler provides to add list type controls such as Listbox or Tree Controls that would allow for one or more selections and upon selection drop the "selected list" of orders into the specific day date and make a call to update our database applying the shipping date? Also does the scheduler support any dragging and dropping capability external of the control such as if I wanted to maybe select and drag a list of orders from an external list control onto the calendar of the Scheduler? 

Essentially this application's aim is to (potentially) replace a manual Excel spreadsheet that our shipping manager uses today to prepare a weekly shipping schedule for orders (based on a spreadsheet he receives from another user with order#s) - the spreadsheet data is essentially manipulated external of the database. In looking at the ASP.net Scheduler control it seems perfect for the task, if only not for appointments than adding a list of orders.
Thanks,
Paul
Ivana
Telerik team
 answered on 03 Sep 2012
1 answer
80 views
Hello, 
        I have two updatepanels at left and right side to the page and these two update panel devided by Splitter. Please see below attached screen shot for good understanding.

         the left hand panel has two tabs, those are gridparameter tab and Chartparameter tab.

Requirement:
         When we select GridParameter tab and hit the button, we have to load the Grid controle and need to hide the Chart controle.
         When we select ChartParameter tab and hit the button, we have to load the Chart controle and need to hide the Grid controle with multiple serieses of different datasets.

        After my several attempts, I'm able to load grid, but not able to load the chart. Assuming there are some special settings I have to make.

       Please find the below sample code, after removing my original code. ASPX and ASPX.VB files code. 
      Just take the any scenario but, when I use the Gridparameter tab and clicking on the appropriate button, we have to load Grid control.
       In the same way, when we use Chartparameter tab and click on the appropriate button, we have to load Chart controle with multiple serieses of different datasets.
       
       Please suggest a good code sample.

ASPX:

<%

 

@ Page Title="Reports - Test Management Suite" Language="VB" MasterPageFile="~/TMSuiteMaster.master"

 

AutoEventWireup="false" CodeFile="Reports.aspx.vb" Inherits="forms_Reports" %>

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %>

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.Design" TagPrefix="telerik" %>

<%

 

@ Register TagPrefix="cntxt" TagName="RIContextMenu" Src="~/controls/RIContextMenu.ascx" %>

<%

 

--<%@ Register TagPrefix="a" Namespace="System.Web.UI.DataVisualization.Charting" Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>

<%@ Register TagPrefix="a" Namespace="Telerik.Charting.Styles" Assembly="Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

--

 

 

%>

<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

 

<!-- CssPopUp.js has definition for toggle() function required by splitter. -->

 

<script type="text/javascript" language="JavaScript" src="../javaScripts/CssPopUp.js"></script>

<%

 

--By Default, charts showing a rendering image at backgroud. to remove it, we have to use the below setting--%>

 

<style type="text/css">

 

.RadChart .rchImgWrap div

{

 

background-image: none;

}

 

</style>

</

 

 

asp:Content>

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

 

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

 

</telerik:RadStyleSheetManager>

 

<cntxt:RIContextMenu ID="RIContextMenu1" runat="server" />

 

<div id="pageHeaderWrapper" class="pageHeader">

 

<span>Reliability Reports</span>

 

<asp:UpdatePanel ID="updHeaderLabel" runat="server" RenderMode="Inline">

 

<ContentTemplate>

 

<asp:Label ID="lblHeaderLabel" Text="" runat="server"></asp:Label>

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

</div>

 

<asp:UpdatePanel ID="updMessage" runat="server" EnableViewState="false" RenderMode="Block">

 

<ContentTemplate>

 

<div id="dvMessage" runat="server" style="display: block; float: left; width: 100%;

 

 

padding: 5px 0 5px 0;">

 

<asp:Label ID="lblMessage" Text="" runat="server"></asp:Label>

 

</div>

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

<div id="dvSearch" style="float: left; min-width: 35%; width: 35%;">

 

<fieldset>

 

<legend>Report Type</legend>

 

<asp:UpdatePanel ID="updSearchTabs" runat="server" RenderMode="Inline">

 

<ContentTemplate>

 

<telerik:RadTabStrip ID="rtsReportType" runat="server" MultiPageID="rmpReportType"

 

SelectedIndex="0">

 

<Tabs>

 

<telerik:RadTab runat="server" Text="GridLoadParameters" Value="LiveMetric">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="ChamberUtilization" Value="ChamberUtilization">

 

</telerik:RadTab>

 

</Tabs>

 

</telerik:RadTabStrip>

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

<asp:UpdatePanel ID="updSearchTabPages" runat="server" RenderMode="Inline">

 

<ContentTemplate>

 

<telerik:RadMultiPage ID="rmpReportType" runat="server" SelectedIndex="0">

 

<telerik:RadPageView ID="rpvGridLoadParameters" runat="server">

 

<div style="padding: 5px; text-align: left;">

 

<div id="dvcreatedDate" runat="server" style="float: left;">

 

<span style="text-align: left;" class="subheadline" title="Select a RI created date to retrieve metrics data accordingly.">

Metric Calculation Start Date :

 

</span>

 

<telerik:RadDatePicker ID="rdpCreatedDate" runat="server" DateInput-ID="rdicreatedDate"

 

Width="100px">

 

</telerik:RadDatePicker>

 

<asp:RequiredFieldValidator ID="rfvcreatedDate" runat="server" ValidationGroup="createdDate"

 

ControlToValidate="rdpCreatedDate" EnableClientScript="true" ErrorMessage="Please enter a valid RI created date."

 

Display="Dynamic"></asp:RequiredFieldValidator>

 

</div>

 

<br></br>

 

<div id="dvriEnddate" runat="server" style="float: left;">

 

<span style="text-align: left;" class="subheadline" title="Select a RI end date to retrieve metrics data accordingly.">

Metric Calculation End Date :

 

</span>

 

<telerik:RadDatePicker ID="rdpEnddate" runat="server" DateInput-ID="rdiriEnddate"

 

Width="100px">

 

</telerik:RadDatePicker>

 

<asp:RequiredFieldValidator ID="rfvriEnddate" runat="server" ValidationGroup="riEnddate"

 

ControlToValidate="rdpEnddate" EnableClientScript="true" ErrorMessage="Please enter a valid RI end date."

 

Display="Dynamic"></asp:RequiredFieldValidator>

 

</div>

 

<br></br>

 

<div style="display: inline; float: right; clear: right;">

 

<asp:Button ID="btnLoadGrid" Text="Get LiveMetrics" runat="server" />

 

</div>

 

</div>

 

</telerik:RadPageView>

 

<telerik:RadPageView ID="rpvChartLoadParameters" runat="server">

 

<div style="padding: 5px; text-align: left;">

 

<div style="float: left; display: inline;">

 

<div style="display: inline; text-align: left">

 

<span class="subheadline">Equipment : </span>

 

</div>

 

<div style="display: inline; text-align: left">

 

<asp:DropDownList ID="drpEquipment" runat="server" SkinID="smallDropDown">

 

</asp:DropDownList>

 

</div>

 

</div>

 

<div id="Div3" runat="server" style="float: right; display: inline;">

 

<span style="text-align: left;" class="subheadline" title="Select a date to retrieve chamber utilization data accordingly &#13;.">

Scheduled Start Date :

 

</span>

 

<telerik:RadDatePicker ID="rdpScheduledStartdate" runat="server" DateInput-ID="rdiScheduledStartDate"

 

Width="100px">

 

</telerik:RadDatePicker>

 

<asp:RequiredFieldValidator ID="rfvriScheduledStartdate" runat="server" ValidationGroup="ChamberTestsReports"

 

ControlToValidate="rdpSelectedDate" EnableClientScript="true" ErrorMessage="Please enter a valid date."

 

Display="Dynamic"></asp:RequiredFieldValidator>

 

</div>

 

<div id="Div4" runat="server" style="float: right; display: inline;">

 

<span style="text-align: left;" class="subheadline" title="Select a date to retrieve chamber utilization data accordingly &#13;.">

Scheduled End Date :

 

</span>

 

<telerik:RadDatePicker ID="rdpScheduledEnddate" runat="server" DateInput-ID="rdiScheduledEndDate"

 

Width="100px">

 

</telerik:RadDatePicker>

 

<asp:RequiredFieldValidator ID="rfvriScheduledEnddate" runat="server" ValidationGroup="ChamberTestsReports"

 

ControlToValidate="rdpSelectedDate" EnableClientScript="true" ErrorMessage="Please enter a valid date."

 

Display="Dynamic"></asp:RequiredFieldValidator>

 

</div>

 

<div style="display: inline; float: right; clear: right;">

 

<asp:Button ID="btnLoadChart" Text="Get Chamber Utilization" runat="server"

 

ValidationGroup="GetChamberUtilization" />

 

</div>

 

</div>

 

</telerik:RadPageView>

 

</telerik:RadMultiPage>

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

</fieldset>

 

</div>

 

<div class="splitter" style="min-height: 500px;" onclick="javascript:toggle('dvSearch');fnAdjustSectionWidth('dvResult','dvSearch','64%');"

 

title="Click to expand/collapse search pane.">

 

&nbsp;

 

</div>

 

<div id="dvResult" runat="server" style="min-width: 64%; width: 64%; height: 98%;

 

 

float: right;">

 

<fieldset>

 

<legend>Result</legend>

 

<asp:UpdatePanel ID="updReportData" runat="server">

 

<ContentTemplate>

 

<asp:Label ID="lblMetricsInfo" runat="server"></asp:Label></Br>

 

<asp:Label ID="lblMetricsBusinessInfo" runat="server"></asp:Label>

 

<div style="text-align: right">

 

<asp:LinkButton ID="lnkShowAll" Text="Show All" ToolTip="Toggle grid paging" runat="server"

 

CommandName="CurrentGrid" CommandArgument="ReportData"></asp:LinkButton>

 

<asp:ImageButton ID="imgToExcel" runat="server" ImageUrl="../images/excel_16x16.png"

 

AlternateText="Export data to Excel" ToolTip="Export grid data to Excel." Style="width: 16px;

 

 

height: 16px; cursor: pointer;" CommandName="CurrentGrid" CommandArgument="ReportData" />

 

</div>

 

<div class="gridWrapper">

 

<telerik:RadGrid ID="grdReportData" runat="server" PageSize="20" AllowSorting="True"

 

AllowPaging="True" AutoGenerateColumns="True" ShowGroupPanel="True" CssClass="grid"

 

ClientSettings-Resizing-AllowColumnResize="true" ClientSettings-Resizing-ResizeGridOnColumnResize="true"

 

ShowFooter="true">

 

<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>

 

<GroupPanel Text="">

 

</GroupPanel>

 

<MasterTableView Width="100%" TableLayout="Fixed">

 

<NoRecordsTemplate>

No records exist for the given criteria.

 

</NoRecordsTemplate>

 

</MasterTableView>

 

<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True">

 

<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True"></Resizing>

 

</ClientSettings>

 

</telerik:RadGrid>

 

</div>

 

</ContentTemplate>

 

<Triggers>

 

<asp:PostBackTrigger ControlID="imgToExcel" />

 

</Triggers>

 

</asp:UpdatePanel>

 

</fieldset>

 

</div>

 

<div id="dvMetriccharts" runat="server" style="float: right; min-width: 60%; width: 74%;">

 

<fieldset>

 

<legend>Metrics Result Type</legend>

 

<telerik:RadTabStrip ID="rtsResultType" runat="server" MultiPageID="rmpResult" SelectedIndex="0">

 

<Tabs>

 

<telerik:RadTab runat="server" Text="ChamberUtilization" Value="ChamberUtilization">

 

</telerik:RadTab>

 

</Tabs>

 

</telerik:RadTabStrip>

 

<asp:Label ID="lblAvgDisplay" Text="" runat="server" text-align="center"></asp:Label>

 

<telerik:RadMultiPage ID="rmpChartType" runat="server" SelectedIndex="0">

 

<telerik:RadPageView ID="rpvChamberUtilization" runat="server">

 

<div style="padding: 5px; text-align: left;">

 

<asp:Button Visible="True" ID="btnChamberUtilization" Text="ResetZoomOut" ToolTip="Save changes"

 

runat="server" OnClientClick="ZoomOutPostTestTimeliness(); return false;" />

 

<asp:UpdatePanel ID="updChamberUtilization" runat="server" RenderMode="Inline" UpdateMode="Conditional">

 

<ContentTemplate>

 

<telerik:RadChart AutoLayout="True" Height="450px" ID="rcchart" runat="server"

 

Skin="WebBlue" DefaultType="Line" Width="935px">

 

<ClientSettings EnableZoom="True" ScrollMode="Both" />

 

<Appearance>

 

<FillStyle MainColor="249, 250, 251">

 

</FillStyle>

 

<Border Color="160, 170, 182" />

 

</Appearance>

 

<Series>

 

<telerik:ChartSeries Name="DevSeries">

 

<Appearance>

 

<FillStyle FillType="ComplexGradient" MainColor="94, 117, 142">

 

<FillSettings>

 

<ComplexGradient>

 

<telerik:GradientElement Color="94, 117, 142" />

 

<telerik:GradientElement Color="116, 138, 162" Position="0.5" />

 

<telerik:GradientElement Color="139, 160, 183" Position="1" />

 

</ComplexGradient>

 

</FillSettings>

 

</FillStyle>

 

<TextAppearance TextProperties-Color="140, 140, 140">

 

</TextAppearance>

 

<Border Color="73, 86, 101" />

 

</Appearance>

 

</telerik:ChartSeries>

 

<telerik:ChartSeries Name="ProdSeries">

 

<Appearance>

 

<FillStyle FillType="ComplexGradient" MainColor="164, 175, 187">

 

<FillSettings>

 

<ComplexGradient>

 

<telerik:GradientElement Color="164, 175, 187" />

 

<telerik:GradientElement Color="196, 203, 212" Position="0.5" />

 

<telerik:GradientElement Color="221, 226, 233" Position="1" />

 

</ComplexGradient>

 

</FillSettings>

 

</FillStyle>

 

<TextAppearance TextProperties-Color="140, 140, 140">

 

</TextAppearance>

 

<Border Color="144, 150, 159" />

 

</Appearance>

 

</telerik:ChartSeries>

 

</Series>

 

<Legend Visible="False">

 

<Appearance Dimensions-Margins="1%, 1%, 1px, 1px" Dimensions-Paddings="1px, 1px, 1px, 1px"

 

Position-AlignedPosition="bottom" Visible="False">

 

<ItemTextAppearance TextProperties-Color="102, 102, 102">

 

</ItemTextAppearance>

 

<FillStyle MainColor="216, 222, 227">

 

</FillStyle>

 

<Border Color="160, 170, 182" />

 

</Appearance>

 

</Legend>

 

<PlotArea>

 

<YAxis AutoScale="True" AxisMode="Extended">

 

<Appearance>

 

<MajorGridLines Color="227, 227, 227" />

 

<MinorGridLines Color="227, 227, 227" />

 

<TextAppearance AutoTextWrap="False" />

 

</Appearance>

 

<AxisLabel>

 

<TextBlock>

 

<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="TopLeft">

 

</Appearance>

 

</TextBlock>

 

</AxisLabel>

 

</YAxis>

 

<XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0">

 

<Appearance>

 

<MajorGridLines Color="227, 227, 227" Width="0" />

 

<TextAppearance AutoTextWrap="True" />

 

</Appearance>

 

<AxisLabel>

 

<TextBlock>

 

<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="BottomRight">

 

</Appearance>

 

</TextBlock>

 

</AxisLabel>

 

</XAxis>

 

<Appearance>

 

<FillStyle FillType="Solid" MainColor="">

 

</FillStyle>

 

</Appearance>

 

</PlotArea>

 

<ChartTitle>

 

<Appearance>

 

<FillStyle MainColor="">

 

</FillStyle>

 

</Appearance>

 

<TextBlock Text="PostTest Timeliness">

 

<Appearance TextProperties-Color="102, 102, 102" TextProperties-Font="Arial, 7pt"

 

Position-AlignedPosition="Bottom">

 

</Appearance>

 

</TextBlock>

 

</ChartTitle>

 

</telerik:RadChart>

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

</div>

 

</telerik:RadPageView>

 

</telerik:RadMultiPage>

 

</fieldset>

 

</div>

</

 

 

asp:Content>








ASPX.VB:


Imports

 

 

System.Web

Imports

 

 

System.Web.UI.WebControls

Imports

 

 

System.Data

Imports

 

 

Telerik.Web.UI

Imports

 

 

System.Globalization

Partial

 

 

Class forms_Reports

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

lblMessage.Text =

 

String.Empty

lblMetricsInfo.Text =

 

String.Empty

lblMetricsBusinessInfo.Text =

 

String.Empty

 

End Sub

#Region

 

 

"GetLive Metric"

 

Protected Sub btnGetChamberUtilization_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLoadChart.Click

 

Dim strerrorMessage As String = String.Empty

 

Dim ds As DataSet

grdReportData.DataSource =

 

Nothing

ds =

 

Object.AdonetSP(CType(rdpScheduledStartdate.SelectedDate, Date), CType(rdpScheduledEnddate.SelectedDate, Date), "", strerrorMessage)

 

If Not ds Is Nothing Then

rcchart.Clear()

rcchart.DataSource = ds.Tables.Item(0)

rcchart.DataBind()

rcchart.Series(0).DataXColumn =

 

"XAxisDatabaseColumn"

rcchart.Series(0).DataYColumn =

 

"YAxisDatabaseColumn"

 

'Need to handle the series(1) for the other results

 

'rcchart.Series(1).DataXColumn = "XAxisDatabaseColumn"

 

'rcchart.Series(1).DataYColumn = "YAxisDatabaseColumn"

 

rcchart.PlotArea.XAxis.AxisLabel.TextBlock.Text =

 

"XAxis Name"

rcchart.PlotArea.XAxis.AxisLabel.Visible =

 

True

rcchart.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.

 

Color.Red

rcchart.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Position.Auto =

 

True

rcchart.PlotArea.YAxis.AxisLabel.Visible =

 

True

rcchart.PlotArea.YAxis.AxisLabel.TextBlock.Text =

 

"YAxis Name"

rcchart.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.

 

Color.Red

rcchart.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto =

 

True

rcchart.Legend.Visible =

 

False

 

End If

 

End Sub

 

Protected Sub btnLiveMetrics_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLoadGrid.Click

 

Dim strerrorMessage As String = String.Empty

 

Dim ds As DataSet

lblMessage.Text =

 

String.Empty

 

'Showing the message on Result Panel.

lblMetricsInfo.Text =

 

"All timeliness metrics in days."

lblMetricsBusinessInfo.Text =

 

"For events not completed, today's date is assumed for calculating live metrics."

grdReportData.DataSource =

 

Nothing

ds =

 

Object.adonetsp(CType(rdpCreatedDate.SelectedDate, Date), CType(rdpEnddate.SelectedDate, Date), Nothing, "True", strerrorMessage)

 

'binding the metrics table

 

If Not ds Is Nothing Then

grdReportData.DataSource = ds

grdReportData.DataBind()

 

End If

 

End Sub

End

 

 

Class

Ves
Telerik team
 answered on 03 Sep 2012
0 answers
47 views
Hello,
I ve a listview with a datapager. 
Each item link to a page. How can I keep the page of the item when I click back (because now it only return to the first page... )
Blop
Top achievements
Rank 1
 asked on 03 Sep 2012
0 answers
67 views
hi ,

not sure if this is the right place to post this but i thought it might be useful for people , i implemented the custom Google Style filter , as per the example given , but i have found a way to extend it , so the filter options are based on the current visible results in the grid , i.e if you have allready put another filter in place , it limits the filter results in the other columns based on the results on the previous filters.

here is the code for it.
public class MyGenericFilter : GridBoundColumn
    {
 
        //RadGrid will call this method when it initializes the controls inside the filtering item cells
        protected override void SetupFilterControls(TableCell cell)
        {
            base.SetupFilterControls(cell);
            cell.Controls.RemoveAt(0);
            RadComboBox combo = new RadComboBox();
            combo.ID = ("RadComboBox1" + this.UniqueName);
            combo.ShowToggleImage = false;
            combo.Skin = "Office2007";
            combo.EnableLoadOnDemand = true;
            combo.AllowCustomText = true;
            combo.AutoPostBack = true;
            //combo.MarkFirstMatch = true;
            combo.Height = Unit.Pixel(100);
            combo.Width = Unit.Pixel(100);
            combo.ItemsRequested += this.list_ItemsRequested;
            combo.SelectedIndexChanged += this.list_SelectedIndexChanged;
            combo.DropDownWidth = Unit.Pixel(150);
            cell.Controls.AddAt(0, combo);
            //cell.Controls.RemoveAt(1);
        }
 
        //RadGrid will cal this method when the value should be set to the filtering input control(s)
        protected override void SetCurrentFilterValueToControl(TableCell cell)
        {
            base.SetCurrentFilterValueToControl(cell);
            RadComboBox combo = (RadComboBox)cell.Controls[0];
            if ((this.CurrentFilterValue != string.Empty))
            {
                combo.Text = this.CurrentFilterValue;
            }
        }
 
        //RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
        protected override string GetCurrentFilterValueFromControl(TableCell cell)
        {
            RadComboBox combo = (RadComboBox)cell.Controls[0];
            return combo.Text;
        }
 
        private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            ((RadComboBox)o).DataTextField = this.DataField;
            ((RadComboBox)o).DataValueField = this.DataField;
 
            RadGrid MyGrid = ((RadGrid)((RadComboBox)o).Parent.Parent.Parent.Parent.Parent.Parent);
 
            MyGrid.AllowPaging = false;
            MyGrid.Rebind();
 
            DataTable NewDT = new DataTable(this.DataField);
            NewDT.Columns.Add(new DataColumn(this.DataField));
 
            foreach (GridDataItem GD in MyGrid.Items)
            {
                if (GD[this.DataField].Text.Contains(e.Text) && GD[this.DataField].Text != " ")
                {
                    var foundAuthors = NewDT.Select(this.DataField + " = '" + GD[this.DataField].Text + "'");
                    if (foundAuthors.Length == 0)
                    {
                        DataRow DR = NewDT.NewRow();
                        DR[this.DataField] = GD[this.DataField].Text;
 
                        NewDT.Rows.Add(DR);
                    }
                }
            }
 
            MyGrid.AllowPaging = true;
            MyGrid.Rebind();
 
 
            NewDT.DefaultView.Sort = this.DataField + " ASC";
 
            ((RadComboBox)o).DataSource = NewDT;
            ((RadComboBox)o).DataBind();
        }
 
        private void list_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
            if ((this.UniqueName == "Index"))
            {
                //this is filtering for integer column type
                filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
            }
            //filtering for string column type
            filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
        }
    }

Peter
Top achievements
Rank 1
 asked on 03 Sep 2012
1 answer
74 views
Hi,
I am able to export the grid in HTML and PDF formats.However when I use

GridExcelExportFormat

 

.ExcelML format the excel opens and shows a message:

 

Problems During Load(see attached screenshot) .If I donot set the "UseAllDataFields" property of the MasterTableView,I do not get this message,but the excel is blank.Please help.


Thanks,
Asha
Andrey
Telerik team
 answered on 03 Sep 2012
2 answers
201 views
Hi,

I want to change the style of browse button of RadUpload. I want to change its background image and size. Please help me to achieve this.

Thanks in advance.
Sigma
Ivan Zhekov
Telerik team
 answered on 03 Sep 2012
1 answer
57 views

Hi,

I have a char bind from database and i want % sing with my chart result. Please see attachment for detail.
Petar Marchev
Telerik team
 answered on 03 Sep 2012
6 answers
381 views
Hello,

I have a scenario that requires me to change the image on a particular RadButton from javascript.  Is this possible?  It is easy to change the text using the "set_text" function but changing the Image doesn't seem to be possible directly using the api.

Any help would be appreciated.

Thanks,
Ben
Slav
Telerik team
 answered on 03 Sep 2012
0 answers
50 views
Hi!
I've a listview (with dropdownlists used as filters). Everything is working fine until SeoPaging is integrated.

First the "prev - next, ..." buttons dissapears (image not found logo replace the initial buttons images) even if I set : NextPageImageUrl="\Images\buttons\next.jpg" LastPageImageUrl="\Images\buttons\last.jpg"  in radatapager properties.


I tried doing that as explain in this forum: 
<script type="text/javascript">
function pageLoad() {
var pager = $find('<%=RadListView1.FindControl("RadDataPager1").ClientID %>').get_element();
$telerik.$(pager).find(".rdpWrap a img")[0].src = "PagingFirst.gif";
$telerik.$(pager).find(".rdpWrap a img")[1].src = "PagingPrev.gif";
$telerik.$(pager).find(".rdpWrap a img")[2].src = "PagingNext.gif";
$telerik.$(pager).find(".rdpWrap a img")[3].src = "PagingLast.gif";
}
</script>

But is says Cannot call method 'get_element' of null 
...


Second: When SeoPaging is enabled, I lost the filters on page change. For instance I have my listview with all data, when I apply a filter, it will do it correctly but when I click on page 2, it will go page 2 but all data will be back and the filter is forget...

Any idea how to solve this?

Thanx in advance
Blop
Top achievements
Rank 1
 asked on 03 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?