Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
346 views
I would like the Text to contain the combination of the data source's id and name fields.  For example the control:

<telerik:RadListBox runat="server" ID="lstAvailableRemarkCode" Width="500px"<br>                                       Height="300px" SelectionMode="Multiple" AutoPostBackOnReorder="true" EnableDragAndDrop="true"<br>                 OnDropped="RadListBox_Dropped" AllowTransfer="true" TransferToID="lstAssignedRemarkCode"<br>                     ButtonSettings-RenderButtonText="true" Localization-ToRight="Add" Localization-ToLeft="Remove"<br>               ButtonSettings-ShowTransferAll="False" ButtonSettings-ShowReorder="False" ButtonSettings-ShowDelete="False"
    ButtonSettings-HorizontalAlign="Center" ButtonSettings-VerticalAlign="Middle"
    ButtonSettings-AreaWidth="30px"
    DataTextField="RemarkCodeID,Name" DataTextFormatString="{0} - {1}" DataValueField="RemarkCodeID"    
    OnItemDataBound="lstAvailableRemarkCode_ItemDataBound">
    <ButtonSettings AreaWidth="100" />
</telerik:RadListBox>

But in code behind I get an error that source does not have a field 'RemarkCodeID,Name' at the DataBind:

Is there a way I can Implement this?
Nencho
Telerik team
 answered on 07 May 2014
2 answers
273 views
Hello all,

This is my first post on here so please feel free to point me elsewhere if the information is already on here and I couldn't find it!

Can anybody show me any examples of the RadMediaPlayer out there with the Playlist, the Title bar and the Toolbar showing but without the video content window please?

We're implementing an mp4/WAV audio player in a web app, and it's in quite a narrow portrait format showing the title of the track that's playing, the transport controls and the playlist. However all the demos on the Telerik site are of the video player so we can't see how it might look.

Many thanks!

Donal
Donal
Top achievements
Rank 1
 answered on 07 May 2014
2 answers
326 views
I have a radgrid with 3 levels i want to assign 3 different colors for different levels of grid and on click of the row there should not be any change to the selected row color. i could do it for mastertable and 2nd level detail table but the same color is being assinged to the 3rd level row selection. Please find below the attached file in which blue color is the 2nd level and 3rd level is the white color. 

As both the detail grids are using .rgDetailTable .rgSelectedRow  classes both are sharing common properties. How can i differentiate different Detail grids with .rgselectedrow class

