Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
332 views
Hi,
I had a requirement that, individual users need to save their Grid's state into a database.
i.e, what ever user changes the grid, ie., resizing the column width, reording the columns, sorting, filtering, page size etc need to be presisest.

When user relogins and click's a button called "Restore Last View", the previous gird's state need to restored from the database.

Any helps on this will be highly appreciated.

Regards,
Suresh Kumar Udatha.
July
Top achievements
Rank 2
 answered on 04 Nov 2011
2 answers
101 views
Hi 

I am exporting Grid data to Excel , Grid columns have some styles.

Is it possible to Export Grid data with Styles to Excel?

can anyone please help me

Regards
Kiran
kiran
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
88 views
Hi

I'm using the RadWindow to handle a resizeable dialog. The dialog should contain two areas/rows:
- edits on the top - resizeable with the window
- validation & buttons on the bottom - area is always visible (the validation summary is only visible, if an validation error was found)

Is there any solution to reduce the scrollbars only to the editing area and not to the entire window content?

Cheers,
Jani
Kevin
Top achievements
Rank 2
 answered on 04 Nov 2011
4 answers
123 views
Hi,
scenario:
let's say that I have one RadComboBox (RCB) populated with 10 items (Item1 to Item10) and one RadListBox (RLB) populated with same items. When selecting one item in RCB (AutoPostBack = true) I want that selected value should be selected in RLB and also visualized in RLB:s display area (height set to x px = shows four items). I have succeeded to make the searched item selected in RLB but if I for example searched for Item6 (sorted default 1 to 10) selected item will not be seen in RLB:s view area, it is selected but I need to scroll down to Item6 in RLB to see it. How to get Item6 both selected and seen in RLB:s view area? It's not ok to set index = 0 for Item6 so that it will be seen first in RLB:s list/view area, items needs to be sorted/seen in same order as default (Item1 to Item10).

Rgds,
Jesper
Jesper
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
272 views
I can't change the grid line color. I've tried:
<ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="25px" BackColor="Red" Font-Bold="True" />

But it doesn't change the grid line.

The column type is: telerik:GridBoundColumn

What am I missing?

John
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Nov 2011
4 answers
431 views

Hi,

I need to get a transparent background for the template items (Container & Page) and delete the border.

What should I do?

Thanks.

Runat="Server"
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
98 views

Hi,
I'm using a RadTextBox like so :
HTML:
<div class="MyClass">
<telerik:RadTextBox ID="txtCloseDateWeeks" runat="server"/>
</div>

CSS:
.MyClass span input
    {width:200px !important;}

I need to use this css structure for other controls within my divs, including making the radComboBoxes the same size as the RadTextBoxes.

As you probably know, when the  RadTextBox is rendered, it appears in the HTML as :

<span class="RadInput RadInput_Outlook" id="ctl00_ctl00_txtCloseDateWeeks_wrapper" style="white-space: nowrap;">
    <input name="ctl00_ctl00_txtCloseDateWeeks_text" class="riTextBox riEnabled" id="ctl00_ctl00_txtCloseDateWeeks_text" style="width: 125px;" type="text" size="20" _events="[object Object]" value="1"/>
    <input name="ctl00$ctl00$txtCloseDateWeeks" title="" class="rdfd_" id="ctl00_ctl00_txtCloseDateWeeks" style="width: 1px; height: 1px; overflow: hidden; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: -18px; margin-right: 0px; margin-bottom: 0px; margin-left: -1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; visibility: hidden;" type="text" control="[object Object]" value="1"/>
    <input name="ctl00_ctl00_txtCloseDateWeeks_ClientState" id="ctl00_ctl00_txtCloseDateWeeks_ClientState" type="hidden" autocomplete="off"/>

The 1st <Input> tag seems to be the control on the page which correctly has a width of 200px

The 2nd <Input> tag is where the problem lies. This is also 200px (because of the CSS) but even though
 overflow: hidden; visibility: hidden;
it still renders on the page - I can't see it until I analyse with a HTML viewer, but it's being rendered to the right of the textbox and pushing my <div> out by another 200px which of course totally screws up the rest of the layout.

The 3rd <Input> tag doesn't show on the page and has a property type="hidden"  This might be why.

In the attached image - you can see the blue line of the 2nd <input> tag

Help me, please !!!!!!
Corina
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
123 views
Hi Team,
I am working with Line chart and I got unexpected output.


Please find the actual output of the chart in the image 
LineChartImage_Actual.jpg. In that, the "Custom" value starts at 5:00 AM and Ends at 6:00 AM.  And "MyFiles" starts at 9:00 AM and ends at 9:30 AM.  Again "Custom" starts at 9:30 AM and Ends at 10:00 AM.

I want to join the point mark of "MyFiles" at 9:30 AM and the point mark of "Custom" at 9:30 AM. And in the same way join the point mark of "Custom" at 10:00 AM and point mark of "Music" at 10:00 AM as these are adjacent point Marks in order to show a series of activities done as shown in the LineChartImage_Expected.jpg.

Please help to achieve my above requirement. Else advise me to use the relevant chart. Thanks in advance.
The code which i used is given below.

