Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
i developed my web app in trial version and now decided to purchase it. i uninstalled trial,deleted all folders in c:\programfiles, restarted my machine, install dev version in my computer, restarted my machine. now i opened up my app and ofcourse it will fail.

and even when i tried to create new project, i have to manually go into web.config to disable these two lines
<!--<add assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
                <add assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>-->

How do i apply the licensed version to my existing app? or to the new app without having gone to web.config to disable anything. please help me. thank you very much.
Pavlina
Telerik team
 answered on 16 Jun 2009
1 answer
185 views
Is there any way to set the size of the textboxes/comboboxes/etc used in inline editing? I have a RadGrid inside a RadPane, and when the edit command column is used the grid becomes wider than the pane it's in, necessitating horizontal scrolling.  This is because most of the inputs are about twice as wide as they actually need to be for the data they contain.
Shinu
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
90 views
When Publishing our Wesite, using version 2009.1.402.35 or telerik, we get the error seen below.

Line 1:  <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="_Login" %>
Line 2: 
Line 3:  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Line 4: 
Line 5:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


The WebConfig is:

 
        <pages theme="Default" styleSheetTheme="Default">  
            <controls> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            </controls> 
        </pages> 
        <httpHandlers> 
            <remove verb="*" path="*.asmx"/>  
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>  
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>  
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>  
        </httpHandlers> 
        <httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        </httpModules> 



Can anyone help us out?
Pavlina
Telerik team
 answered on 16 Jun 2009
1 answer
94 views
Hi

    I am using Rad Tab strip control. In this control inside i use the "subgurim:GMap" control. Then if i ajaxfy the tab strip means it shows the error for Access Denied. Without i use the subgurim:GMap means it works fine.

Please give me a help how to resolve this problem


Thanks with Regards


Saravanan.M
Paul
Telerik team
 answered on 16 Jun 2009
1 answer
218 views
Hi guys,

I am using a combination of RadSplitters with sliding panes and static panes to display monthly sales data.

The static panes section has 3 radgrids showing Period data, Year-To-Date data and lastly Year-On-Year data
The sliding panes section has to panes the first being a general information and help area telling the user what to do and the second has two comboboxes (both integers) and a checkboxlist (string) - all of which determine the select parameters for the sql datasource.

After making selections each radgrid visibility is set to true and then databound

I have no problem in getting the selected value for each and applying to the datasource, howevere mut problem arises when making multple selections in the checkbox list. For example the user may wish to combine sales departments and view the net result. The second selection only populates the grid when the first is unchecked. How can I stop this to return all or some departments?

SqlDataSource as follows :-

 

<asp:SqlDataSource ID="YellowBookPeriodSummaryData" runat="server" ConnectionString="<%$ ConnectionStrings:Intranet_DBConnectionString %>"

 

 

SelectCommand="SELECT TOP 100 PERCENT Year, Period, SUM(Qty) AS Quantity, SUM(Volume) AS [Vol Sq Ft], SUM(NetSales) AS [Net Value], SUM(StdCost) * - 1 AS Cost, SUM(Margin) AS [Margin ()], (SUM(NetSales) + SUM(StdCost)) / SUM(NetSales) * 100 AS [Margin (%)] FROM Tbl_Sales_Downloads WHERE (SalesCategory IN (@Category)) GROUP BY Year, Period HAVING (Year = @Year) AND (Period = @Period)">

 

 

<SelectParameters>

 

 

<asp:ControlParameter ControlID="CheckBoxList1" Name="Category" PropertyName="SelectedValue"

 

 

Type="String" />

 

 

<asp:ControlParameter ControlID="CbxYear" Name="Year" PropertyName="SelectedValue"

 

 

Type="Int64" />

 

 

<asp:ControlParameter ControlID="CbxPeriod" Name="Period" PropertyName="SelectedValue"

 

 

Type="Int64" />

 

 

</SelectParameters>

 

 

</asp:SqlDataSource>

 


Any Ideas welcomed
thanks in advance
Chris
Yavor
Telerik team
 answered on 16 Jun 2009
1 answer
124 views
Is there any way to have alternative text for the legend items in the chart?
Ves
Telerik team
 answered on 16 Jun 2009
1 answer
127 views
Hi Telerik

i am using RadGrid with Filter option. and also having a commanditem checkbox which controls Hide/Show of FilterItem.
For example if checkbox is checked then filteritem will be visible otherwise will be invisible.i am controlling it using this javascript code.

 

function showFilterItem(val)

 

{

 

try

 

{

 

var picker = $find("ctl00_ContentPlaceHolder1_User_RadGrid_ctl00_ctl02_ctl00_chkViewFilter");

 

 

 

if (val.checked)

 

{

$find(

'ctl00_ContentPlaceHolder1_User_RadGrid').get_masterTableView().showFilterItem();

 

document.getElementById(

"ctl00_ContentPlaceHolder1_HiddenField8").value=1;

 

}

 

else

 

{

$find(

'ctl00_ContentPlaceHolder1_User_RadGrid').get_masterTableView().hideFilterItem();

 

document.getElementById(

"ctl00_ContentPlaceHolder1_HiddenField8").value=0;

 

}

}

 

catch(ex)

 

{

}

 



 

 

<CommandItemTemplate>

 

 

<table cellpadding="0" cellspacing="0" border="0" width="920px" align="center">

 

 

<tr>

 

 

<td width="675px" align="left" style="padding-right: 15px">

 

 

<asp:CheckBox ID="chkViewFilter" runat="server" Checked="false"   onclick="showFilterItem(this)" />

 

 

<asp:Label ID="Label4" runat="server" Text="Show Filter"></asp:Label>

 

 

</td>

 

</

 

tr>

 

 

</table>

 

 

</CommandItemTemplate>

It is working fine. but my requirement is that In starting/Page_Load  i   want to hide the FilterItem. and this filteritem will be visible only when that checkbox will be checked.
if i try to make FilterItem visible false using this  serverside code then i am unable to make this filteritem visible again using above javascript code.

 

 


if
(!IsPostBack)

 

{

 

foreach (GridFilteringItem filterItem in User_RadGrid.MasterTableView.GetItems(GridItemType.FilteringItem))

 

{

filterItem.Visible =

false;

 

}

}

 

so please guide me how to achieve my result.
Thanks a lot in advance.
Binod.

Shinu
Top achievements
Rank 2
 answered on 16 Jun 2009
2 answers
123 views
Hi Telerik Geniuses! :)

