Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
531 views
Hello,

Telerik radgrid is failling to import excel with 20000 thousand record.

can you please give me little demo or example or code for IMPORT Excel TO RADGRID 

Thanks in advance

Amit
Amit
Top achievements
Rank 1
 answered on 11 Dec 2012
2 answers
201 views
Hi,

I have a RadGrid with a Template column which has a checkbox in the header and a checkbox in the Item area.



Here's the Form Decorator in the Master Page:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server"  Skin="Metro" DecoratedControls="Default" ControlsToSkip="Buttons" />


<
telerik:GridTemplateColumn UniqueName="TemplateSelect">
    <ItemTemplate>
        <asp:CheckBox ID="chkSelected" runat="server" OnCheckedChanged="RowCheckedChanged" />
    </ItemTemplate>
 
    <HeaderTemplate>
        <asp:CheckBox ID="CheckBoxHeader" runat="server" OnCheckedChanged="CheckBoxHeader_CheckedChanged" />
    </HeaderTemplate>
</telerik:GridTemplateColumn>


When I enable the FormDecorator, if I try to click on the Checkboxes (chkSelected) the Checkboxes are not selectable
but if I disable the form decorator everything works fine, I noticed that this only happens in the Checkbox
that is inside the <ItemTemplate> but not with the one that's inside the <HeaderTemplate>

Is there a fix or workaround to this issue?

Thank you.
Danail Vasilev
Telerik team
 answered on 11 Dec 2012
1 answer
98 views
I have TreeListTemplateColumn column in my treelist. I would like to show dynamic tooltip when the user hover the template column. For example, I have 2 progress bar within my template column. I would like to show different tooltip for each progress bar depending on data on that row.

Is there an event on client or server side to faciliate this?
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
1 answer
58 views
Hi,
 We have an application that's been in production for over a year. Basically, it manages open tickets.
 Apparently this is the first time we've had more than 20 open tickets where tickets appearing on the 2nd page had child tickets.

The problem is that - when the page is changed the Self Hierarchy breaks down and the grid does not recognize a ticket as a parent ticket, and therefore it's child tickets are unavailable.

I use a recursive function that is passed a GridTableView that grabs an array of nestedVieItems and determines whether they have any children, and if so it will add the button to allow them to be visible and it changes the styling.

basically the problem is that the MasterTableView does not contain nestedviewitems for items that aren't on the first page.
If I set the PageSize = aNumber > numberOfTickets, then everything works as expected, its when the pagesize is set to a number less than the number of tickets and a ticket on the second page has children, that we have an issue.

Oh - and if I change the code to have the expand/collapse button always visible, when I click it next to an item on the 2nd page that I know has children - it says: "No child records to display". So I guess the issue isn't with either of the 2 below subroutines, its that the RadGrid doesn't think that any of my items on a Page that is not the first page has any children.

Below is the code i use to hide/show the ExpandCollapse button and set the style of the row.

public void Page_PreRenderComplete(object sender, EventArgs e)
{
      
    if(btnToggleHierarchy.Checked)
        HideExpandColumnRecursive(RadGrid1.MasterTableView);
       
}
/// <summary>
/// Create buttons on items that have children
/// </summary>
/// <param name="tableView"></param>
public void HideExpandColumnRecursive(GridTableView tableView)
{
    GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
    {
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
        {
            nestedView.Style["border"] = "0";
            Button MyExpandCollapseButton = (Button)nestedView.ParentItem.FindControl("MyExpandCollapseButton");
            if (nestedView.Items.Count == 0)
            {
                if (MyExpandCollapseButton != null)
                {
                    MyExpandCollapseButton.Style["visibility"] = "hidden";
                    ((TableCell)MyExpandCollapseButton.Parent).BackColor = System.Drawing.Color.White;
                }
                nestedViewItem.Visible = false;
            }
            else
            {
                if (MyExpandCollapseButton != null)
                {
                    //Only set the background if we are the Highest Parent... otherwise leave it to the
                    //alternating styles
                    if (nestedView.ParentItem.OwnerTableView == RadGrid1.MasterTableView)
                        ((TableCell)MyExpandCollapseButton.Parent).CssClass = "ExpandCollapseBackground" ;
                      
                    MyExpandCollapseButton.Style.Remove("visibility");
                }
            }
            if (nestedView.HasDetailTables)
            {
                HideExpandColumnRecursive(nestedView);
            }
        }
    }
}
Kostadin
Telerik team
 answered on 11 Dec 2012
1 answer
71 views
Hi,

I'm trying to use the Scheduler control using a database as appointments storage.
I followed the steps to add the control, add a data-source and connect them. 
The control appears in the website and the data entered by hand in the data-source
also appears in the web page. Moving around (week-view, day view and so on) is OK,
but I cannot interact with the control when trying to add / insert / edit. The allow insert
is enabled. Nothing is changed from the default properties. 

Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
124 views
I am populating my scheduler with appointments pulled from a database and bound server-side.  I would like to be able to filter my data-set based on when the user changes views or current day, month, etc.  However, I need the aforementioned java-script event to fire in order to do so.  Why doesn't this event fire when using server-side data binding, and is there a workaround?
Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
44 views
Dear Teleric team,

i found a bug and i think is in all Telerik controls.
If you have a EmptyMessage and you try to edit it, it is not updated.
From client side, the property EmptyMessage is updated but the EmptyMessageTemplate is not.

Thank you for your time.

Best regards,
George.
Kalina
Telerik team
 answered on 11 Dec 2012
11 answers
284 views
I have a treeview, and node expand is handled by server side callback (on demand), which works fine.  What I want to is expand the same node repeatedly with the server side callback, based on some ajax server side events from a different panel.

I have an ajax panel next to the tree view with buttons to add new things to the folders (nodes), which needs to change the contents of a node on the tree. 

Seems if I could add a client side function to force a node to clear children then call server side load on demand, I could call that from ajax1.ResponseScripts.Add(...) repeatedly.

Is this possible?  Thanks.
Nicolaï
Top achievements
Rank 2
 answered on 11 Dec 2012
3 answers
102 views
HI,
I am binding the radgrid using the session variable. The session variable is getting data from a datatable.

Session["GridData"] = datatablevalue ; 
 RadGrid1.DataSource = Session["GridData"];

In the insertcommand, i want to insert the new values to the existing session variable.

How to achieve this?
Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
1 answer
245 views
I want to create a tool bar with the 600px width and also want to break in when its reach the 600px width into the second line.

is it possible creating this with the RadToolbar control ?

If possible then please help me as soon as possible
Princy
Top achievements
Rank 2
 answered on 11 Dec 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
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
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?