Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
336 views

We identified several issues with our new Upgrade Wizard shortly after our Q2 2011 release.

The following circumstances are known to cause issues when using the Upgrade Wizard:

  • Having any invalid references in your project (marked with a warning sign in Visual Studio)
  • Having COM references in your project
  • Holding a project reference to a project which has not yet been built
  • Holding a project reference to a project whose output assembly name differs from the project's name

All of the above issues have already been addressed and an update has been released through the Visual Studio Online Gallery:
Telerik WebUI VSExtensions

You should be able to use the Visual Studio 2010 Extension Manager to download the update.


In case you are using Visual Studio 2008 and cannot get updates through the Visual Studio Online Gallery, you will be able to benefit the update when our next Service Pack release.

Best regards,
The Telerik Team

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Jul 2011
10 answers
1.1K+ views
I have a grid that contains a detail table for each record. Inside the detail table I have two commands. I handle the 

ItemCommand event, in which I execute a stored procedure depending on the command name and argument. So far so good. The issue is I can't seem to find a way to rebind the detail table, so when the page refreshes for the user they see the results. I have tried various things, but none seem to work. If I click refresh on the detail table then the detail table collapses. (Note: I need to try as hard as possible to do this via a stored procedure - there is auditing code, etc. inside of it).

Any help would be greatly appriciated.

Thanks,
Kent

        switch (e.CommandName)  
        {  
            case "terminate" :  
                db = new CasprDataContext();  
                mgrRoleID = int.Parse(e.CommandArgument.ToString());  
 
                //TEST ONE:  
                //mgrRole = db.EICPMgrRoles.Single(mr => mr.MgrRoleGID == mgrRoleID);  
                //mgrRole.RoleEndDate = DateTime.Now;  
                //db.SubmitChanges();  
 
                //TEST TWO (preferred):  
                //execute stored procedure  
                db.sp_UpdateManagerRole_End(mgrRoleID);  
 
                //TEST TWO-A:  
                //Rebind the details table  
                //dataItem.DataBind();  
 
                //TEST TWO-B:  
                managersGrid.MasterTableView.DetailTables[0].Rebind();  
                break;  
            case "restore" :  
                db = new CasprDataContext();  
                mgrRoleID = int.Parse(e.CommandArgument.ToString());  
 
                //TEST ONE:  
                //mgrRole = db.EICPMgrRoles.Single(mr => mr.MgrRoleGID == mgrRoleID);  
                //mgrRole.RoleEndDate = null;  
                //db.SubmitChanges();  
 
                //TEST TWO (preferred):  
                //execute stored procedure  
                db.sp_UpdateManagerRole_Restore(mgrRoleID);  
 
                //TEST TWO-A:  
                //Rebind the details table  
                //dataItem.DataBind();  
 
                //TEST TWO-B:  
                managersGrid.MasterTableView.DetailTables[0].Rebind();  
                break;  
        } 

<DetailTables> 
            <telerik:GridTableView DataKeyNames="MgrFID" DataSourceID="managerRolesDataSource" AllowFilteringByColumn="false" CommandItemDisplay="Bottom" EditFormSettings-ColumnNumber="2">  
                <ParentTableRelation> 
                    <telerik:GridRelationFields MasterKeyField="MgrGID" DetailKeyField="MgrFID" /> 
                </ParentTableRelation> 
                 <Columns> 
                    <telerik:GridBoundColumn DataField="MgrRoleGID" DataType="System.Int32"  ReadOnly="true" Visible="false" 
                        HeaderText="MgrRoleGID" SortExpression="MgrRoleGID" UniqueName="MgrRoleGID">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="MgrFID" DataType="System.Int32" Visible="false"   
                        HeaderText="MgrFID" ReadOnly="True" SortExpression="MgrFID" UniqueName="MgrFID">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridDropDownColumn DataField="RoleFID" DataType="System.Int32"   
                        DataSourceID="rolesDataSource" ListTextField="RoleDesc" ListValueField="RoleGID" 
                        HeaderText="Role" SortExpression="RoleFID"   
                        UniqueName="RoleFID">  
                        </telerik:GridDropDownColumn> 
                    <telerik:GridDropDownColumn DataField="RegionFID" DataType="System.Int32" EditFormColumnIndex="1" 
                        DataSourceID="regionsDataSource" ListTextField="RegionDesc" ListValueField="RegionGID" 
                        HeaderText="Region" SortExpression="RegionFID"   
                        UniqueName="RegionFID">  
                    </telerik:GridDropDownColumn> 
                    <telerik:GridBoundColumn DataField="RoleStartDate" DataType="System.DateTime"   
                        HeaderText="Start Date" SortExpression="RoleStartDate" ReadOnly="true" 
                        UniqueName="RoleStartDate">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="RoleEndDate" DataType="System.DateTime"  ReadOnly="true" 
                        HeaderText="End Date" SortExpression="RoleEndDate" UniqueName="RoleEndDate">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridTemplateColumn UniqueName="actions">  
                        <ItemTemplate> 
                            <asp:LinkButton runat="server" CommandName="terminate" CommandArgument='<%# Eval("MgrRoleGID") %>' Visible='<%# Eval("RoleEndDate") == null ? true : false %>'>Terminate</asp:LinkButton> 
                            <asp:LinkButton runat="server" CommandName="restore" CommandArgument='<%# Eval("MgrRoleGID") %>' Visible='<%# Eval("RoleEndDate") == null ? false : true %>'>Restore</asp:LinkButton> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </telerik:GridTableView> 
        </DetailTables> 

