Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
158 views
We've got two versions of the web.ui controls running in the GAC, and I can't seem to get my app to run on the webserver becasue of that...any ideas?

CS0433: The type 'Telerik.Web.UI.RadFormDecorator' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\Telerik.Web.UI\2008.3.1125.20__121fae78165ba3d4\Telerik.Web.UI.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\Telerik.Web.UI\2008.1.515.20__121fae78165ba3d4\Telerik.Web.UI.dll'

my web.config explicitly states use 2008.3.1125.20



sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 09 Dec 2008
1 answer
124 views

I have successfully implemented the persistence of client side selection on the RadGrid. Selections are being persisted across multiple page selections. When I engage a post back and try to capture all selections I am only provided the selected items on the current grid page and not all selected GridItems.

Any help with this would be great

Princy
Top achievements
Rank 2
 answered on 09 Dec 2008
4 answers
142 views

Hi, Where I can add/change styling for the GridGroupFooterItem?

 

Thanks

Eric

Eric Schoenholzer
Top achievements
Rank 2
 answered on 09 Dec 2008
1 answer
126 views
This weird problem already troubled me 2 weeks. Following code does not work in FireFox (blank page), and even though it worked in IE the splitter height was not 100%, and the X/Y scroll bar was visible in situation that it should not displayed!


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="test" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
 
    <script type="text/javascript">  
        //Q3 2008 official fix on splitter  
        function OnSplitterClientLoaded(sender, args) {  
            sender.get_element().style.visibility = 'inherit';  
        }  
 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadSplitter ID="uxUCSplitterO" runat="server" VisibleDuringInit="False" 
            OnClientLoaded="OnSplitterClientLoaded" BorderSize="0" Width="100%" Height="100%">  
            <telerik:RadPane ID="uxUCPaneMT" runat="server" Height="100%" Width="100%" Scrolling="None">  
                <telerik:RadDockLayout ID="uxUCDockLayoutMRH" runat="server" Skin="Office2007">  
                    <telerik:RadDockZone ID="uxUCDockZoneMTR" runat="server" Height="100%" Width="100%" 
                        BorderStyle="None" BorderWidth="0">  
                        <telerik:RadDock ID="uxUCDockMTR" runat="server" EnableDrag="false" Height="100%">  
                            <ContentTemplate> 
                                <asp:Panel ID="Panel1" runat="server" Width="100%" Height="100%">  
                                    <p> 
                                        TEXT  
                                    </p> 
                                    <p> 
                                        TEXT  
                                    </p> 
                                    <p> 
                                        TEXT  
                                    </p> 
                                    <p> 
                                        TEXT  
                                    </p> 
                                </asp:Panel> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </telerik:RadDockLayout> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </div> 
    </form> 
</body> 
</html> 
 


Tsvetie
Telerik team
 answered on 09 Dec 2008
1 answer
187 views
I have the following markup. I would like there to be a 5px border surrounding the "content" (see the inner splitter) which should fill the available space. I have the page containers set to height/width = 100%. For some reason the border disappears off the right and bottom edge. I thought this might be the old IE 6 box model issue, but this occurs in IE7 and Firefox 3 as well. Can anyone tell me what I'm doing wrong?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%; min-height: 100%;">  
<head id="Head1" runat="server">  
    <title></title>  
    </head> 
<body style=width: 100%; height: 100%; text-align: center; margin:0px; background-color: #0A3152;> 
      
    <form id="Form1" runat="server" style="height:100%; width:100%;">  
          
        <div style="margin: 0px auto;width: 900px;height:100%;text-align: center;">  
            <div style="height:100%;width:100%;margin: auto;> 
                <telerik:RadSplitter ID="rsAM"   
                                    runat="server"   
                                    Width="100%"   
                                    Height="100%"   
                                    Orientation="Horizontal"   
                                    ResizeWithParentPane="False"   
                                    HeightOffset="0"   
                                    BorderSize="0" 
                                    VisibleDuringInit="False" 
                                    Skin="Hay" 
                > 
                    <telerik:radpane runat="server" id="hPane" Scrolling="None" Width="100%" Height="79px">  
                        Header  
                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="npane" Scrolling="None" Width="100%" Height="24px" > 
                        Navbar                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="bPane" Scrolling="None" Height="100%" Width="100%"   
                            <telerik:RadSplitter ID="rsB"   
                                    runat="server"   
                                    Width="100%"   
                                    Height="100%"   
                                    Orientation="Vertical"   
                                    ResizeWithParentPane="True"   
                                    HeightOffset="0"   
                                    BorderSize="0" 
                                    VisibleDuringInit="False" 
                                    Skin="Hay" 
                                    > 
                                <telerik:radpane runat="server" id="blPane" Scrolling="None" Width="21px" Height="100%"></telerik:radpane> 
                                <telerik:radpane runat="server" id="bcPane" Scrolling="None" Height="100%" Width="100%">  
                                      
                                        <div style="height:100%; width:100%;border: solid 5px red;">  
