Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
137 views
Hello,

I have a rad grid with master and detail tables.  My pager style setting is NextPrevNumericAndAdvanced. 

Everything looks fine in IE 7 and 8, but in Firefox  the pager footer is squished and does not wrap so the 'change page' form text and text box are all overlayed on top of each other.  I have tried setting the height of the pager style but with no success.

Can you supply me with some direction or let me know if this is in fact a bug. (I'm using 2009 q1)

Below is my pager style code:
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevNumericAndAdvanced" ForeColor="black" Wrap="true"></PagerStyle>    

Here is my grid tag:
<pro:RadGrid  
    ID="rgMessageQueue"  
    runat="server"  
    Style="height: auto;color: #a5d7fe;"  
    AllowSorting="True"  
    AllowPaging="true"  
    CellPadding="0"  
    CellSpacing="0" 
    AutoGenerateColumns="False"  
    AllowFilteringByColumn="false"  
    OnItemCommand="rgMessageQueue_ItemCommand"  
    PageSize="20" 
    OnNeedDataSource="rgMessageQueue_NeedDataSource" 
    OnDetailTableDataBind="rgMessageQueue_DetailTableDataBind" 
    Skin="Office2007" 
    EnableEmbeddedSkins="false" 
    OnItemDataBound="rgMessageQueue_ItemDataBound" > 



Thank you in advance.
Ryan


Pavlina
Telerik team
 answered on 06 Apr 2012
1 answer
116 views
hello all ,

I'm newbie Telerik (ASP.Net ajax)..
i wnt to ask :
Does Telerik RadControls have problems with browsers if they 'll be upgraded .
in the other hand meaning, if any browser will be upgraded to a new version in future , may i have problems ??? i need to upgrade my projects or not neccessary ??
i've seen an article about support browsers ,it's ok , but i ask about future versions of browsers ..

thanks in advance
Iana Tsolova
Telerik team
 answered on 06 Apr 2012
1 answer
126 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
187 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
115 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
138 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
206 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
176 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
83 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
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?