Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
90 views
I have a radchart nested inside a datalist in my aspx page. The radchart properties and plot area is set inside datalist itemdatabound event.

The problem is that even though zoom is enabled for rad chart, zooming the chart doesn't reset the chart as per client selection while this control is inside a data list.

Please give a workaround for this issue.
Stamo Gochev
Telerik team
 answered on 10 Jul 2014
8 answers
1.8K+ views
Hello,

I would need some clarification on state preservation of the RadGrid

As indicated here the grid should preserve grouping when view state is enable.

I use the last release a simple grid with a dummy data-source taken from Persist Groups Expanded State on Rebind sample.

<telerik:RadGrid ID="RadGrid1" runat="server"   
    AllowSorting="true" ShowGroupPanel="True"                 
    OnNeedDataSource="RadGrid1_NeedDataSource" 
   AllowMultiRowSelection="false" 
   Skin="Vista" 
    > 
    <ClientSettings AllowDragToGroup="True" EnablePostBackOnRowClick="true">  
    </ClientSettings> 
    <MasterTableView GroupLoadMode="Server" > 
        <GroupByExpressions> 
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="Group" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="Group" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression> 
        </GroupByExpressions> 
    </MasterTableView> 
</telerik:RadGrid> 
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> 

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
 
        DataTable tbl = new DataTable();  
        DataColumn col = new DataColumn("ID");  
        col.DataType = typeof(int);  
        tbl.Columns.Add(col);  
        col = new DataColumn("Name");  
        col.DataType = typeof(string);  
        tbl.Columns.Add(col);  
        col = new DataColumn("Group");  
        col.DataType = typeof(string);  
        tbl.Columns.Add(col);  
 
        int size = 15;  
        int maxLen = size.ToString().Length;  
        for (int i = 1; i <= size; i++)  
        {  
            tbl.Rows.Add(new object[] { i, "Name" + i.ToString("D" + maxLen), "Group" + i % 5 });  
        }  
        RadGrid1.DataSource = tbl;  
    }  
 
    protected void Button1_Click(object sender, EventArgs e)  
    {  
       /*RadGrid1.Rebind();*/ 
    } 

Then
- with grouping (server side) the postback button will keep state as Rebind command has been commented out, but if Rebind command is activated the collapsed section information get lost
- with grouping ( still server side ) acting on the sorting reset the collapsed section as well.
- with grouping (client side) selected row and collapsed area are lost as well.

On key Feature page the #19 provide us the following : "an unique feature of Telerik RadGrid is the ability to preserve its appearance, group-by state, sorting, current page, edit or selected state, and resizing after postbacks"

Some links concerning previous built are available like Client-Side Row Selection Persisted With Paging, Persist Groups Expanded State on Rebind  .. but don't know if they are still valuable for the last release.

Could someone clarify the situation on what is available / built-in and what should be done manually or not, in order to preserve ALL state, in case of server side and client side usage. ( a kind of matrix would be fine ... plus some links on how to do stuff manually, pointing to avaliable threads like the two above.) A grid demo including all available stuff would be nice as well.

Many thanks in advance for your time.
Maria Ilieva
Telerik team
 answered on 10 Jul 2014
3 answers
72 views
Just an FYI.

It appears the search is busted in this forum. No matter what keyword I enter it still comes back saying not found.

Thanks,
Erik
Kristina
Telerik team
 answered on 10 Jul 2014
4 answers
165 views
Is there something going on with the UI for ASP.NET AJAX Forums?  Every time I try and search I get not results were found.  I've tried multiple times on different controls and a full search and get the same result.
Kristina
Telerik team
 answered on 10 Jul 2014
4 answers
751 views

 

I want to Copy the selected rows from one grid to another.

I used the following code but the data not getting bind in to the second grid.

Dim
selItems As GridItemCollection = grdResult.SelectedItems
RADGrid1.DataSource = selItems  

RADGrid1.DataBind()

 

 

 

 

Eyup
Telerik team
 answered on 10 Jul 2014
2 answers
92 views
I searched this forum for "fullsceen" "toggle" and "full screen" and get

"nothing matches your search criteria"

even after I made a post entitled "toggle full screen"

LOL

why can't developers ever make a forum search that works?

I am assuming there are other posts in here about toggling the rad editor to full screen mode, but I don't have all day to manually eyeball each post
Kristina
Telerik team
 answered on 10 Jul 2014
1 answer
332 views
Hi there,

Are the new options for responsive design taken into consideration in the demo

http://demos.telerik.com/aspnet-ajax/ecommercestore

That would be great to show the features and for us to have a starting point for development.

Can you let me know?

Marc
Fit2Page
Marin Bratanov
Telerik team
 answered on 10 Jul 2014
1 answer
188 views
I try delete a image when i use RadGrid1_DeleteCommand
I get the delete id using:
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim DeleteId As Integer = item("id").Text
Dim DeleteImage As String = item("filnamn").Text


But i dont get the name of the file: item("filnamn").Text
If File.Exists(Server.MapPath("~/bulletinboard/images/") & DeleteImage) = True Then
    File.Delete(Server.MapPath("~/bulletinboard/images/") & DeleteImage)
End If

Whot do i wrong?
Princy
Top achievements
Rank 2
 answered on 10 Jul 2014
9 answers
882 views
Hi,

I am trying to use the sample code of the HtmlChart \ Client Templates demo (url below) because I want to populate some data description on the tool tip. However I am getting the following error message when I run the project:

Microsoft JScript runtime error: Expected '}'

http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/clienttemplates/defaultvb.aspx 

You may be able to reproduce the error using the demo sample code exactly as is.

I am using Windows 7, Visual Studio 2010, Telerik RadControls for ASP.NET AJAX Q3 2012  (lastest version), VB.NET


Thanks,

Sigi Perez
Marin Bratanov
Telerik team
 answered on 10 Jul 2014
1 answer
259 views
I have 2 html charts side by side with same x-axis and y-axis , I would like to single legend instead of 2.

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart2" Width="300" Height="200">
                    <Legend>
                        <Appearance Position="Right"  >                           
                            <TextStyle FontSize="12"   Color="Blue" FontFamily="Courier New, sans-serif" />
                        </Appearance>                        
                    </Legend>

Anyway to remove links (clicking on one legend will highlight the first one and hide the second.) Please let me know. I wanted to show the legend but just remove the linking, just need a static text with colors next to it.
Marin Bratanov
Telerik team
 answered on 10 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?