Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

Hello!

I am using a trial version of their software and I'm working with the component RadScheduler and I have the following problem.

When I add an appointment, I need to "start time" and "end time" appear in 24 hour format. Is this possible?

Saul
Top achievements
Rank 1
 answered on 03 Sep 2010
3 answers
127 views
It's been a long road but I've been able to manipulate most of the controls on the AdvancedForm, but now I would either like to make one of the RadTextBox have a button and have it act like a hyperlink and redirect to another form or add a hyperlink control to the AdvancedForm.  I tried

 

Dim txtActTickID As Telerik.Web.UI.RadTextBox = DirectCast(e.Container.FindControl("AttrAction Ticket"), Telerik.Web.UI.RadTextBox)
txtActTickID.ReadOnly = True
txtActTickID.BackColor = Drawing.Color.LightGray
txtActTickID.ShowButton = True
txtActTickID.ClientEvents.OnButtonClick = "ShowAT(" & txtActTickID.Text & ")"
That was executing every time I tried to edit an appointment.  I also tried
Dim objHL As New HyperLink
objHL.NavigateUrl = "TestForm.aspx"
objHL.Text = "Show Test Form"
e.Container.Controls.Add(objHL)
but the control never showed up?  Any ideas?
Veronica
Telerik team
 answered on 03 Sep 2010
3 answers
117 views
I have a radajaxloading panel as followed:

 

<td runat="server" style="padding-bottom:15px; width:40px;">

 

 

 

<asp:Panel ID="pnlHolder" runat="server" Visible="true" ></asp:Panel>

 

 

 

 

<telerik:RadAjaxLoadingPanel id="LoadingPanel1" runat="server" Width="30px"

 

 

Height="30px" IsSticky="false" >

 

 

 

<asp:Image id="Image2" runat="server" ImageUrl="~/Image/ajax-loader.gif" />

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

</td>

 


I have a click event that fires a javascript as followed based on a click event:

<

 

script type="text/javascript" language="javascript">

 

 

var currentLoadingPanel = null;

 

 

var currentUpdatedControl = null;

 

 

 

function AjaxRequestStart() {

 

 

 

if (document.getElementById("<%= hdnAvailabilityChecker.ClientID %>").value == 1) {

 

 

return;

 

}

 

 

if (document.getElementById("<%= TextBox7.ClientID %>").value == "") {

 

 

return;

 

}

 

 

document.getElementById(

"<%= TextBox7.ClientID %>").value = document.getElementById("<%= TextBox7.ClientID %>").value.toUpperCase();

 

 

currentLoadingPanel = $find(

"<%= LoadingPanel1.ClientID %>");

 

 

currentUpdatedControl =

"<%=pnlHolder.ClientID %>";

 

 

currentLoadingPanel.show(currentUpdatedControl);

 

var t = setTimeout("AjaxResponseEnd()", 2000);

 

}

 

 

function AjaxResponseEnd() {

 

 

if (currentLoadingPanel != null) {

 

currentLoadingPanel.hide(currentUpdatedControl);

document.getElementById(

"<%= hdnAvailabilityChecker.ClientID %>").value = 1;

 

 

}

 

 

}


The script works fine when we click the button for the first time. But on the second click it throws the following message:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_MainContent_pnlHolderPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

Any help on this will be appreciated. Thanks.

Pavlina
Telerik team
 answered on 03 Sep 2010
5 answers
496 views
Hello,

I have checkbox in the grid and when i try to export to excel it comes out as blank values.
Can you please provide me the solution, It is urgent please.

<telerik:GridCheckBoxColumn DataField="SiHy" HeaderText="SiHy" SortExpression="SiHy" UniqueName="SiHy" AllowFiltering="false"/>
exportOnlyData is set to true; Is there anything else I need to do ?
When I set exportOnlyData to false it exports the real checkbox to excel. I want the values.

Regards,
Parth Patel
Daniel
Telerik team
 answered on 03 Sep 2010
4 answers
173 views

Hello,

I am adding exception to Recurrence rule.

I followed this link Recurrence Rule Excpetion

1.RecurrenceRule RecurrenceRuleEvent = RecurrenceRule.TryParse(strRecurrenceRule);
2.RecurrenceRuleEvent.Exceptions.Add((Convert.ToDateTime("8/25/2009 10:00 AM").ToUniversalTime()));

I want to add Exception to "8/25/2009 10:00 AM"

But this line adding exception to "8/25/2009 04:30 AM"

I have attached Screen shot that Whats the basic problem.

The Recurrence Rule after Adding Exception.

DTSTART:20100825T090000Z
DTEND:20100825T093000Z
RRULE:FREQ=HOURLY;INTERVAL=1
EXDATE:20100825T090000Z,20100825T043000Z,20090825T043000Z

Thank you!

T. Tsonev
Telerik team
 answered on 03 Sep 2010
3 answers
188 views
Hi ,

    I am using Radscheduler control, How to set Datetime format in WeekView-ColumnHeaderDateFormat Property?.
Like "mm/DD/yyyy" . Please help me.


Regards,
Tamilselvan.S
Veronica
Telerik team
 answered on 03 Sep 2010
6 answers
248 views

I've been able to track down my problem to a very specific scenario, one to which I hope there is an easy solution. I have a page with a single update panel (had to use the ASP.NET one due to conditional updating) which contains a "Show ToolTip" link only and a single ToolTip with an update panel and a close button. That simple. When I click on the link "Show ToolTip" the tooltip pops up just fine. When I click on the "Close ToolTip" button inside the tooltip it closes just fine. The close button fires a JavaScript method to close the tooltip and then updates the update panel contents. When I click on the "Show ToolTip" link again (A SECOND TIME), the screen goes modal (like it will load the tooltip) but shows no tooltip. I believe it is a problem with the target control id because if I set the target control id to blank and center the tooltip it comes up. This is not the behavior we want to exhibit in our application, though. Lastly, the target control must be variable because we have this tooltip popping up in a repeater.

