Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
Hello,
I have used the http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx example as base of my app. I don't know how to do when doucle click in a date column to appear the datepicker to select a different date.
I have this in the UpdateValues(grid)  javascript function:
case "date":
                        HideEditor(editedCell, "textbox");
                        break;


I also added this code on the grid column:

<telerik:GridTemplateColumn UniqueName="date" SortExpression="date" AutoPostBackOnFilter="true"
                   HeaderText="DateTimeCol" HeaderStyle-Width="10%" AllowFiltering="true" DataField="date">
                   <ItemTemplate>
                       <asp:Label ID="lblDate" runat="server" Text='<%# Eval("date") %>' />
                      <telerik:RadDateTimePicker  runat="server" ID="txtDate"  DbSelectedDate='<%# Eval("date") %>'
                       Style="display: none">
                       </telerik:RadDateTimePicker  >
                   </ItemTemplate>
                   <InsertItemTemplate>
                       <telerik:RadDateTimePicker  runat="server" ID="dateInsert" Width="95%">
                       </telerik:RadDateTimePicker>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4a" runat="server" ErrorMessage="* Required Field"
                           ControlToValidate="dateInsert" BackColor="Red" BorderColor="#FF0066" BorderStyle="Solid">
                        </asp:RequiredFieldValidator>
                   </InsertItemTemplate>
                    <EditItemTemplate>
                           <telerik:RadDateTimePicker runat="server" ID="dateEdit" Width="95%"  DbSelectedDate='<%# Eval("date") %>'>
                           </telerik:RadDateTimePicker >
                           <asp:RequiredFieldValidator ID="RequiredFieldValidator4b" runat="server" ErrorMessage="* Required Field"
                            ControlToValidate="dateEdit" CssClass="error" >
                           </asp:RequiredFieldValidator>
                     </EditItemTemplate>
               </telerik:GridTemplateColumn>

Anybody knows what is the problem?
Thanks in advanced;
Jon
Genti
Telerik team
 answered on 21 Jul 2011
1 answer
146 views
http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx

shows a grid being bound to an oData service.  Works great but I am wondering if there is any examples of the best water to perform the insert, update and delete portion against an oData service? 
Mira
Telerik team
 answered on 21 Jul 2011
1 answer
252 views

Say I have a RadListBox, and inside the ItemTemplate for each item, I have two RadComboBox controls, a RadTextBox control, and a RadButton control.   I capture the button click in the RadButton's OnClientClicked event handler.

Inside the OnClientClicked event handler, I want to get a reference to the parent list item, so that I can I can delete that item.

For example:

function Button_OnClientClicked(button)
{
    var listBox = $find('MyListBox.ClientID');
    var itemContainingTheButtonThatWasClicked = /*  this is what I need to know    */
    listBox.get_items().remove(itemContainingTheButtonThatWasClicked);
}

Thanks
Dimitar Terziev
Telerik team
 answered on 21 Jul 2011
11 answers
219 views

Hi,

 I have a problem with the skin on sub-tabs on a RadTabStrip. The sub-items have no skin and it is impossible to see which of the sub-tabs are selected.

The same problem can be seen on this page:

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/serverside/serverevents/defaultcs.aspx

I also created a small example showing the problem

<telerik:RadTabStrip ID="RadTabStrip11111" runat="server" EnableAjaxSkinRendering="true" Skin="Vista" CausesValidation="false" SelectedIndex="0" >

      <Tabs>

        <telerik:RadTab Text="aaa">

          <Tabs>

            <telerik:RadTab Text="Sub 1"></telerik:RadTab>

            <telerik:RadTab Text="Sub 2"></telerik:RadTab>

          </Tabs>

        </telerik:RadTab>

        <telerik:RadTab Text="bbb"></telerik:RadTab>

      </Tabs>

    </telerik:RadTabStrip>

 

(Version: 2009.1.408.20)

Princy
Top achievements
Rank 2
 answered on 21 Jul 2011
1 answer
70 views
I have a couple of questions about some of the functionality of the rotator when in coverflow.

1) Is there a specific property to turn on to allow the reflection?  I have set the rotatortype to coverflow but there is no reflection.