below is the small code that i  did to achieve the first two levels of the grid.

 .rgMasterTable .rgSelectedRow {
            background: #c8e8a8 !important; 
            color:black !important;   
        }
        .rgDetailTable .rgSelectedRow {
            background:lightblue !important; 
            color:black !important;                                                                                                                                                                                                                                                                                                         
    how to achieve white background color if 3rd level grid row is selected. Thanks 





Venelin
Telerik team
 answered on 07 May 2014
1 answer
121 views
I have  a User Control encapsulating data elements from a parent and 2 child tables.  I want the User Control to be the mechanism for updating and inserting all data controlled within.  How does one pass the Grid.SelectedValue, which is the "ID", to the user control? 
Eyup
Telerik team
 answered on 07 May 2014
1 answer
134 views
Hi, I'm using 2013 Q1 SP1 controls and AjaxControlsToolKit 4.5, I have a
RadComboBox and a ModalPopupExtender with a panel, In the Site.Master
I'm put the ToolKitScriptManager. When I run locally the application run
good! But when I publish on Azure
(http://test1bam.azurewebsites.net/webform1.aspx) both controls don't
work, the radcombox dont show the list of items and the panel show the
content, dont show any error. I attach two images  where locally work
fine, my web.config, the webform1.aspx, and the site1.master.





[WebForm1.aspx]

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master"
AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="testRadControl.WebForm1" %>



<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



    <telerik:RadComboBox ID="RadComboBox1" runat="server"
DataSourceID="SqlDataSource1" DataTextField="descripcion"
DataValueField="id"></telerik:RadComboBox>

&nbsp;&nbsp;&nbsp;&nbsp;

    <asp:Button ID="Button1" runat="server" Text="Abrir Modal" />

    <br />

    <br />

    <asp:Panel ID="Panel1" runat="server">

        hola<asp:Button ID="Button2" runat="server" Text="Cerrar Modal" />

    </asp:Panel>

    <asp:ModalPopupExtender ID="Panel1_ModalPopupExtender"
runat="server"  Enabled="True" PopupControlID="Panel1"
TargetControlID="Button1">

    </asp:ModalPopupExtender>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:DefaultConnection %>"
SelectCommand="SELECT [descripcion], [id] FROM
[producto]"></asp:SqlDataSource>

</asp:Content>





[Site1.Master]

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="testRadControl.Site1" %>



<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>



<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>



<!DOCTYPE html>



<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title></title>

    <asp:ContentPlaceHolder ID="head" runat="server">

    </asp:ContentPlaceHolder>

</head>

<body>

    <form id="form1" runat="server">

       <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

            </asp:ToolkitScriptManager>

    <div>

        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">    

            

        

        </asp:ContentPlaceHolder>

    </div>

    </form>

</body>

</html>







[web.config]

<?xml version="1.0"?>

<!--

  For more information on how to configure your ASP.NET application, please visit

  http://go.microsoft.com/fwlink/?LinkId=169433

  -->

<configuration>

  <connectionStrings>

    <add name="DefaultConnection"
connectionString="Server=tcp:e9jnq1pavz.database.windows.net,1433;Database=xx;User
ID=xx;Password=xx.;Trusted_Connection=False;Encrypt=True;Connection
Timeout=30;" providerName="System.Data.SqlClient" />

  </connectionStrings>

  <system.web>

    <customErrors mode="Off" />

    <compilation debug="true" targetFramework="4.5">

      <assemblies>

        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      </assemblies>

    </compilation>

    <httpRuntime targetFramework="4.5" />

    <httpHandlers>

      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

    </httpHandlers>

  </system.web>

  <system.webServer>

    <validation validateIntegratedModeConfiguration="false" />

    <handlers>

      <add name="Telerik_Web_UI_WebResource_axd" verb="*"
preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd"
type="Telerik.Web.UI.WebResource" />

    </handlers>

  </system.webServer>

</configuration>
Ianko
Telerik team
 answered on 07 May 2014
1 answer
406 views
Is there a way to load an image into the ImageEditor control directly from a stream? I would like to link the ImageEditor in with the upload process so that the file is not written to disk until it is saved after whatever image manipulation is required (regulations from a particular client for sensitive data).
Vessy
Telerik team
 answered on 07 May 2014
3 answers
90 views
Hi guys,

I'm having an issue with MultiCell selection mode within a RadGrid.
After I select some cells, I can't select any text inside any textbox of the whole page.

You can reproduce this bug even in this official demo page:
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/selecting/cell-selection/defaultcs.aspx
(I have this kind of problem only with Internet Explorer 9+)

Any suggestion or workaround?

Thanks
Giuseppe

Pavlina
Telerik team
 answered on 07 May 2014
1 answer
261 views
Hi Team,
               I am working on the Radhtmlchart type Bubble ,here my required functionalities are
1. How to show only one  XAxis.MijorGridLines on X-axis and one YAxis.MijorGridLines  on Y-axis at our specified value(50 in attchement).Means suppose I have X-axis values from 0 to 100 and Y-axis values from 0 to 100 ,here my requiremnt is i want show only one  MijorGridLine at value 50 on X-axis and also want  to show one more MijorGridLine at value 50 on Y-axis .

2. How to  know AxisTickItem value.

3. How to dispaly the Some text in each quadrant when divide the chart into 4-parts by middle value on X-axis and Y-axis
 (or)
4. How  to dispaly some text between specified Major/Minor GridLines.

Please find attched document for more information and I also highlighted with Red circles where our requirement fullfill.
Danail Vasilev
Telerik team
 answered on 07 May 2014
1 answer
297 views
I am not sure if it has to do with our recent update to 2014.1.225 or if it is only recently that our Mac users have started attempting to upload files with characters that are invalid on our windows server, but errors have been occurring as a result of this.  I then noticed that the latest release specifically states that such a scenario was addressed to allow the upload of these files.  I updated to this version and the same errors continue to occur.  Even attempting to upload these files with invalid characters from a mac on the telerik demos do not work.  The file does not succeed or fail it just sits there and throws a javascript error about an invalid token.  While this is different from what we are experiencing it still seems like this does not function correctly in 2014.1.403.  Is there something new that needs to be configured in order to make this work?

I have attached a screen of the errors thrown in the developer tools from our site when attempting to upload such a file in Safari on Mac.  Has anyone else run into this or something similar?

Thanks!
Jon
Plamen
Telerik team
 answered on 07 May 2014
2 answers
270 views
I am using RadScheduler for showing/creating the Appointments in my Database.
My code is working fine (Create, Retrieve, Update, Delete) as long as I have non-recurring Appointments. But, as soon as a recurring type Appointment comes in account, everything stops working and I get following error on postback:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

What am I doing wrong here? 
Following is my code, On .ASPX page:
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScheduler ID="RadScheduler1" runat="server" TimeZoneOffset="00:00:00" AdvancedForm-EnableCustomAttributeEditing="true"
        SelectedView="MonthView" OverflowBehavior="Expand" StartInsertingInAdvancedForm="true" EnableViewState="true"
        DataKeyField="AppointmentID" DataStartField="CalendarStartDateTime" DataEndField="CalendarEndDateTime"
        DataSubjectField="AppointmentBody" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="ParentAppointmentID"
        DataReminderField="Reminder" OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
        OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
        OnRecurrenceExceptionCreated="RadScheduler1_RecurrenceExceptionCreated" OnReminderDismiss="RadScheduler1_ReminderDismiss"
        OnReminderSnooze="RadScheduler1_ReminderSnooze">
        <AdvancedForm Modal="true"></AdvancedForm>
        <Reminders Enabled="true" MaxAge="5"></Reminders>
        <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
        <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
    </telerik:RadScheduler>
</asp:Content>


And Code on .CS page:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        BindAppointments();
    }
}
 
private void BindAppointments()
{
    try
    {
        List<AppointmentEN> lstAppointment = AppointmentProvider.GetAppointments();
 
        foreach (var item in lstAppointment)
        {
            item.RecurrenceRule = string.IsNullOrWhiteSpace(item.RecurrenceRule) ? null : item.RecurrenceRule;
            item.ParentAppointmentID = item.ParentAppointmentID == 0 ? null : item.ParentAppointmentID;
        }
        RadScheduler1.DataSource = lstAppointment;
        RadScheduler1.DataBind();
 
        RadScheduler1.SelectedView = SchedulerViewType.MonthView;
        RadScheduler1.SelectedDate = DateTime.Now;
        //RadScheduler1.Visible = true;
    }
    catch (Exception ex)
    {
    }
}


I have found that doing EnableViewState="false" does the job, but I don't want to do that because then other functionalities like Rescource editing stops working correctly.
Plamen
Telerik team
 answered on 07 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?