Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
493 views
Hi - just downloaded Telerik controls and now I can't get any of my websites to compile.  I am using VWD Express 2008 and getting messages like

Error    18    The type 'System.Web.UI.ScriptManager' exists in both
'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and
 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'   
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\_salesraw\3f1a6d98\c087e20c\App_Web_uqevys61.0.cs    202   

I'm really stuck - any help greatly appreciated.

Roger



shashwat
Top achievements
Rank 1
 answered on 12 Nov 2018
1 answer
197 views
Hello,

I have a RadMenu and RadContextMenu on the same page. This causes a conflict in the style & appearance of the RadMenu. 
Please have a look at the two pages and the rendering of the RadMenu (see attached images).

1. Page with RadMenu alone, see Img RadMenu1.png.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCntxMenu2.aspx.cs" Inherits="CMSNewTests.TestCntxMenu2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                <telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" ShowToggleHandle="true" Skin="Bootstrap"  IconColumnWidth="20">
                    <Items>
                        <telerik:RadMenuItem Text="Products">
                            <Items>
                                <telerik:RadMenuItem Text="Chairs" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Sofas" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Tables" ></telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>               
                    </Items>
                </telerik:RadMenu>
        </div>
    </form>
</body>
</html>

2. Page with RadMenu and RadContextMenu, see Img RadMenu2.png.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCntxMenu2.aspx.cs" Inherits="CMSNewTests.TestCntxMenu2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                <telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" ShowToggleHandle="true" Skin="Bootstrap"  IconColumnWidth="20">
                    <Items>
                        <telerik:RadMenuItem Text="Products">
                            <Items>
                                <telerik:RadMenuItem Text="Chairs" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Sofas" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Tables" ></telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>               
                    </Items>
                </telerik:RadMenu>
                <telerik:RadContextMenu runat="server" ID="RadContextMenu1" >
                    <Items>
                        <telerik:RadMenuItem Text="Add research field" Value="Add" />
                    </Items>
                </telerik:RadContextMenu>
        </div>
    </form>
</body>
</html>

How can I achieve the style & appearance of the first image when using both controls on the same page? Why is the style & appearance changing at all when inserting the context menu?

Thanks for your answer and help,
Harald

 

Harald
Top achievements
Rank 1
 answered on 09 Nov 2018
3 answers
743 views

I have  an asp label inside a footer template as follows:

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="false" TableLayout="Fixed">
        <Columns>
            <telerik:GridTemplateColumn DataType="System.Int32" SortExpression="PortalLoadSeconds" HeaderButtonType="TextButton" HeaderStyle-Width="14%" HeaderText="Portal Load Seconds" AutoPostBackOnFilter="true">
                <ItemTemplate>
                    <%#String.Format("{0}", Eval("PortalLoadSeconds")) %>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="lbl_TotalSeconds" runat="server"></asp:Label>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

How do I access the "lbl_TotalSeconds" label in a vb sub to change its text

Tsvetomir
Telerik team
 answered on 09 Nov 2018
8 answers
288 views

Hi,

I would like to support English and Arabic same time. For example, when the user enter English and Arabic text i want to get same html in javascript but the radeditor content doesn't same with the html text in javascript its like vice versa. I added screenshots about my issue. 

Thank you for your quick reply. 

 

 

 

Rumen
Telerik team
 answered on 09 Nov 2018
3 answers
316 views
Hello everybody !

I encountered a problem like this, I use radeditor on my website, I use Vietnamese to enter data, I enter utf-8 Unicode code, but when viewed in the HTML mode, my document transferred to ISO 8859-1 code, how to set charset encoding for RadEditor?

http://nw9.upanh.com/b4.s34.d4/b33c2f6dc31f28e3cfbcfc2c97ef1ea3_54676399.howtofix.png?rand=0.9001908729977537
Sharing
Top achievements
Rank 1
 answered on 09 Nov 2018
12 answers
543 views
I seem to have some issue with GridDateTimeColumn with a culture different from the default.
In particular I use RadGrid1.Culture = New CultureInfo("it-IT") wich uses a date time format like this dd/MM/yyyy HH:mm
I set in the declarative aspx section (web forms) of GridDateTimeColumn those settings: 
DataFormatString="{0:dd/MM/yyyy}"
PickerType="DatePicker"
FilterDateFormat="dd/MM/yyyy"
EnableTimeIndependentFiltering="true"