2) I have taken the code from the coverflow sample here.  But I want to add functionality such that when the user double clicks the picture that is currently being shown, then I want to show that picture in a larger image.

Thanks in advance,
Lee
Slav
Telerik team
 answered on 21 Jul 2011
0 answers
106 views
Hello! I'm having this problem (I need at the click of a button to save the file on the client side. The button is in editformsettings in Grid! 
<asp:Button ID="ButSave" runat="server" Text="Save" CommandName="SaveAnket"/> 
Grid event! 
 
void Grid_ItemCommand (object sender, GridCommandEventArgs e) 
        

                
if (e.CommandName == "SaveAnket") 
                

                    
SaveBlankOnClient (); 
                

       

 
protected void SaveBlankOnClient () 
        

            
string filename = "TextFile.txt"; 
            
string longPath = MapPath (filename); 
            
Response.ContentType = "APPLICATION / OCTET-STREAM"; 
            
string disHeader = "Attachment; Filename = \" "+ filename +" \ ""; 
            
Response.AppendHeader ("Content-Disposition", disHeader); 
            
System.IO.FileInfo fileToDownload = new System.IO.FileInfo (longPath); 
            
Response.Flush (); 
            
Response.WriteFile (longPath); 
            
Response.End (); 
        


This operation does not work for me from the grid ... But in an ordinary button, it saves the file! I understand this is due to postback? 
How save file from the GridHelp please)))
Timyr
Top achievements
Rank 1
 asked on 21 Jul 2011
1 answer
97 views
We have a data intensive application and in one particular page, we have a Rad Grid display 180 columns/10rows of data. The page works well in IE8 and takes about 10 seconds to load, but the same page takes one and a half minute to load in IE7.

We know that IE7 Javascript is slower than IE8, but the difference in rendering times between these two browsers is very high. Are there any suggestions to improve the performance in IE7?
Maria Ilieva
Telerik team
 answered on 21 Jul 2011
2 answers
816 views
Hello,

I have come across a special scenario in the web app i am developing where I need to implement custom databinding. That is i need to bind my radgrid without using its NeedDataSource Event. I want something like this (traditional ASP.NET GridView way) :
myRadGrid.DataSource= myDataSet;
myRadGrid.DataBind();
And because of this, I also need to implement custom sorting, filtering and paging. 
It will be very nice if you could post a sample app with the code implementing all of the above requirements.
Ananth Kumar
Top achievements
Rank 2
 answered on 21 Jul 2011
9 answers
399 views
Hi,

I have a Grid which has a couple of aggregated footers. They even work OK.
However, I cannot get it to display localized values. This is the markup I'm using:
<telerik:GridNumericColumn DataField="Quantity" DataType="System.Int32" UniqueName="Quantity"
    FooterAggregateFormatString="<%$ Resources:strings,strNumberOfProducts%>" Aggregate="Sum">
    <HeaderStyle HorizontalAlign="Center" />
    <ItemStyle HorizontalAlign="Right" Width="50" />
</telerik:GridNumericColumn>
It correctly picks up the default (English) string but never picks up the localized version - although all the other parts of the grid appear localized.
I even tried to set the Culture property of the grid, but no luck.

Any idea on what I'm doing wrong?

v
Daniel
Telerik team
 answered on 21 Jul 2011
0 answers
190 views
Hi,

I'm evaluating the RadGrid control and I have problems with filters.

I have a datetime column and I want to add a filter for filtering between two dates. If I use a GridDateTimeColumn I can use a RadDatePicker in the filter, but only for one date (not a range).

After studying the sample 'Filtering range with RadDatePicker instances in a custom filtering column' you provide in the code library (code library article), I think it could be a solution.

I've used the sample code to create in my app a custom templated column and the filtering process works fine, but there is a problem:
    - I choose two dates in the combo and apply the filter, the filtering works fine.
    - If I apply the filter of another column (without clearing the filter applied to datetime), the datetime filter is cleared and only remains the filter of the other column.

How can I apply filters in other columns after datetime filtering without loosing the datetime filter?

Thanks in advance,
John.
john
Top achievements
Rank 1
 asked on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?