Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views

I would like to show the datatable to the user, by default it is positioned under the x axel.

Is there a way for me to position the table somewhere else?

If so, can I set different styles on the text depending on the value?

Evgenia
Telerik team
 answered on 20 Jun 2011
2 answers
131 views

HI,

I have used rad chart control in ascx control of sitefinity application.

For that i have added below code to the ascx control

<telerik:RadChart ID="RadChart2" runat="server">
    <Series>
        <telerik:ChartSeries>
            <Items>
                <telerik:ChartSeriesItem YValue="10" />
                <telerik:ChartSeriesItem YValue="15" />
            </Items>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>

 

and added below tags to the web.config file.

Below are added to the controls of pages tag.

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
<add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>

 

And the below tag has been added to httpHandlers section of system.web.
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

 

And another tag has been added to handlers section of system.webserver

<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

 

But I am getting the following exception when accessing the corresponding page.

“Error loading RadChart image.You may also wish to check the ASP.NET Trace for further details.Display stack trace?”

I am using iis 7.5.Please suggest me how to solve this issue.

 

 Thanks
Kiran G.

 

Bartholomeo Rocca
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
73 views
I've setup controls for selecting a color almost identical to the RadColorPicker first look demo. I would like to persist the list of most recent colors as the user chooses a different preset. Currently what happens, like the first look demo, is when the preset is changed then the list of most recent colors is cleared out. I could see someone spending time coming up with color swatches and then switching to view different presets and becoming frustrated when the lost the colors they had queued up in the most recent colors list. Is there any way I can accomplish this?
Slav
Telerik team
 answered on 20 Jun 2011
3 answers
117 views
Is it possible for the diff engine to see “this” and  &ldquo;this&rdquo; as the same text? There are instances where certain methods of uploading documents that may contain curly quotes or other symbols will be sanitized to things like &ldquo; and &rdquo;, since curly quotes can cause so many problems.

I attempted to look into the documentation (http://www.telerik.com/help/aspnet-ajax/n_telerik_web_ui_editor_diff.html) but it seemed a little lacking. See attached picture for clarification of what I mean.
Rumen
Telerik team
 answered on 20 Jun 2011
1 answer
109 views
Hi, 

I m getting following error since last couple of days, when I try to load the application.
For last 2 years there was no issue with data binding. But since last week we are having this issue. This error occurs suddenly with out any modification in application code. Data source also not empty. 
Could you please provide solution for this issue.

ASPX
<RAD:RADGRID ID="radGridReports" RUNAT="server"></RAD:RADGRID>

CS Code
if (!IsPostBack)
{
radGridReports.DataSource = Staff.GetAll();
radGridReports.DataBind();
}


ERROR:
System.ArgumentOutOfRangeException was unhandled by user code
  Message="Specified argument was out of the range of valid values.\r\nParameter name: index"
  Source="System.Web"
  ParamName="index"
  StackTrace:
       at System.Web.UI.ControlCollection.get_Item(Int32 index)
       at Telerik.WebControls.GridGroupPanel.get_MainTable()
       at Telerik.WebControls.GridGroupPanel.InitializeIn(RadGrid grid, Boolean FromViewState)
       at Telerik.WebControls.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
       at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
       at Telerik.WebControls.RadGrid.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
       at Telerik.WebControls.RadGrid.DataBind()
       at IRM.Authorised.AnalysisServices.Controls.FavoriteReports.ShowReports() in C:\CAMMS_Projects\Development 2.0.0.0\IRM_OnGoing\CAT.IRM.WebApplication\Authorised\AnalysisServices\Controls\FavoriteReports.ascx.cs:line 184
       at IRM.Authorised.AnalysisServices.Controls.FavoriteReports.Page_Load(Object sender, EventArgs e) in C:\CAMMS_Projects\Development 2.0.0.0\IRM_OnGoing\CAT.IRM.WebApplication\Authorised\AnalysisServices\Controls\FavoriteReports.ascx.cs:line 162
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Thanks and Best Regards,
Sampath Eleperuma
Sampath
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
228 views
I have a chart that is almost generating like I'd like it to. The only thing that is missing is the Labels for the Legend. I currently have the Legend set to display ItemLabels. I thought I set the item labels when I added the item, but apparently not. How do I go about setting these ItemLabels? Below is the code I'm using to build the Chart, and attached is an image of what the chart currently looks like.

reader.GetValue(2) will pull the label text from the database.

CODE
protected void makechart()
        {
            RadChart invChart = new RadChart();
            invChart.ChartTitle.Visible = false;
 
            // Create a ChartSeries and assign its name and chart type
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = "TotalValue";
            chartSeries.Type = ChartSeriesType.Pie;
 
            // Display Item Labels in the Legend
            chartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
             
            // Open SQL Connection
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand("GetInventoryValue", connection);
            command.CommandType = CommandType.StoredProcedure;
            SqlDataReader reader = command.ExecuteReader();
 
            while (reader.Read())
            {
                // Set value and value text
                chartSeries.AddItem((Double)(reader.GetValue(0)), reader.GetValue(0).ToString());
            }
 
            // Close SQL Connection
            connection.Close();
 
            // add the series to the RadChart Series collection
            invChart.Series.Add(chartSeries);
            // add the RadChart to the page.
            this.invChart.Controls.Add(invChart);
        }
    }