<asp:LinqDataSource ID="managersDataSource" runat="server"   
    ContextTypeName="Caspr.CasprDataContext" OrderBy="MgrLastName, MgrFirstName"   
    TableName="EICPMgrs" EnableInsert="True" EnableUpdate="True">  
</asp:LinqDataSource> 
<asp:LinqDataSource ID="managerRolesDataSource" runat="server"   
    ContextTypeName="Caspr.CasprDataContext" TableName="EICPMgrRoles"   
    Where="MgrFID == @MgrFID" EnableInsert="True"   
    oninserting="managerRolesDataSource_Inserting">  
    <WhereParameters> 
        <asp:SessionParameter Name="MgrFID" Type="Int32" SessionField="MgrFID" DefaultValue="0" /> 
    </WhereParameters> 
</asp:LinqDataSource> 
<asp:LinqDataSource ID="rolesDataSource" runat="server"   
    ContextTypeName="Caspr.CasprDataContext" OrderBy="RoleDesc"   
    Select="new (RoleDesc, RoleGID)" TableName="EICPRoles">  
</asp:LinqDataSource> 
<asp:LinqDataSource ID="regionsDataSource" runat="server"   
    ContextTypeName="Caspr.CasprDataContext" OrderBy="RegionDesc"   
    Select="new (RegionGID, RegionDesc)" TableName="EICPRegions">  
</asp:LinqDataSource> 
 
Sebastian
Telerik team
 answered on 21 Jul 2011
2 answers
112 views

Hi ,
can we add client side operation on grid as i want the following functionality in grid

can we add empty rows at client side ?
can we add news rows at client side  Programatically ?
Can we update existing row in clietn side Programatically ?
can we delete row at clietn sidte programatically ?

can user add news rows at client so that user could add data himself manually in row from UI  ?
can user update a row at client side manually from UI ?

after performing these operations on client side we want to process final data in grid on server.

if thsee functionalites are there in telerik grid or we can add them then pleae provide a sample application.
hafizmsuleman@gmail.com
Top achievements
Rank 1
 answered on 21 Jul 2011
8 answers
201 views
I've got a radconfirm being displayed by the OnClientClick event of a LinkButton.  The callback gets initiated by "OK", "Cancel", and the window close on Firefox, but IE8 only fires it when I close the dailog box ("OK" and "Cancel" do nothing).  We haven't updated our control set since Q2 2009, so I wonder if this was a bug that one of the later version introduced?

I'm using Telerik RadControls for ASP.NET AJAX 2010.2.929.35 under the .NET 3.5 framework.
Dominic
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
96 views
Where I can find an example of n-layered application using RadGrid? Better in a ddd architecture using entity framework and poco or ste entity? Thanks.
Iana Tsolova
Telerik team
 answered on 21 Jul 2011
1 answer
111 views
I want to call a function from the aspx.cs file every time a row in the treeList is selected or deselected.

I've seen the demo and I can call a javascript function but i'm not sure how I can call a function from the aspx.cs file from javascript (or if you can)

Alternatively I want to just call a function from the aspx.cs file from a treeList function.

Thanks

Andy
Iana Tsolova
Telerik team
 answered on 21 Jul 2011
4 answers
275 views
Hi, In my application a radgrid contains a checkbox, a listbox and a dropdown control in itemtemplate.
I have used exporttoexcel feature of radgrid.
In exported data i don't want to export checkbox column value. 
I want to export datatext field of listbox and dropdown list control instead of datavalue field being exported.

How can i resolve above issues?
Anil
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
66 views
So, what are the plans for adding global styling capability for the RibbonBar to the Visual Style Builder?
Bozhidar
Telerik team
 answered on 21 Jul 2011
0 answers
70 views
Hi there,

My Radgrid is inside a popup window(normal window not a radwindow) and initially it is fine and dandy. But the moment i resize the window(make it wider), every column header width(i've set the width for the header) auto expands to fill up the full window. Problem is, the item did not expand, which causes the misalignment.

Currently, i have manually(javascript) set the last column to remaining width. This works if my window is initially maximized. If it from a popup, the problem arise. Resizing it to smaller width does  not cause any problem.

I realise that if the alignment occurs, all i need to do is resize any of the column and the radgrid will repaint, thus realigns everything perfectly. To sum it up, all i need to do is to repaint(is this the right method?) the radgrid whenever the browser resize occurs.


Any help please?

Btw, I'm using ASP.NET AJAX Q1 2011 NET 40
Regards
Dexter
dexter
Top achievements
Rank 1
 asked on 21 Jul 2011
3 answers
584 views
Hello everyone.  I was wondering if anyone knew how to make RadWindow look like the popup window on this website.  I have seen a lot of sites with modal popups with the close icon in the right corner like this and would like to implement it with radwindow.  Any ideas? Thank you!

Example: http://fancybox.net/
Bozhidar
Telerik team
 answered on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?