Nonetheless I'm facing 2 problems when filtering:
1- It seems dd/MM format is not recognized and filtering always happens with MM/dd format
2- The resulting SQL (not LINQ) FilterExpression wich converts date to string outputs something like
([CreateDate] >= '22/06/2013,00:00:00') AND ([CreateDate] <= '22/06/2013,23:59:59')
wich results on its own in 2 problems: 
1- SQL server doesn't seem to understand  '22/06/2013,00:00:00' but likes more '22/06/2013 00:00:00' (without the comma)
2- It would have been better to have an ISO format like  '2013/06/22 00:00:00' as SQL filter expression output for the same localization issues you may have with an SQL Server (or other db server) installation that has MM/dd default instead of dd/MM, resulting in an out of range exception for dates like this '22/06/2013,00:00:00'

I'm handling server side filtering in NeedDataSource event, so I could parse the MasterTableView.FilterExpression but this would involve a lot of work, in particular when multiple filters are involved... is there a simpler way of doing it altering the filter expression when it's created and before it can be retrieved from the NeedDataSource event, so to easily transform 
([CreateDate] >= '22/06/2013,00:00:00') AND ([CreateDate] <= '22/06/2013,23:59:59')
to
([CreateDate] >= '2013/06/22 00.00.00') AND ([CreateDate] <= '2013/06/22 23.59.59')

Also (as a suggestion) I would consider outputting this last ISO format by default as an SQL MasterTableView.FilterExpression result in the future Grid versions. This alone would solve all localization issues because you can handle the conversion from input to ISO string based on FilterDateFormat value.




Attila Antal
Telerik team
 answered on 08 Nov 2018
3 answers
82 views
is there any way to get a summery of for the count of records from radgrid after filtering. 
see attached example for your reference. 

thank you 
Marin Bratanov
Telerik team
 answered on 08 Nov 2018
1 answer
86 views

Hello

I'm trying to bind a List view to a JSON object, simplified to:

{
   "Data":[
      {
         "<ClaimItemID>k__BackingField":256,
         "<MasterClaim>k__BackingField":{
            "<PoliceStation>k__BackingField":"Bobville",
         },
         "<AdditionalDetails>k__BackingField":"",
         "<ItemDescription>k__BackingField":"Lilly ",
      }
   ],
   "Count":1
}

<div>#= ClaimItemID #</div>

is working as expected

but

<div>#= MasterClaim.PoliceStation #</div>

is throwing this error

Error rendering ItemTemplate in lstClaims: MasterClaim is not defined

what am i doing wrong?

 

Jason
Top achievements
Rank 1
 answered on 08 Nov 2018
1 answer
201 views

Hello,

I'm trying to figure out how to set the "SpecialDays", "RecurringEvents", and "ItemStyle-BackColor" of the rendered RadDatePicker for the RadDateTimeColumn in my RadGrid during edit mode.  I want the user to see today's date highlighted when they click on the DatePicker.  It's easy to do this in a regular RadDatePicker control, but I don't know how to do this in a RadGrid.  Any help is appreciated.

Thanks,

Shawn A.

Eyup
Telerik team
 answered on 08 Nov 2018
0 answers
194 views

I have a Parent Child Radgrid set up and need to store the page index to handle the actions of a returning to the page after a redirect.

I am trying this code in the Item Command area:

if (e.CommandName == RadGrid.PageCommandName)
            {
                GridPagerItem item = e.Item as GridPagerItem;
                GridTableView view = item.Parent.Parent.NamingContainer as GridTableView;
                if (view.Name == "child")
                {
                    string message = string.Format("Details table page index changed, current page index : {0}", view.CurrentPageIndex.ToString());
                    RadAjaxManager1.Alert(message);
 
                }
                else
                {
                    string message1 = string.Format("Parent RadGrid page index changed, current page index : {0}", RadGrid1.MasterTableView.CurrentPageIndex.ToString());
                    RadAjaxManager1.Alert(message1);
                }
 
                //************
            }

 Every time I change my page the results remain at page index = 0.  How can I get this to store the correct page index?

Perry
Top achievements
Rank 1
 asked on 07 Nov 2018
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?