HrMeibom
Top achievements
Rank 2
Iron
 answered on 20 Jun 2011
5 answers
72 views
Hi

I have a ComboBox that I am using in a Filter Template.

I get the selection event in my javascript block and can apply the filter.

However I cann't return to an unfiltered state.

I notice that even though I get the event, with the correct item the text in the
combo always revert to 'All', my unfiltered state.

So I never get a client side notification that will allow me to set NoFilter.

Help!!!!!! 
Dimitar Terziev
Telerik team
 answered on 20 Jun 2011
7 answers
515 views
Hi,

I have a master/detail grid and I want to loop through all the items. Problem is I just cant seem to get to the detail items.
Somewhere I am missing something.

The reason I want to do this is that each detail row has two RadButton objects that are configured as radio buttons.
I want to persist their values client-side and I have already written the code to update the javascript array when a selection is changed.
I just need to be able to read the value back from the array and set them on the rows controls.

Note: I was able to do this successfully using the grid's onRowCreated event, but then it only works the first time it loads.
After an ajax update it wont find the controls in the rows again using args.get_item().findControl()

Any help would be appreciated thanks.


function onGridCreated(sender, args) {
                alert("onGridCreated");
 
 
                var masterTable = sender.get_masterTableView();
                //alert(masterTable.get_dataItems().length);
 
                var i = 0;
                 
                var rows = masterTable.get_dataItems();
 
                for (var i = 0; i < rows.length; i++) {
 
                     
                    for (var j = 0; j < i.rows; j++) {
 
                        var btnIsDualListedYes = args.get_item().findControl("btnIsDualListedYes");
                        var btnIsDualListedNo = args.get_item().findControl("btnIsDualListedNo");
 
                        if (btnIsDualListedYes != null && btnIsDualListedNo != null) {
                            var intrumentMasterID = btnIsDualListedYes.get_groupName();
 
                            if (dualListedSelection[id]) {
                                alert("Dual Listed " + id + " True");
 
                                btnIsDualListedYes.set_checked(true);
                                btnIsDualListedNo.set_checked(false);
                            }
                            else {
                                alert("Dual Listed " + id + " False");
                                btnIsDualListedYes.set_checked(false);
                                btnIsDualListedNo.set_checked(true);
                            }
                        } else {
                            alert("btnIsDualListedYes and btnIsDualListedNo is NULL");
                        }
 
//                    }
 
                }
Konrad
Top achievements
Rank 1
 answered on 20 Jun 2011
5 answers
138 views
I have a page that has a RadFormDecorator on it which is decorating CheckBoxes.  I also have a RadComboBox on the page where I am putting CheckBoxes in the ItemTemplate.  When the page renders the CheckBoxes are not visible.  If I turn off the CheckBox decoration in the RadFormDecorator they appear.

<rad:RadFormDecorator ID="RadFormDecorator1" runat="server" DecorationZoneID="BodyContents" DecoratedControls="Buttons, CheckBoxes, RadioButtons" /> 
 
<rad:RadComboBox ID="rcbTradeStatus" runat="server" DataValueField="pkTradeStatus" DataTextField="sStatusDesc" Width="300px" HighlightTemplatedItems="true" AllowCustomText="true">  
    <ItemTemplate> 
        <asp:CheckBox ID="cbTradeStatus" runat="server" TextAlign="Right" Text='<%# Eval("sStatusDesc") %>' />   
    </ItemTemplate> 
</rad:RadComboBox> 
Dimitar Terziev
Telerik team
 answered on 20 Jun 2011
1 answer
113 views
I am using telerik RadGrid.

Here I am having around thousands of records(rows) in my grid. I have my pagesize of 10 records per page. Now when i am using 'Show all results', all the records are getting populated on single page. So, now I am having vertical scroll bar to scroll down.

Now here the issue is, when I am scrolling down to any record and the selecting that row(say 50th) then my grid is again getting scrolled up to first record. Though that 50th record is selected when i am again scrolling down.

So, is there any option to stop this kind of automatic scrolling up when clicking on any row?

Thanks in advance...
Pavlina
Telerik team
 answered on 20 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?