Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
106 views

I'm trying to add a custom skin to my site and I'm having some issues. I used the theme builder to modify the Silk skin. In my webapp, I added global settings to web.config to set the skin and EnableEmbeddedSkins = false. The site uses ASPNET themes, so I put all the custom CSS files in the App_Themes Theme folder. For all the controls it looks like it applied fine. 

It also appears to have applied to the Grid, but I have this obnoxious black border around all my grids. If I inspect the element in the browser, it looks like .RadGrid from WebResource.axd is overriding the custom .RadGrid_ADEMGreen style, because I can uncheck the border from that class and the custom one is applied correctly. I've attached a snapshot of this from the dev tools.

If this is the case, what else is being overridden by the embedded styles? How do I fix this?

Viktor Tachev
Telerik team
 answered on 13 Jan 2017
19 answers
772 views
Hi
I use a web service to populate the values in the RadCombo box. This RadCombobox has 3 columns. Which is defined in the header template (Please see the code). My problem is that I don't know how to organize the web service response to the corresponding matching columns defined in the header template. ItemTemplate sounds like useless here. It does nothing.  So all I want is 3 columns defined in the radCombobox and using the webservice to get data. Please help!!!

Please see below.

Web Service : CompanySelector.asmx

[WebMethod(CacheDuration = 60, EnableSession = true)]

public RadComboBoxItemData[] GetSystemCompanies()

{

 

string dataDomain= "<DataDomain><CountryCode>AU</CountryCode></DataDomain>";

int maxItemsToReturn = 25;

string prefixText = "";

DataTable dataTable = GetPrefixDataTableForTheDataDomain(dataDomain, prefixText, maxItemsToReturn);

List<RadComboBoxItemData> items = new List<RadComboBoxItemData>(dataTable.Rows.Count);

foreach (DataRow row in dataTable.Rows)

{

RadComboBoxItemData raditem = new RadComboBoxItemData();

 

raditem.Text = row["RegCode"].ToString() + "\t" + row["CompanyName"].ToString() + "\t" + row["CountryCode"].ToString();

raditem.Value = row["RegCode"].ToString() + "\t" + row["CompanyName"].ToString() + "\t" + row["CountryCode"].ToString();

items.Add(raditem);

}

return items.ToArray();

}