Content... This should have a red border of 5px around it but the border disappears on the right and bottom. I also need this to fill the available space, hense the 1005 height/width  
                                                                                  </div> 
                                </telerik:radpane>   
                                <telerik:radpane runat="server" id="brPane" Scrolling="None" Width="16px" Height="100%"></telerik:radpane>     
                            </telerik:RadSplitter>   
                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="fspane" Scrolling="None" Height="8px" Width="100%">  
                         Footer Spacer  
                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="fPane" Scrolling="None" Height="29px" Width="100%">  
                         Footer  
                    </telerik:radpane> 
                </telerik:RadSplitter> 
            </div> 
        </div> 
          
    </form> 
</body> 
</html> 
Martin
Telerik team
 answered on 09 Dec 2008
1 answer
345 views
is there any way to write a stored procedure that has enhanced performance ability with the RadGrid?

I have a masive stored procedure for a search function I am using but the problem I am up against is that if ALL search fields are left blank, the search is built to return ALL records from the database.  This will eventually be thousands if not tens of thousands of records.

How can I build my stored procedure (and wire up the Grid) to only pull the necessary page at a time rather than have to pull the entire recordset every time?

-- =============================================  
-- Author: Chase Florell  
-- Create date: 08/24/2008  
-- Update date: 11/14/2008  
-- Description: Business For Sale Search  
-- =============================================  
 
ALTER PROCEDURE [dbo].[bt_BizForSale_Search]  
(  
    @ID                         int,  
    @TakeBack                   bit,  
    @Extension                  nvarchar(50),  
    @City                       nvarchar(50),  
    @Province                   int,  
    @Country                    int,  
    @Area                       nvarchar(50),  
    @Relocatable                nvarchar(50),  
    @VendorType                 nvarchar(50),  
    @SaleStructure              nvarchar(50),  
    @SellingPriceHigh           Money,  
    @SellingPriceLow            Money,    
    @DownLow                    money,  
    @DownHigh                   money,  
    @AnnualLow                  money,  
    @AnnualHigh                 money,  
    @EBITDALow                  money,  
    @EBITDAHigh                 money,  
    @BrokerName                 nvarchar(50),  
    @A                          nvarchar(50),  
    @A1                         nvarchar(50),  
    @A2                         nvarchar(50),  
    @A3                         nvarchar(50),  
    @B                          nvarchar(50),  
    @B1                         nvarchar(50),  
    @B2                         nvarchar(50),  
    @B3                         nvarchar(50),  
    @C                          nvarchar(50),  
    @C1                         nvarchar(50),  
    @C2                         nvarchar(50),  
    @C3                         nvarchar(50)  
)  
 
AS 
SET NOCOUNT ON 
SET ANSI_NULLS ON 
      
 
SELECT     dbo.bt_Regions.Region AS Province,   
           bt_Regions_1.Region AS Country,   
           dbo.bt_BizForSale.ID,   
           dbo.bt_BizForSale.[45],   
           dbo.bt_BizForSale.[46],   
           dbo.bt_BizForSale.[118],  
           dbo.bt_BizForSale.[isSold]  
 
FROM       dbo.bt_BizForSale INNER JOIN 
           dbo.bt_Regions AS bt_Regions_1 ON dbo.bt_BizForSale.[61] = bt_Regions_1.ID INNER JOIN 
           dbo.bt_Regions ON dbo.bt_BizForSale.[62] = dbo.bt_Regions.ID  
 
