Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
Hello,

i' m developing a web application with multiple resources (Employees) using radscheduler. I have 4 tables in my database (one for creatiing employees work schedule, one for connecting employees with their work schedule, one for creating vacations schedule and one for connecting employees with their vacations schedule). So i have 2 radschedulers with multiple resources (one for creating work schedule and one for creating vacations schedule) and 2 database providers (one for each radscheduler). How could i implement when an employee has a vacation for a period of time, this employee will not be available as a resource to work radscheduler for this specific period of time (please note that i' m using recurrence rules)? 

Thank you very much. 
Plamen
Telerik team
 answered on 03 Jul 2012
3 answers
401 views
Hi

I have a radWindowManager i am using in a UserControl that opens another UserControl in the radWindowManager.

I am using the VisibleOnPageLoad property to set the window to visible on a button click. Now when i close the window it just becomes invisble. When i open it again using the button click the old values inside the window are preserved. However on each click the window should load fresh.

I tried to use the window.radWindow via javascript but it doesnt work and get an error about property not found.

How can i achieve the above?

Thanks in advance.

Rajesh
Marin Bratanov
Telerik team
 answered on 03 Jul 2012
2 answers
438 views
Hi

I have been reading this thread:http://www.telerik.com/community/forums/aspnet-ajax/combobox/combo-box-color-picker.aspx 

As I want to change the background colour of the selected item when an item in my dropdown is selected. 
It gives this bit of javascript to do the job, but it's obviously very old as no longer works in the same way.

function onClientSelectedIndexChanged(item) 
    var combo = item.ComboBox; 
    var comboInput = document.getElementById(combo.InputID); 
    //here ItemColor is a custom attribute that you can assign in ItemDatabound event 
    comboInput.style.backgroundColor = item.Attributes.ItemColor; 
</script> 


I have changed it to:
function onClientSelectedIndexChanged(sender, eventArgs) { 
       var combo = eventArgs.get_item();
       var comboInput = document.getElementById(combo.InputID);
       //here ItemColor is a custom attribute that you can assign in ItemDatabound event
       comboInput.style.backgroundColor = item.Attributes.ItemColor;
   }

but the  "document.getElementById(combo.InputID); " does not work, as i expected it wouldn't but I don't know what the replacement if it is?

Can anyone help?

Bex
Bex
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
79 views
Hello, I have RadGrid uses NoRecordsTemplate, but this template contains server tags as the following:
<NoRecordsTemplate>
   <center>                          
   <iframe src='<%= GetTrainingVideo("RiskManagement.Options") %>' class="EmbededVimeo"
             width="400" height="300" frameborder="0">
   </iframe>
   </center>
</NoRecordsTemplate>

if there is no data at page load the template works fine, but when delete the last record the grid rebind itself and generate the following JS error:

Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'hidden" />
    </div>
|0|updatePanel|ctl0'.

This issue just appear when host the application under secure protocol (HTTPS),

I've tried to create the content of NoRecordsTemplate server side at the following event handlers: OnItemCreated and OnPreRender, but the issue still exist.

Do you have resolution for this issue?
Chafik
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
179 views
Is it possible to edit unbound checkbox in a radgrid? my experience is telling me no, but perhaps there is trick i could use to do so.

i have a grid bound to a sqldatasource. the data source includes a dummy column cast as a bit to default true. the check box displays checked (as expected) but whenever i enter edit mode, uncheck the box, then click update, the check box reverts to checked because - i surmise - that it is rebinding to the dummy bit column which is set to 1/true.

it is this surmised behavior which i wish to override. is it possibe? if not, would you consider adding a feature to allow for a free standing unbound check box so that developers can present a toggle for subsequent processing of grid items? i do not care to save this information to a data store - i only need it to process selected grid items.
Marin
Telerik team
 answered on 03 Jul 2012
1 answer
51 views
Hello ,
I have a search page in my application , on editing and saving the results of the search i get the following error -

"Error while executing filter IECleanAnchorsFilter - [object Error]" error message. 

The search page has Rad Editor fields.
Can you please suggest why is this happening?
Rumen
Telerik team
 answered on 03 Jul 2012
34 answers
796 views
Hi to all,
I have upgraded my telerik controls from 2011.2.915.40 to 2012.1.215.40 with msi installer.
After uprade I discovered that defaultbutton declared for asp:Panel does not fire postback on pressing
the key Enter.
Here is small example. It works fine with older Telerik.Web.UI, but not with Q1 2012.
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Test._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test</title>
</head>
 
<body>
    <form id="MainForm" runat="server">
        <telerik:RadScriptManager ID="RadSCM" runat="server" />
        <asp:Panel ID="pnlWrapper" runat="server" DefaultButton="btnSearch">
            <telerik:RadTextBox ID="tbSearch" runat="server" EmptyMessage="Search" Width="130" />
            <telerik:RadButton ID="btnSearch" ButtonType="StandardButton" Text="Search" ToolTip="Searching" runat="server" OnClick="btnSearch_Click" />
        </asp:Panel>
        <asp:Label ID="lblMsg" runat="server" />
    </form>
</body>
</html>
using System;
 
namespace Test
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.Text = string.Empty;
        }
 
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            lblMsg.Text = "O.K. - Button fired";
        }
    }
}

Does anybody know where is the problem?
Thanks
-Marian
Vasil
Telerik team
 answered on 03 Jul 2012
3 answers
94 views

Hi ,
by setting dateinput-label property to any string value for example "DATA:" , the control is rendered with the label duplicate. ("DATA: DATA:")

This is my piece of code:

<telerik:RadDatePicker ID="RadDatePicker1" DateInput-Label="TESTO:" runat="server">
</telerik:RadDatePicker>    

My version of Telerik Library is 2012.2.607.35
Thanks in advance
Gaetano

Vasil
Telerik team
 answered on 03 Jul 2012
1 answer
97 views
The Xaxis does not show the correct labels and all the september's are not grouped together 

What am i doing wrong

Dim oldsubcategory_id As String = "ZZ"
        Dim subcategory_id As String
        Dim currentSeries As ChartSeries = Nothing
        BarChartForAcc.Series.Clear()
        If (ShowList().Count > 0) Then
            For Each DataRow In GuiDataSource().Rows
                subcategory_id = DataRow("ACCOUNTNUM")
                If subcategory_id <> oldsubcategory_id Then
                    currentSeries = BarChartForAcc.CreateSeries(DataRow("ACCOUNTNUM"), Color.Empty, Color.Empty, ChartSeriesType.Bar)
                    currentSeries.Appearance.Border.Color = Color.Black


                    currentSeries.Appearance.ShowLabels = False
                    oldsubcategory_id = subcategory_id
                End If
                If Not (currentSeries Is Nothing) Then
                    currentSeries.AddItem(DataRow("AMOUNTCUR"), DataRow("TRANSDATE"))
                End If
            Next
        End If
        BarChartForAcc.ChartTitle.TextBlock.Text = "By Month For " & TheYear.ToString
Peshito
Telerik team
 answered on 03 Jul 2012
1 answer
61 views
Hi,

How can I avoid the change in style of radtreeview nodes on hover?

Thanks
Princy
Top achievements
Rank 2
 answered on 03 Jul 2012
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?