Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 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
92 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
151 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
151 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
63 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
84 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
273 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
2 answers
160 views
Hi, i am trying to style our radButtons in the same way our asp buttons are styled.  Here is our current css class for our asp buttons:

.button {
    height: 21px;
    background-image: url('/Common/Images/button.png');
    background-repeat: repeat-x;
     
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
     
     
    border-left: 1px solid #666;
    border-right: 1px solid #666;
    border-top: 0px;
    border-bottom: 0px;
    color: white;
    padding-left: 12px;
    padding-right: 12px;
    cursor: pointer;
         
}


I have tried a few different ways but i get some weird things happening.  For instance, it also styles our rad toggle buttons which is very weird.  Im sure it's going to be quite simple for you guys but im just struggling to get it right.

Some css i tried:
.RadButton {
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
    border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
     
     
     
    border-left: 1px solid #666 !important;
    border-right: 1px solid #666 !important;
    border-top: 1px solid #666 !important;
    border-bottom: 1px solid #666 !important;
    color: white !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    cursor: pointer !important;
}
.rbDecorated {
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}
.rbSkinnedButton {
  height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}
.rbSkinnedButton:hover
{
    background-position: initial !important;
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}

Any help you can provide is greatly appreciated.

Thanks,
Michael
Bozhidar
Telerik team
 answered on 06 Apr 2012
4 answers
147 views
How to copy data from parent level to child level (see in attached file). For example, If I need to edit price of all rooms on the 1st floor according to 1st floor price. Firstly, I need to change the price from 200 to 210 of 1st floor price. Then I do not need to edit row by row at child level. Does telerik provide a function to copy price from 1st floor price to all rooms price on the 1st floor? or I have to program with another technic?
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
2 answers
91 views
Hi all

Helpme pls.

I've a page
which contains a tabstrip
which contains usercontrols for each tab
one of these contains a radgrid with
*** EditMode="EditForms"
*** autogeneratecolumns="false" and binded on a list of objects via needdatasource
which displays an insert form with just this: <asp:Button ID="btnTemp" runat="server" Text="Hallo" />
(no events handler in this form and no javascript scripts are in)

The radgrid has 3 columns defined in ascx. The others columns must be added at runtime by the user with his preferences

Columns are added through a button at runtime. User select a combovalue and press "ADD" to add the new column.
ADD button just add the new columns in a session variable with the list of current columns added and create the column.

Starts the Page_Init event where I (re)add the columns added by the user.

All works. Viewstate is consistent. I like it.

I click on InsertItemCommand on the grid and my forms appears with just its sad "Hallo" button.
This button has no onclick event handler.
If I click it... no exceptions are thrown but the postback starts and the form gets closed.

And I'm being just crazy to understand WHY :)

I've tried

EnableColumnsViewState="false"/"true"
EnableViewState="true/false"


Using the form in popup mode the same happens! The ADD button doesn't fire any ItemCommand. Just Page_Init and Page_load of the usercontrol contained.

PLS HELP
Vincenzo
Top achievements
Rank 1
 answered on 06 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?