WHERE     
(  
            (dbo.bt_BizForSale.[ID] = COALESCE(@ID, dbo.bt_BizForSale.[ID]))  
    And     (@TakeBack Is Null Or dbo.bt_BizForSale.[130] = @TakeBack)  
    And     (@Extension Is Null Or dbo.bt_BizForSale.[45] Like '%' + @Extension + '%')  
    And     (@City Is Null or dbo.bt_BizForSale.[63] Like '%' + @City + '%')  
    And     (@Province Is Null Or dbo.bt_BizForSale.[62] = @Province)  
    And     (@Country Is Null Or dbo.bt_BizForSale.[61] = @Country)  
    And     (@Area Is Null Or dbo.bt_BizForSale.[65] Like '%' + @Area + '%')  
    And     (@Relocatable Is Null Or dbo.bt_BizForSale.[66] = @Relocatable)  
    And     (@SaleStructure Is Null Or dbo.bt_BizForSale.[95] = @SaleStructure)  
    And     (@VendorType Is Null Or dbo.bt_BizForSale.[VendorType] = @VendorType)  
    And     (@SellingPriceLow Is Null Or @SellingPriceHigh Is Null Or dbo.bt_BizForSale.[118] Is Null Or dbo.bt_BizForSale.[118] Between @SellingPriceLow And @SellingPriceHigh)  
    And     (@EBITDALow Is Null Or @EBITDAHigh Is Null Or dbo.bt_BizForSale.[92] Is Null Or dbo.bt_BizForSale.[92] Between @EBITDALow And @EBITDAHigh)  
    And     (@AnnualLow Is Null Or @AnnualHigh Is Null Or dbo.bt_BizForSale.[91] Is Null Or dbo.bt_BizForSale.[91] Between @AnnualLow And @AnnualHigh)  
    And     (@DownLow Is Null Or @DownHigh Is Null Or dbo.bt_BizForSale.[135] Is Null Or dbo.bt_BizForSale.[135] Between @DownLow And @DownHigh)  
    And     (@BrokerName Is Null or dbo.bt_BizForSale.[31] Like '%' + @BrokerName + '%')  
    And     (@A Is Null Or dbo.bt_BizForSale.[46] = @A Or dbo.bt_BizForSale.[47] = @A Or dbo.bt_BizForSale.[48] = @A)  
    And     (@A1 Is Null Or dbo.bt_BizForSale.[49] = @A1 Or dbo.bt_BizForSale.[50] = @A1 Or dbo.bt_BizForSale.[51] = @A1 Or dbo.bt_BizForSale.[52] = @A1 Or dbo.bt_BizForSale.[53] = @A1 Or dbo.bt_BizForSale.[54] = @A1 Or dbo.bt_BizForSale.[55] = @A1 Or dbo.bt_BizForSale.[56] = @A1 Or dbo.bt_BizForSale.[57] = @A1)  
    And     (@A2 Is Null Or dbo.bt_BizForSale.[49] = @A2 Or dbo.bt_BizForSale.[50] = @A2 Or dbo.bt_BizForSale.[51] = @A2 Or dbo.bt_BizForSale.[52] = @A2 Or dbo.bt_BizForSale.[53] = @A2 Or dbo.bt_BizForSale.[54] = @A2 Or dbo.bt_BizForSale.[55] = @A2 Or dbo.bt_BizForSale.[56] = @A2 Or dbo.bt_BizForSale.[57] = @A2)  
    And     (@A3 Is Null Or dbo.bt_BizForSale.[49] = @A3 Or dbo.bt_BizForSale.[50] = @A3 Or dbo.bt_BizForSale.[51] = @A3 Or dbo.bt_BizForSale.[52] = @A3 Or dbo.bt_BizForSale.[53] = @A3 Or dbo.bt_BizForSale.[54] = @A3 Or dbo.bt_BizForSale.[55] = @A3 Or dbo.bt_BizForSale.[56] = @A3 Or dbo.bt_BizForSale.[57] = @A3)  
    And     (@B Is Null Or dbo.bt_BizForSale.[46] = @B Or dbo.bt_BizForSale.[47] = @B Or dbo.bt_BizForSale.[48] = @B)  
    And     (@B1 Is Null Or dbo.bt_BizForSale.[49] = @B1 Or dbo.bt_BizForSale.[50] = @B1 Or dbo.bt_BizForSale.[51] = @B1 Or dbo.bt_BizForSale.[52] = @B1 Or dbo.bt_BizForSale.[53] = @B1 Or dbo.bt_BizForSale.[54] = @B1 Or dbo.bt_BizForSale.[55] = @B1 Or dbo.bt_BizForSale.[56] = @B1 Or dbo.bt_BizForSale.[57] = @B1)  
    And     (@B2 Is Null Or dbo.bt_BizForSale.[49] = @B2 Or dbo.bt_BizForSale.[50] = @B2 Or dbo.bt_BizForSale.[51] = @B2 Or dbo.bt_BizForSale.[52] = @B2 Or dbo.bt_BizForSale.[53] = @B2 Or dbo.bt_BizForSale.[54] = @B2 Or dbo.bt_BizForSale.[55] = @B2 Or dbo.bt_BizForSale.[56] = @B2 Or dbo.bt_BizForSale.[57] = @B2)  
    And     (@B3 Is NulL Or dbo.bt_BizForSale.[49] = @B3 Or dbo.bt_BizForSale.[50] = @B3 Or dbo.bt_BizForSale.[51] = @B3 Or dbo.bt_BizForSale.[52] = @B3 Or dbo.bt_BizForSale.[53] = @B3 Or dbo.bt_BizForSale.[54] = @B3 Or dbo.bt_BizForSale.[55] = @B3 Or dbo.bt_BizForSale.[56] = @B3 Or dbo.bt_BizForSale.[57] = @B3)  
    And     (@C Is Null Or dbo.bt_BizForSale.[46] = @C Or dbo.bt_BizForSale.[47] = @C Or dbo.bt_BizForSale.[48] = @C)  
    And     (@C1 Is Null Or dbo.bt_BizForSale.[49] = @C1 Or dbo.bt_BizForSale.[50] = @C1 Or dbo.bt_BizForSale.[51] = @C1 Or dbo.bt_BizForSale.[52] = @C1 Or dbo.bt_BizForSale.[53] = @C1 Or dbo.bt_BizForSale.[54] = @C1 Or dbo.bt_BizForSale.[55] = @C1 Or dbo.bt_BizForSale.[56] = @C1 Or dbo.bt_BizForSale.[57] = @C1)  
    And     (@C2 Is Null Or dbo.bt_BizForSale.[49] = @C2 Or dbo.bt_BizForSale.[50] = @C2 Or dbo.bt_BizForSale.[51] = @C2 Or dbo.bt_BizForSale.[52] = @C2 Or dbo.bt_BizForSale.[53] = @C2 Or dbo.bt_BizForSale.[54] = @C2 Or dbo.bt_BizForSale.[55] = @C2 Or dbo.bt_BizForSale.[56] = @C2 Or dbo.bt_BizForSale.[57] = @C2)  
    And     (@C3 Is Null Or dbo.bt_BizForSale.[49] = @C3 Or dbo.bt_BizForSale.[50] = @C3 Or dbo.bt_BizForSale.[51] = @C3 Or dbo.bt_BizForSale.[52] = @C3 Or dbo.bt_BizForSale.[53] = @C3 Or dbo.bt_BizForSale.[54] = @C3 Or dbo.bt_BizForSale.[55] = @C3 Or dbo.bt_BizForSale.[56] = @C3 Or dbo.bt_BizForSale.[57] = @C3)  
    And     (dbo.bt_BizForSale.[isEnabled] = 1)  
    And     (dbo.bt_BizForSale.[DateExpires] > GetDate())  
)  
ORDER BY [OrderID]  
 
