Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
I am new to using the chart control and I was wondering if there is a way to update the chart series values via the clientside API, like is available for the gauge?  I have looked around and not been able to find a reference to being able to do this but wonder if I am just missing it.  Thanks

James
Petar Marchev
Telerik team
 answered on 03 May 2013
6 answers
244 views

We have discovered a problem in RadGrid design-time support in the Q1 2013 SP1 release. When you customize RadGrid using designer, the control will generate ColumnSettings="(Collection)" in the markup which will cause an exception.

The solution is to simply remove the markup shown above which will allow you to use the designer again.


Please excuse us for any inconvenience caused.

Anna
Top achievements
Rank 1
 answered on 03 May 2013
1 answer
156 views
When radgrid uses

 

UseStaticHeaders="false"

 

 

and AllowColumnResize="true".
When grid load, display fine, when resize grid column to a larger width, then change browser size to smaller,
will get grid width overflow problem. See attached image.

Is there anyway to solve the problem.  - I need to trun UseStaticHeaders="false" and AllowColumnResize="true".

 

Eyup
Telerik team
 answered on 03 May 2013
0 answers
69 views

 if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {

                if (e.Item.OwnerTableView.IsItemInserted)
                {
                }
                else
                {
var WorkSp = (from a in db.dsworkdefinitions where a.Status != "DEl" select new { a.Workcode, a.Workname }).ToList();
                                Workdesc1.DataSource = WorkSp;
                                Workdesc1.DataValueField = "Workcode";
                                Workdesc1.DataTextField = "Workname";
                                Workdesc1.DataBind();
 
                                string md = Projtext[0].workspecific.ToString();
 
                                string[] Projid = md.Split(',');
 
                                for (int i = 0; i < Projid.Length; i++)
                                {
                                    string val = Projid[i].ToString();
                                    int m = 0;
 
                                    foreach (RadListBoxItem item1 in Workdesc1.Items)
                                    {
                                        string Md1 = Workdesc1.Items[m].Value;
                                        if (Md1 == val)
                                        {
                                            item1.Checked = true;
                                        }
                                        m++;
                                    }
                                }

                }

result value come on 5 rows but bind ten rows duplicate rows .
how i restrict that .
see the screen shot

thanks advance,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 03 May 2013
6 answers
234 views
I have a datagrid with hierarchical data that I want to populate not using the SqlDataSource reference but from the code behind cs.

I can populate the root data table but not sure how I go about populating the sub tables of the datagrid.

From aspx:

<telerik:RadGrid ID="rgrid_Data" runat="server" AllowPaging="True" AutoGenerateColumns="False" ShowGroupPanel="True" OnItemDataBound="rgrid_Data_ItemDataBound">                    
                    <MasterTableView AutoGenerateColumns="false">                                      
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="Month" DataField="item" UniqueName="item"></telerik:GridBoundColumn>
                    </Columns>                    
                    <DetailTables>
                    <telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="item" >
                    <ParentTableRelation>
                       <telerik:GridRelationFields DetailKeyField="StartMonth" MasterKeyField="item" />
                    </ParentTableRelation>
                    <Columns>
                                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName= "DeleteColumn"></telerik:GridButtonColumn>
                                <telerik:GridButtonColumn CommandName="Update" Text="Update" UniqueName= "UpdateColumn"></telerik:GridButtonColumn>
                                <telerik:GridBoundColumn HeaderText="ID" DataField="Id" UniqueName= "Id"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Start Date" DataField="StartDate" UniqueName= "StartDate"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Expiry Date" DataField="ExpiryDate" UniqueName= "ExpiryDate"></telerik:GridBoundColumn>                           
                            </Columns>
                    </telerik:GridTableView>                    
                    </DetailTables>                     
                    </MasterTableView>
                    
                </telerik:RadGrid>

So to populate the root dataset I've been using

this.rgrid_Data.DataSource = dataSet;
this.rgrid_Data.DataBind();

and in trying to populate the sub sections I've been going down the path

this.rgrid_Data.MasterTableView.DetailTables[0].DataSource = subDataSet;
this.rgrid_Data.MasterTableView.DetailTables[0].DataBind(); 

Any help, much appreciated.
Eyup
Telerik team
 answered on 03 May 2013
6 answers
262 views
Hi All,

On one of my pages I have a growing issue with performance.  The grid has 72K records and comes from an SQL data source.  I've done gotten rid of unneeded columns from the data and have reduced page size from 200 to 50 records.  These things have speeded it up slightly.

When I do a test and return the top 100 records from the datasource the grid is rendered much faster so the issue is certainly down to the IIS - SQL connection rather than the IIS to client side of it.

With that in mind I've looked at the options, I could build an elaborate mechanism for displaying the top 100 records then passing on any filters and sort order info that the user uses however that seems like a lot of custom work for one grid.  

Another option that seems to be open is using a LinqDataSource rather than a SQLDataSource. I've not used a LinqDataSource before and from my casual look at it just now can see that it will be a big change from where I am at.

1) Can I use a SP with LinqDataSource and still gain the paging benefits that it provides or does a SP essentially make a LinqDataSource run the same way that a SQLDataSource does?

2) Would I experience big improvements by using the LinqDataSource - is it worth the change?

Any advice would be very much appreciated.

Regards,

Jon
Doroteya
Telerik team
 answered on 03 May 2013
3 answers
62 views
asp.net controls have, and want to make a style menu window 8, is there a control to it or as we could make?
Iana Tsolova
Telerik team
 answered on 03 May 2013
3 answers
774 views
Hi, We've upgraded our application from RadControls ASP.net Q3 2012 to Q1 2013. We now have a problem with SelectedValue when binding data to the radCombobox. For some reason the SelectedValue isn't set to the first item added. It works fine using Q3 2012 so wondering if you've heard issues.

This issue is what we are experiencing

http://www.telerik.com/support/pits.aspx#/details/Issue=2147

Thanks
Eric

Plamen
Telerik team
 answered on 03 May 2013
5 answers
288 views
Hello,

I wrap some markup with a RadAjaxPanel.  I'm getting an error in a callback related to this, and I can't figure out why it's happening.  It's preventing the page from working, even though the debugger shows everything correctly setup.  So I was wondering: is there an event that fires when an error happens, so I know that it's an error that comes from the server, or is actually the error the debugger is telling me it is?  How can I potentially resolve where it may really be coming from?

Thanks.
Eyup
Telerik team
 answered on 03 May 2013
0 answers
107 views
hi ,

i have issue of print problem i am using a rad grid gvReportUnit and a print button
the grid is filled by run report button on click of print button the code is 

  btnRunReport_Click(null, null);
   RadAjaxPanel1.ResponseScripts.Add("PrintRadGrid('" + gvReportUnit.ClientID + "')");
       

and on aspx page

 function PrintRadGrid(radGridId) {
                var radGrid = $find(radGridId);
                var previewWnd = window.open('about:blank', '', '', false);
                var sh = '<%= ClientScript.GetWebResourceUrl(gvReportUnit.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",gvReportUnit.Skin)) %>';
                var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>";
                var htmlcontent = styleStr + "<body>" + radGrid.get_element().outerHTML + "</body></html>";
                previewWnd.document.open();
                previewWnd.document.write("<b><center>Custom Report</center></b>");
                previewWnd.document.write(htmlcontent);
                previewWnd.document.close();
                previewWnd.print();
                previewWnd.close();
            }
it is opening a new window for print instead of opening a new window it should open a print pop up in which grid data should be filled in print popup Pankaj

Pankaj
Top achievements
Rank 1
 asked on 03 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?