The page code:

<form id="form1" runat="server">
<asp:scriptmanager runat="server"></asp:scriptmanager>
  
<telerik:RadToolTip ID="EditActivityModalToolTip" ClientIDMode="Static" Modal="true" runat="server" IsClientID="true" Skin="Telerik" 
    ShowEvent="FromCode" HideEvent="FromCode" EnableViewState="True" EnableShadow="true" Position="MiddleRight"
    OnClientBeforeHide="EditActivityTooltipOnClientBeforeHide">
    <asp:UpdatePanel ID="ToolTipUpdatePanel" runat="server">
    <ContentTemplate>
        <asp:Button ID="CloseButton" OnClick="CloseButton_CloseClicked" runat="server" Text="Button" />
    </ContentTemplate>
    </asp:UpdatePanel>
</telerik:RadToolTip>  
<div>
    <asp:UpdatePanel ID="MainUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <a id="SampleLink" onclick="javascript:ShowEditActivityToolTip('SampleLink', 'EditActivityModalToolTip')";>Show ToolTip</a>
      
    </ContentTemplate>
    </asp:UpdatePanel>
</div>
</form>

The JavaScript method(s):

<script type="text/javascript">
    var toHideEditActivityToolTip;
  
    function EditActivityTooltipOnClientBeforeHide(sender, args) {
        if (!toHideEditActivityToolTip) args.set_cancel(true);
    }
  
    function HideEditActivityToolTip(toolTipClientId) {
        toHideEditActivityToolTip = true;
        var radToolTip = $find(toolTipClientId);
        radToolTip.hide();
    }
  
    function ShowEditActivityToolTip(sender, toolTipClientId) {
        toHideEditActivityToolTip = false;
        var radToolTip = $find(toolTipClientId);
        radToolTip.set_targetControlID(sender);
        radToolTip.show();
    }
  
    function OnClientBeforeShow(sender, args) {
        sender._popupBehavior.set_keepInScreenBounds(false);
    }  
</script>

And lastly, the code behind for the close button:

protected void CloseButton_CloseClicked(object sender, EventArgs e)
{
    ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "HideFilterToolTip", "HideEditActivityToolTip('" + EditActivityModalToolTip.ClientID + "');", true);
    MainUpdatePanel.Update();
}

I also submitted this is a case due to the timeliness of needing an answer but I do sincerely appreciate and look forward to your remarks here. Regards!

mc2000
Top achievements
Rank 1
 answered on 03 Sep 2010
1 answer
77 views
Hi

I'm new but I like to know is it possible to have in scheduler  that is group by some resource some kind of hierarchy ?
What I have in mind :
I have sheduler that is set to show time TimelineView and group by resource named "Room".
Is it possible to group by Room type and when I click on Room type to show me Rooms under like in some kind of tree ?

somthing like

HERE
Peter
Telerik team
 answered on 03 Sep 2010
1 answer
134 views
this is what i have on aspx
<telerik:RadComboBox ID="ddl_store" runat="server" Font-Size="10px" ></telerik:RadComboBox>
and this is what i have on the server side aspx.vb
 While rs2.Read
                ddl_store.Items.Insert(New RadComboBoxItem(RTrim(rs2.Item("store_name").ToString)))
            End While

when i use the immediate window to see if there's any items that get added to the box, it shows me that there are items in there. but on the web page, it doesn't have anything. Can you let me know why?
Veronica
Telerik team
 answered on 03 Sep 2010
1 answer
66 views
Hi, I'm new to Telerik and am trying to get my bearings.  I hope to get some basic guidelines/best practices with this question.  I have a web app for School Counselors helping Students.  The Counselor logs on, enters a students code and gets all their data.  I'm trying to get the student's schedule to appear as well. Also, I want to checkbox toggle to add/remove the schedule of other users such as the Advisors and Tutors to show availability of times for all entities.
  I've been working with this Demo as a learning tool.
My question is, how is it best to approach getting granular info from the database?  For example.  (using the telerik Appointments table), how does one get just the appointments for a specific user_id, or two user_id's and bind them back to the scheduler?

1) I tried using a SqlDataSource and it seems great for displaying----everything in the database.  Is it inherently simple or is there a way to leverage this control to squeeze what you want from the database and get specific datasets?

2) We use a product called MereMortal.NET as a framework for creating business objects.  I was able to get a bindinglist of the data I wanted and assigned that as the DataSource of the Scheduler and I even managed to save back to the database by hardcoding a few variables in.  But, that's when things start flying apart.  On the demo, if you right mouse click to enter a new appointment, you first get an extremely simple appointment form to fill in and on the bottom right it offers an "Options" selection which brings up a more advanced menu. When I hit the "Options" link, the program dies.  I'm guessing I don't have it wired up right somewhere.  I just don't know how/where to start---the debugger isn't helping me at the moment mainly because I don't know enough I think. If one is going to bind the data to a datasource (like a bindinglist) what is the overhead?  What do you need to know how to do?

3) Am I off base by trying to work with the demo and craft it to my needs? Should I be starting simpler?  If so, my original questions remain.

Any pearls of wisdom?

Thanks.
Best to All,

Don
Peter
Telerik team
 answered on 03 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?