I have two RadMenus on a page and each one uses a different custom css and it shows completely messed up. When I change one of them to use an embedded skin it works nice.

I believe I did all correct with creating the folders and copying all the correct files. I added the Skins folder, under this a CustomBlack and a CustomOutlook folders, on the Skins folder I copied the Menu.css file, on the CustomBlack the Menu.Black.css (renamed to Menu.CustomBlack.css and changed all references inside from RadMenu_Black to RadMenu_CustomBlack), on the CustomOutlook folder I did the same but using the Menu.Outlook.css.

The test page source is as follows, if I change any of the menu's back to use the embedded skins, it works fine.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BreadCrumbTest.aspx.cs" Inherits="TelerikTestN.BreadCrumbTest" %> 
 
<%@ 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
    <link href="Skins/CustomBlack/Menu.CustomBlack.css" rel="stylesheet" type="text/css" /> 
    <link href="Skins/CustomOutlook/Menu.CustomOutlook.css" rel="stylesheet" type="text/css" /> 
     
    <telerik:radcodeblock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
            function onClicking(sender, eventArgs) { 
                var BreadCrumbs = $find("<%= RadMenu1.ClientID %>"); 
                var item = eventArgs.get_item(); 
                var name = item.get_text(); 
                BreadCrumbs.close(); 
                BreadCrumbs.get_items().clear(); 
                var childItem = new Telerik.Web.UI.RadMenuItem(); 
                childItem.set_text(name); 
                for (var i = 0; i < 3; i++) { 
                    var menuItem = new Telerik.Web.UI.RadMenuItem(); 
                    menuItem.set_text("Test " + i); 
                    childItem.get_items().add(menuItem); 
                } 
                BreadCrumbs.get_items().add(childItem); 
            } 
        </script> 
    </telerik:radcodeblock> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadMenu ID="RadMenu1" runat="server" Skin="CustomBlack" 
                EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" 
                OnClientItemClicking="onClicking"
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Root"
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Test 1"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 2"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 3"
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenu> 
         
        <telerik:RadMenu ID="RadMenu2" runat="server" Skin="CustomOutlook" 
                    EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Root"
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Test 1"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 2"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 3"
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenu> 
    </div> 
    </form> 
</body> 
</html> 
 

Am I missing something?

Thanks,
Eduardo
Eduardo
Top achievements
Rank 1
 answered on 16 Jun 2009
6 answers
176 views
I have the below code that is filtering the menu options........there is one problem, when I switch between a datetime or amount datatype to a string datatype - the filteroptions just show me three options "NoFilter, EqualTo, NotEqualTo". This happens only sometimes ? what am I doing wrong ? 

// JScript File

 

function filterMenushowing(sender, eventArgs)

 

{

 

 

var menu = eventArgs.get_menu();

 

 

var items = menu._itemData;

 

 

var dataType = eventArgs.get_column().get_dataType().toString();

 

 

 

var usedTypes = "System.String, System.DateTime, System.Decimal";

 

 

//debugger;

 

 

if(usedTypes.indexOf(dataType != -1))

 

{

 

 

var filterForString = "";

 

 

 

if(dataType == "System.String")

 

filterForString =

"NoFilter, Contains, DoesNotContain, StartsWith, EndsWith, EqualTo, NotEqualTo";

 

 

if(dataType == "System.Decimal" || dataType == "System.DateTime")

 

filterForString =

"NoFilter, EqualTo, NotEqualTo, GreaterThan, LessThan, GreaterThanOrEqualTo, LessThanOrEqualTo";

 

 

 

var i = 0;

 

 

while (i < items.length)

 

{

 

if (filterForString.indexOf(items[i].value.toString()) != -1)

 

{

 

var item = menu._findItemByValue(items[i].value);

 

 

if (item != null)

 

item._element.style.display =

"";

 

 

//else

 

 

// item._element.style.display = "";

 

}

 

 

else

 

{

 

var item = menu._findItemByValue(items[i].value);

 

 

if (item != null)

 

item._element.style.display=

"none";

 

 

}

i++;

}

 

}

 

else

 

{

 

var i = 0;

 

 

while (i < items.length)

 

{

 

var item = menu._findItemByValue(items[i].value);

 

 

if (item != null)

 

item._element.style.display=

"";

 

 

i++;

}

 

}

}

Neeraj
Top achievements
Rank 1
 answered on 15 Jun 2009
2 answers
91 views
Hi,

In my project, I'd like to be able to customize the item template this way. I'll explain with the PanelBar on the page of the following link:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/simple/defaultcs.aspx

For each panel item (no matter it's root item such as "Mail", or sub-item such as "Personal Folders"), I'd like to display a control (for example a label or a link button) which is on the same horizontal level as the item. So it will look something like this:

Mail                                  [29 items]
    Personal Folders         [3 items]
    Deleted Items              [6 items]
......

One more requirement: I need to bind the data dynamically in the code behind; not some pre-defined items in aspx page.

Can someone please tell me how to achieve this?

Thanks a lot!

Gary


Gary
Top achievements
Rank 1
 answered on 15 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?