Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
When we use the scheduler without using the TimeZoneOffset setting everything seems normal. The times displayed and stored in DB are the local Eastern Standard Times (EST). Lets say our user is in Central Standard Time (CST) which is -1 from EST so from my understanding TimeZoneOffset value should be set to -1:00:00. When I do that I see all appointments shift 1 hour back (12PM appointment shown at 11AM, and so on). So far so good. But then I double-click on 1PM timeslot to create a new appointment (using AdvancedInsertTemplate) and the form instead shows me 2PM start time when it should be showing 1PM start time. Why is this happening? Should I do additional javascript processing to display correct 1PM start time? Thanks
Plamen
Telerik team
 answered on 06 Apr 2012
1 answer
167 views
In my application I am using 2 RadDatePickers for selecting a range of Date. They are present inside a Div container.
These date pickers are using a shared RadCalendar and RadAjaxManager.
I have radio buttons that control the visibilty of the DatePickers.
A button which performs some action and causes a complete postback.

Everything shows fine when i load the page for the first time. 
 
Inline image 3

Then i hide the Div containing the DatePickers on click of one of the radio buttons using:

DivFromDate.Visibility  = false;
DivToDate.Visibility = false;

Then i click on the button which causes a complete postback.

My problem is when i show the Div again containing the DatePickers, on click of the last radio button using:

DivFromDate.Visibility  = true;
DivToDate.Visibility = true;

the UI of the RadDatePicker gets distorted.

Inline image 4

Any help would be appreciated.

Thanks,
Neha 
Eyup
Telerik team
 answered on 06 Apr 2012
20 answers
1.3K+ views
I've got the 3 required controls, radCaptcha, ValidationSummary and button along with other textboxes for information input.  The 3 controls all have ValidationGroup set to "group".  The rest of the controls on the page are being validated in the C# code-behind.  When I fill in all the fields that are required, but leave the captcha textbox blank, the captcha control does not get validated.  Is it possible to do this or do all of the textboxes on the page need to use a RequiredFieldValidator?
Slav
Telerik team
 answered on 06 Apr 2012
1 answer
108 views
Hi.
using this example:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

we see we can filter between 2 dates. (order date)
how is it possible to alter that column header so that there is a drop down from which when the user clicks, will show the same date calanders?
Furthermore, when they press a button in that drop down, it will go ahead and perform a custom filtering on the server side (same as raising the ItemCommand event for the grid)?

Thank you
Marin
Telerik team
 answered on 06 Apr 2012
2 answers
114 views
I have hooked up a handler to the OnSelectedIndexChanged event (server side) on my grid. When the mouse is used to select a row, the event fires and a call is made to the server to get some detail data for the row and to display it in a separate area of the page. This postback is ajaxified via the RadAjaxManager and it all works fine.

I want to make the same code execute when KeyboardNavigation is enabled and the user is navigating through the grid using the up/down arrow keys.

I have searched the forum postings extensively and have found various suggestions, none of which work for me. I have EnablePostBackOnRowClick set to true, and that doesn't help. So, the question is, can I get the code in my server-side method to execute when the user is using the arrow keys to navigate. Is there a client-side way to do this?

I have also tried to call my ajax request method from the OnRowSelected client side. When that code executes I don't have any selected items available in the grid, even though I have set the current row to selected in the client code. I can pass the row index into the ajaxRequest, but how do I then access the appropriate row in the grid so that I can get the data key and make my call to the server with information for detail on that row?

Any suggestions would be appreciated. Thanks.
Iana Tsolova
Telerik team
 answered on 06 Apr 2012
3 answers
177 views
I have a radgrid that is automatically put it edit mode on pre_render

foreach (GridItem item in radgrdResultDetail.MasterTableView.Items)
       {
           if (item is GridEditableItem)
           {
               GridEditableItem editableItem = item as GridDataItem;
               editableItem.Edit = true;
           }
       }

When i try and style the rows nothing works, all the rows are white as opposed to alternating colours when not in edit mode. I have tried the following in the itemdatabound (works in non edit mode) but none of the styling appears when the grid/row is in edit mode

if (Item["Status"].Text == "Reject")
        {
            foreach (GridColumn col in radgrdResultDetail.MasterTableView.AutoGeneratedColumns)
            {
                Item[col.UniqueName].ForeColor = Color.Red;
            }
        }
    }

Any help on this would be greatly appreciated.

Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
2 answers
165 views
Good morning

I have a requirement to calculate dynamically the difference between two times. I am currently facing a problem using RadGrid when I had implemented the requirement using RadDateTimePicker inside the RadGrid.

I want to calculate overtime hours dynamically in edit mode when the user changed [From] or [To] fields which are in type RadDateTimePicker, and the column which needs to calculated is TimeSpan. It works properly in read only mode, but i want to calculate it in edit mode too.

Is there any idea or method to solve this problem?

Thanks in advance
MAH
Top achievements
Rank 1
 answered on 06 Apr 2012
1 answer
75 views
Hi All,

I have a scenario where the RadEditor is stripping the Object Tags around an embedded mp3.

This is what we try to cut and paste HTML mode:
<p>
  <object width="100%" height="35">
    <embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.eteacher.pro/Portals/0/SCO/FX0186/FX0186.mp3" src="https://www.google.com/reader/ui/3523697345-audio-player.swf" width="100%" height="27" quality="best"></embed>
    <noembed>Podcast player feature available on website only.</noembed>
  </object>
  <br>
  Click the PLAY button to listen to this podcast.</p>

We then switch to Design Mode, go back to HTML mode and find this:
<p><embed height="27" type="application/x-shockwave-flash" width="100%" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="audioUrl=http://www.eteacher.pro/Portals/0/SCO/STR051/STR051.mp3" /><noembed /><br />
Click the PLAY button to listen to this podcast.</p>

This then causes other issues.. So my questions are:
1) Why is the object tag being stripped?
2) Is the top HTML code not well formed??

Thanks
Anthony
Rumen
Telerik team
 answered on 06 Apr 2012
1 answer
106 views

Hi,
I am using Telerk Web.UI.dll - version 2009.3.1103.35
I am using RadSpell to check spellings in multiple textboxes.
I would like to highlight the misspelled words in textboxes.
 
Is there a way to do that?
Following is the sample code.
Thanks,
Manisha

<telerik:RadSpell ID="RadSpellEval" runat="server" 
                ControlsToCheck="txtJust1, txtJust2, txtJust3, txtJust4"
                ButtonType="ImageButton" ButtonText="" ToolTip="Spell Check"    />
<table>
<tr><td><asp:TextBox id=”txtJust1” runat=”server”></asp:TextBox></td></tr>
<tr><td><asp:TextBox id=”txtJust2” runat=”server”></asp:TextBox></td></tr>
<tr><td><asp:TextBox id=”txtJust3” runat=”server”></asp:TextBox></td></tr>
<tr><td><asp:TextBox id=”txtJust4” runat=”server”></asp:TextBox></td></tr>
</table>
Rumen
Telerik team
 answered on 06 Apr 2012
7 answers
311 views
Hi.

I am using a radtooltip with a repeater on my master page. When i hover over the items of my repeater, the tooltip displays, but it only shows the values of the 1st item i hovered.
The funny thing is that it worked at first but then stopped working.

I have tried then to put it in an update panel, but it doesn't show anything anymore. it comes up but empty.

HELP!!!!!!!

Marin Bratanov
Telerik team
 answered on 06 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?