Update bt_Categories  
Set [FSSearchCount] = [FSSearchCount] + 1  
Where [Category] = @A  
 
Update bt_Categories  
Set [FSSearchCount] = [FSSearchCount] + 1  
Where [Category] = @B  
 
Update bt_Categories  
Set [FSSearchCount] = [FSSearchCount] + 1  
Where [Category] = @C  
 
Update bt_Regions  
Set [FSSearchCount] = [FSSearchCount] + 1  
Where [ID] = @Province 

Thanks in advance.
Rosen
Telerik team
 answered on 09 Dec 2008
3 answers
106 views
Is it possible to attach excel files in RadGrid cells?
Thank you.
Shinu
Top achievements
Rank 2
 answered on 09 Dec 2008
1 answer
137 views
Can soomebody guide me how to view a .tts file . It is the extension of a RadScheduler demo file which I urgently need to view
Sebastian
Telerik team
 answered on 09 Dec 2008
2 answers
98 views
Hello all,

I am facing JS error when I click for grid's paging ir gives me "Sys.InvalidOperationExcetion: Type PageMethods has already been registered." error.
I have created a custom pager for displaying monthly data. To achieve same I have created a custom pager (MyPager) which replaces grid's current pager. The created pager is working great for filtering, displaying and navigating for selected month but whenever I click on pager changing the page I am geting JS error - "Sys.InvalidOperationExcetion: Type PageMethods has already been registered." and the thing is happening for every pager click.
Even I tried placing property EnableOutsideScripts to true but it didn't worked out.
I will appreciate if you can help me out.

Thanks,
Avi
Avinash
Top achievements
Rank 2
 answered on 09 Dec 2008
1 answer
180 views
I have a tree with TriStateCheckBoxes="true".  According to the on-line document at http://www.telerik.com/help/aspnet-ajax/tri-state-checkboxes-client-side-specifics.html, get_checkedState() would gives me the status:

0 - Unchecked
1 - Checked
2 - Indeterminate


However, I got the JavaScript error:

"Object doesn't support this property or method"


Is this method replaced by something eles?  Thanks,
Atanas Korchev
Telerik team
 answered on 09 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?