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

I am using Q3 2010 ASP.NET AJAX controls, and am having a problem with the OnBlur event. I am trying to do a calculation similar to the Grid Header/Footer Calc example in the demo. What I have is as follows:

Main page grid launches a tooltip per record. The tooltip content is a user control. Inside the user control is a grid and some labels. The grid is immediately put into edit mode when the tooltip is opened, and when the user exits the editable field in a given record, I want to update the label.

I have followed the example, and had no luck. Right now I have a RadNumericTextBox with ClientEvents set OnBlur="OnBlur" and a javascript method named OnBlur() with just a alert. Nothing happens.

I have added an AjaxPanel around the entire control. No change. I have instead used OnBlur="javascript:OnBlur()". No change. I have put the script in the parent of the tooltip. No change...

Any suggestions?

All help greatly appreciated.

Thanks,
B
Bruce
Top achievements
Rank 1
 answered on 25 Jul 2011
2 answers
76 views
Is it possible to populate a combo box purely on the client, without any SqlDataSource or web service call?

For example, I have a list box with two RadCombBox objects in the ItemTemplate.   The first combo box is called "Type" and contains two hard-coded values ("Fruit" and "Color").   The second combo box is called "Values" and it needs to both support autocomplete and load on demand of only values appropriate for the selected value in the first box.  The possible values for the second box is a small, well-defined list that won't change often, so I don't want to incur a call to the database.

So, if the user selects "Fruit" from the first box, and then starts to type into the second box, I only want to show the user the fruit values (apple, banana, orange, and so on) that match their filter. (E.g., if they type "or" then I should only show "orange.")

On the other hand, if the user selects "Color" from the first combobox, and then starts typing into the second box, I only want to show the user the color values (red, green, blue, etc.) that match their filter. (E.g., if they type "re" then I should only show "red".)

I see from the docs how to do this with a DB or web service call;  the question is could I do this against a fixed list in the client page, or by binding to the results of some JavaScript method, or by using some kind of prefix in the items list of the second box, so I don't have to call out over the wire to a data server?


Thanks
KN425000
Top achievements
Rank 1
 answered on 25 Jul 2011
2 answers
125 views
Is is possible to double click on a given date, and rather than opening the day, direct the user to a new page and include the date clicked as part of the querystring?

I have a simple calendar that I would like a user to double click a date, then the user is directed to a form that will be submitted to a database. I would like to populate a lable on the form with the date the user double clicked.

Thank you in advance.
Allan
Top achievements
Rank 2
 answered on 25 Jul 2011
0 answers
77 views
I'm using a RadListview that is bound to a sql database in my application.  When I edit items in that listview, I want several field to appear as radComboBoxes rather than text fields.  I want the combo box to be selected on the data that is in the field, but allow the user to select any other option.  When the user clicks save on the listview edit, I want to update the database with the selected value of the combo box.

I'm sure there are several code examples out there, but I just can't seem to be able to locate one.  

Any help would be greatly appreciated!!!


Dave
Dave
Top achievements
Rank 1
 asked on 25 Jul 2011
1 answer
126 views
I have an issue about raddatetime picker box border color.For some info; we use Webblue theme and version 2010, 3, 1109, 40 telerik dlls in our project.
When we refresh page,first of all,box border colors become black.(look attach : raddatepicker1).But after the refresh finished they looks like with normal colors (like attach : raddatepicker2)

Can you help me about this issue?
Thanks.
Galin
Telerik team
 answered on 25 Jul 2011
1 answer
49 views
hi...
      Paging is not working without onneeddatasource. how can solve this problem ??
Pavlina
Telerik team
 answered on 25 Jul 2011
2 answers
88 views
Right now, I have a column with the standard three sort options:  ascending -> descending -> natural.

My client wants either an ascending sort or natural, because in this context a descending sort would potentially confuse the issue.

Is there a "simple" configuration option for this?
 
I would prefer not to get into custom sorts or client-side programming.
Tomica
Top achievements
Rank 2
 answered on 25 Jul 2011
1 answer
451 views
  I have a RadGrid with a DetailsTable... Inside the details table, I have a template column with a button.. I need to know which row in the original Grid does the details table of the clicked button belong too.... any ideas???

 (When I click Button2, I need to know which row in the original RadGrid that button belongs to)
   
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="False" runat="server" AllowPaging="True" PageSize="10"
               Width="60%" GridLines="None" Skin="WebBlue"
               OnNeedDataSource="RadGrid1_NeedDataSource"
               OnItemCommand="RadGrid1_ItemCommand"
               OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
               OnPrerender="RadGrid1_PreRender" >
               <MasterTableView ShowHeader="false" Width="100%">
                    <DetailTables>
                        <telerik:GridTableView Name="DetailsTable1" Width="100%"
                           ShowHeader="false" AutoGenerateColumns="false">
                            <Columns>
                              <telerik:GridTemplateColumn UniqueName="Column2">
                                   <ItemTemplate>
                                           <telerik:RadButton ID="Button2"
                                               runat="server"
                                               Text="Button2"
                                               OnClick="Button2_Click" />
                                   </ItemTemplate>
                               </telerik:GridTemplateColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
 
                   <Columns>
                      <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                           <ItemTemplate>
                                           <telerik:RadButton ID="Button1"
                                               runat="server"
                                               Text="Button1"
                                               OnClick="Button1_Click" />
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>
                   </Columns>
               </MasterTableView>
    </telerik:RadGrid>


  Thnx! Gavin
Genti
Telerik team
 answered on 25 Jul 2011
7 answers
143 views
I'm trying to reproduce the behavior of a pre-existing grid which opens up only 2 columns for updating:  a date and a quantity
if either of them is changed the back end database is updated
I used a template with a label in the ItemTemplate and a RadNumericTextBox in the EditItemTemplate and triggered the update on the quantity changed event for the quantity
but... then the automatic aggregate didn't work - and there is a lot of filtering possible
my kluge is to have 2 quantity columns - one read only for the total and the other a template with only the EditItemTemplate

is there a way to update the quantity with only one column and still aggregate without a lot of extra code?
Elliott
Top achievements
Rank 2
 answered on 25 Jul 2011
3 answers
135 views
I have a page with a tooltip on it defined thus...
<telerik:RadToolTipManager runat="server"
                           ID="RadToolTipManager1"
                           OffsetX="0"
                           OffsetY="0"
                           ShowDelay="5000"
                           HideDelay="500"
                           Width="320"
                           Height="210"
                           Animation="None"
                           Text="Loading..."
                           RelativeTo="Element"
                           OnAjaxUpdate="RadToolTipManager1_AjaxUpdate"
                           OnClientBeforeShow="FolderTreeToolTipBeforeShow"
                           EnableShadow="true"
                           HideEvent="LeaveTargetAndToolTip"
                           AutoCloseDelay="10000" />
It doesn't matter what I set ShowDelay to, the tooltip shows as soon as I hover over it.

Pourquoi?

-- 
Stuart

Svetlina Anati
Telerik team
 answered on 25 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?