Defualt.ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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 language="javascript" type="text/javascript">

        function itemRequesting(sender, eventArgs) {
            var context = eventArgs.get_context();
            context["Filter"] = sender.get_text();           
        }

    </script>

    <style type="text/css">
        #CompanySelector
        {
            margin-left: 5px;
        }
        #CompanySelectorResultsHeaders
        {
            background-color: #F1F2F4;
            width: 392px;
            text-align: left;
            margin: 0px;
        }
        #CompanySelectorResultsHeaders td
        {
            border: none;
            padding: 3px 4px;
        }
        #CompanySelectorResultsHeaders .CompanyCodeColumn
        {
            width: 85px;
        }
        #CompanySelectorResultsHeaders .CompanyNameColumn
        {
            width: 239px;
        }
        #CompanySelectorResultsHeaders .CountryColumn
        {
            width: 43px;
        }
        table.CompanySelectorResults
        {
            width: 396px;
            margin: 0;
            cursor: pointer;
        }
        table.CompanySelectorResults td
        {
            border: none;
            margin: 0;
            padding: 6px;
            text-align: left;
            white-space: normal;
        }
        table.CompanySelectorResults .CompanyCodeColumn
        {
            width: 75px;
        }
        table.CompanySelectorResults .CompanyNameColumn
        {
            width: 225px;
        }
        table.CompanySelectorResults .CountryColumn
        {
            width: 43px;
        }
        table.CompanySelectorResults:hover td
        {
            color: #000;
            margin: 0;
            text-decoration: underline;
            background-color: #F1F2F4;
        }
        #CompanySelectorButtons
        {
            margin-top: 7px;
            float: right;
        }
        .RadComboBoxDropDown_CompanySelector
        {
            position: absolute;
            background: #fff;
            border: 1px solid #c6c7d2;
            border-top-color: #83868d;
            cursor: default;
            font-size: 11px;
        }
        .RadComboBoxDropDown_CompanySelector .rcbItem, .RadComboBoxDropDown_CompanySelector .rcbHovered
        {
            padding: 0 0 0 3px;
            background-color: #fff;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadComboBox ID="RadCompanySelector" runat="server" Height="190px" Skin="Vista" Width="420px" MarkFirstMatch="true"
        EnableLoadOnDemand="true" HighlightTemplatedItems="true"
        ItemRequestTimeout="500"
        OnClientItemsRequesting = "itemRequesting">
            <WebServiceSettings Method="GetSystemCompanies" Path="~\CompanySelector.asmx" />
            <headertemplate>
                    <table id="CompanySelectorResultsHeaders">
                    <tr>
                        <td class="CompanyCodeColumn">
                            <b>
                                Code
                            </b>
                        </td>
                        <td class="CompanyNameColumn">
                            <b>
                                Name
                            </b>
                        </td>
                        <td class="CountryColumn">
                            <b>
                                Country
                            </b>
                        </td>
                    </tr>
                </table>
             </headertemplate>
            <itemtemplate>
                 <table class="CompanySelectorResults">
                    <tr>
                        <td class="CompanyCodeColumn"></td>
                        <td class="CompanyNameColumn"> </td>
                        <td class="CountryColumn"></td>
                    </tr>
                </table>
            </itemtemplate>
        </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>

 

Nencho
Telerik team
 answered on 13 Jan 2017
1 answer
197 views

When my PC timezone is set to (UTC+2:00) Amman there is a significant problem when displaying the calendar for March 2017. March 30th appears twice, but March 31st is missing.

This is evident in the Demo page on your website at http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx as shown in the attached screen captures.

I believe this is due to Amman's daylight savings taking effect at 00:00:00 on Friday 31st March, as described here: https://www.timeanddate.com/time/zone/jordan/amman

My customer is unable to view events on 31st March, which is causing a major problem.

Please can you tell me if there is a fix available or planned for this? If not, can you recommend an alternative calendar control?

 

Veselin Tsvetanov
Telerik team
 answered on 13 Jan 2017
1 answer
88 views

8 years ago this was first brought up, and only the RadComboBox was update to reflect the lack of Labels.  
http://www.telerik.com/forums/radcombobox-does-not-have-a-label-property

This December someone was looking for how to get a Label on the RadDropDownList control, they were given a hack as a solution.  
http://www.telerik.com/forums/add-label-to-raddropdownlist-in-a-rad-listbox

Lastly, all controls that *do* have a label, do not have consistent labeling schemes.For example the RadDateInput control has a Label, while RadDatePicker has RadInput-Label for what is apparently the same thing.

 

Which leads me to the following point:
What accounts for this inconsistency?

Why do I have to sometimes hack in labels, when the controls I'm using are all apparently similar Data Editing controls but exposing a different API?
Why do I have to hack in different CSS, when the labels are not following the same conventions?
This was originally brought up 8 years ago, will we be seeing an update in the near future that corrects this oversight?
Lastly, what does a developer like myself have to do to make all labels consistent in the meanwhile?

Thanks,
-Chris

Konstantin Dikov
Telerik team
 answered on 13 Jan 2017
5 answers
222 views
Hi telerik team,
I'm looking for the example how to save the state of the RadPivotGrid to the database.
I'v seen the http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/persisting-radpivotgrid-settings/defaultcs.aspx
but there is only saving somewhere at the server and it is connected with session.
It would be great to use something like that
string state = radPivotGrid.SaveState();
radPivotGrid.LoadState(state);
Of course, there isn't such functionality, so how to workaround the problem?

Regards
Tomek
Kostadin
Telerik team
 answered on 13 Jan 2017
6 answers
709 views
Hi
I have radgrid in my application.
Its working fine for me.
But
I'm usiing the Export to excel and csv functions.
Exporting grid to excel is working fine but export to csv not showing the data rather showing only data column names.
Please help me as soon as possible.
Josh
Top achievements
Rank 1
Veteran
 answered on 12 Jan 2017
1 answer
235 views

Hi,

 

Trying to use this new control.

What about validation?

I get:

 

 

Control 'rbl_shipment' referenced by the ControlToValidate property of 'rbl_shipmentRequired' cannot be validated.

 

Marc

Ianko
Telerik team
 answered on 12 Jan 2017
1 answer
282 views

Hi Team,
I Want to draw polyline between map markers using asp.net C# (web page) , i am using MapPolyline object but it is not working.

Aspx page code:
 <asp:RadMap RenderMode="Lightweight" runat="server" ID="RadMap1" Zoom="10" CssClass="MyMap" Height="700px">
 <CenterSettings Latitude="25.2854" Longitude="51.5310" />
 </asp:RadMap>

C# Code:
MapPolyline polyline = new MapPolyline()
            {
                Points = p,
                Stroke = new SolidColorBrush(c),
                StrokeThickness = 2,
            };
             
dynamicLayer.Items.Add(polyline);

Error: "The Type or namespace MapPolyline could not be found"

What is the possible way to draw polyline between markers on asp.net radmap Please suggest.  

Regrads
Manoj Sahu.

Marin Bratanov
Telerik team
 answered on 12 Jan 2017
1 answer
102 views

I’m trying to add a query string to the Telerik.Web.UI.DialogHandler.aspx, depending on the on the command executed I want to build the query string. I.E.: if the command is DocumentManager then add “&cmd=1”

This is the js function:

function onCommandExecuted(sender, args) {
            var executedCommand = args.get_commandName();
            var oldAdditionalQueryString = sender.get_dialogOpener().get_additionalQueryString();
            if (executedCommand == 'DocumentManager') {
                sender.get_dialogOpener().set_additionalQueryString() = oldAdditionalQueryString + "&cmd=1";

However when I check the HttpContext context on my custom file browser, the query is not showing the new variable (cmd) added:
Ontext.Request.Url.Query =

?DialogName=DocumentManager&UseRSM=true&renderMode=1&Skin=Bootstrap&Title=Manejador+de+documentos&doid=02ebd860-6197-43e3-a6be-01a823e70056&dpptn=&isRtl=false

9971404
Top achievements
Rank 1
 answered on 12 Jan 2017
1 answer
171 views

Hi,

I want to add a video on my web login page as background. However, after inserting the MediaPlayer, the page crashes with several errors. (attached)

If I create a brand new application with nothing but the media player, I do not get this problem.

 

Pavlina
Telerik team
 answered on 12 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?