Aspx:
<telerik:RadChart ID="radLineChart" runat="server" Width="1200" Height="800px"
                                            Margins-Left="10px" ChartImageFormat="Jpeg" Margins-Right="10px" UseSession="false">
                                            <Appearance BarWidthPercent="50">
                                                <FillStyle MainColor="52, 52, 52">
                                                </FillStyle>
                                            </Appearance>
                                            <ChartTitle Visible="false">
                                                <TextBlock Text="Habit report">
                                                </TextBlock>
                                            </ChartTitle>
                                            <Legend Visible="False"></Legend>
                                            <PlotArea>
                                                <Appearance Dimensions-Margins="20px, 10px, 90px, 150px">
                                                    <FillStyle MainColor="52, 52, 52">
                                                    </FillStyle>
                                                </Appearance>
                                                <XAxis Appearance-LabelAppearance-RotationAngle="45" LayoutMode="Between" AxisLabel-TextBlock-Appearance-Position-AlignedPosition="BottomLeft">
                                                </XAxis>
                                            </PlotArea>
                                        </telerik:RadChart>

Cs :
                        radLineChart.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortTime;
                        //radLineChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 90;

                        ChartSeries series = new ChartSeries();
                        series.Type = ChartSeriesType.Line;
                        series.DataYColumn = "AppGroupId";
                        series.DataXColumn = "Time";

                        radLineChart.Series.Add(series);

                        radLineChart.PlotArea.XAxis.IsZeroBased = false;
                        radLineChart.PlotArea.XAxis.AutoScale = false;
                        //radLineChart.PlotArea.YAxis.IsZeroBased = false;
                        radLineChart.PlotArea.YAxis.AutoScale = false;

                        const double hourStep = 1 / 24.0;
                        double startTime = timeValue.AddHours(0).ToOADate();
                        double endTime = timeValue.AddHours(23).ToOADate();
                        radLineChart.PlotArea.XAxis.AddRange(startTime, endTime, hourStep);

                        ChartAxisItem cai_0 = new ChartAxisItem();
                        cai_0.TextBlock.Text = "Idle";
                        cai_0.Value = 0;
                        cai_0.TextBlock.Appearance.AutoTextWrap = AutoTextWrap.True;
                        radLineChart.PlotArea.YAxis.Items.Add(cai_0);

                        int i = 0;
                        for (i = 0; i < ds.Tables[1].Rows.Count; i++)
                        {
                            ChartAxisItem cai = new ChartAxisItem();
                            cai.TextBlock.Text = ds.Tables[1].Rows[i]["Name"].ToString();
                            cai.Value = Convert.ToInt32(ds.Tables[1].Rows[i]["AppRowId"]);
                            cai.TextBlock.Appearance.AutoTextWrap = AutoTextWrap.True;
                            radLineChart.PlotArea.YAxis.Items.Add(cai);
                        }

                        radLineChart.Series[0].Appearance.LabelAppearance.Visible = false;
                        //radLineChart.Series[0].Appearance.PointMark.Dimensions.Width = 5;
                        radLineChart.Series[0].Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(234, 84, 134);

                        // visually enhance the data points
                        radLineChart.Series[0].Appearance.PointMark.Dimensions.Width = 5;
                        radLineChart.Series[0].Appearance.PointMark.Dimensions.Height = 5;
                        radLineChart.Series[0].Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Black;
                        radLineChart.Series[0].Appearance.PointMark.Visible = true;

                        radLineChart.DataSource = FormattedRawData(ds.Tables[0], ds.Tables[1]);//, list);
                        radLineChart.DataBind();

                        radLineChart.Visible = true;
                        lblTitle.Visible = true;
                        lblTitle.Text = _reportTitle + " for " + txtStartDate.SelectedDate.Value.ToString("yyyy-MM-dd");


dhamo
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
93 views

Hello I have a rad Grid with Edit template : 



On UpdateButton click , button cause full post back and fires validation on page .. my grid is in Update Panel.

How can I sent to server side only grid when I press Update Button
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Nov 2011
1 answer
101 views
Hi,

I have read your threads and have followed the direction in regards to getting the Telerik Chart to render in a SharePoint 2010 Web Part.  Quick question, if there is no data in the Chart it should display right?

Here is what I have done so far.

1. Added the chart to a SharePoint visual web part
2. Added the following safe controls to the web.config.
          <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Charting" TypeName="*" Safe="True" SafeAgainstScript="False" />
3. Added the following httphandler to the <system.web><httpHandlers>
          <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
4. Set the UseSession to false as well as set the TempImagesFolder

        <telerik:RadChart ID="RadChart1" runat="server"

 

 

 

        TempImagesFolder="~/_Layouts/TelericChartsTemp" UseSession="False"

 

 

 

        DataSourceID="XmlDataSource1">

5. Gave write permission to the application pool account to the /_Layouts/TelericChartsTemp folder
6. Deployed the solution but see the web part with a red X
7. I have also validated that the images are being copied to the /_Layouts/TelericChartsTemp folder

I am obviously missing something that is simple.  Please help.

Regards,

Maui

 

 

 

 

Giuseppe
Telerik team
 answered on 04 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?