Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Hi,

Radtooltip does not work in IE7 or IE8 compatibility view if RadWindowManager is present on the page. Please find the code below.

 

 

 

<form id="form1" runat="server">
  
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  
</telerik:RadScriptManager>
  
<telerik:RadWindowManager ID="RadWindowManagerMessageBoxes" runat="server">
  
<Windows>
  
<telerik:RadWindow Animation="Fade" Modal="true" ID="radWindow1"
  
runat="server" VisibleStatusbar="false" VisibleTitlebar="false">
  
</telerik:RadWindow>
  
  
</Windows>
  
</telerik:RadWindowManager>
  
<label><a href="#" id="aToolTipPromoCode" runat="server"> What's this?</a></label>
  
  
  
<telerik:RadToolTip TargetControlID="aToolTipPromoCode" ID="radToolTipFieldLevel" runat="server" RelativeTo="Element" 
  
ShowEvent="OnClick" Width="200" Height="150" HideEvent="LeaveTargetAndToolTip" Position="MiddleRight" Text="Text to be displayed in tooltip">
  
</telerik:RadToolTip>
  
  
</form>

Please help!

Thanks,
Vinayak

 

Svetlina Anati
Telerik team
 answered on 18 Nov 2010
3 answers
114 views
Can we please have the classes listed in alphabetical order? There are currently "Generic*" items scattered all over the place.

-- 
Stuart
Georgi Tunev
Telerik team
 answered on 18 Nov 2010
4 answers
138 views
Windows 7 x64, VS 2008, ASP.Net AJAX v 2010.2.826.35.

I have a page with number of multiline RadTextBoxes with ResizableContolExtenders to allow the height of the box to be increased and everything works as expected.

I'm trying to split the page into 3 tabs with 3 RadMultiPage panels and now have an issue with my ajax resizablecontrol extender location.

The resizing handle only appears in the correct place on the initially selected tab, on the unselected tab it appears in the wrong place - see images.

If I change the selected Index to 1 the 2nd tab displays correctly and the 1st tab one does not. As soon as I click the resize image it jumps to where it should be and it stays in the correct place as I move between tabs.

 

<asp:Panel ID="Pan_dataName" runat="server" Width="420" Height="32" ScrollBars="None"><telerik:RadTextBox runat="server" ID="dataName" Text='<%# Bind("Name") %>' TextMode="MultiLine" MaxLength="300" Width="420" ToolTip="" /></asp:Panel><ajaxToolkit:ResizableControlExtender ID="rce_dataName" runat="server" TargetControlID="Pan_dataName" ResizableCssClass="resizingText" HandleCssClass="handleText" MinimumWidth="420" MinimumHeight="32" MaximumWidth="420" MaximumHeight="250" HandleOffsetX="4" HandleOffsetY="6" OnClientResizing="ResizeRadTextBox" /><br />
The handle image is identified in the CSS, position is theoretically taken care of by the control itself.

#copy .handleText
{
    width:16px;
    height:16px;
    background-image:url(../../Images/HandleGrip.gif);
    overflow:hidden;
    cursor:se-resize;
}

Unusually it isn't an IE issue as the same happens in Firefox.

Any ides how I can get it to draw the tabs correctly?

B
Bernard Myers
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
64 views
Hi,

I am using the RadGrid control to show some very basic data and allow users to insert new items and edit existing ones. I have had a look at the documentation and demos concerning inserting but I seem to be running into a problem. No matter what I try the new value is returned as null. Please find my code below:

Markup:

<telerik:RadGrid ID="RadGrid_Baskets" runat="server"                            
    AutoGenerateColumns="False"                                                                                                                
    CssClass="basket_grid"
    DataKeyNames="id">
 
    <ClientSettings 
        Selecting-AllowRowSelect="true"                                
        EnablePostBackOnRowClick="true"
        ClientEvents-OnRowClick="RadGrid_Basket_OnRowClick"/>                           
 
    <MasterTableView CommandItemDisplay="Top">
        <Columns>                                                                       
            <telerik:GridBoundColumn
                DataField="name"
                HeaderText="Basket Name"
                UniqueName="name"/>                                                                                   
 
            <telerik:GridTemplateColumn Display="false"
                ReadOnly="true">                                   
                <ItemTemplate>                                           
                    <input type="hidden" id="item_id_hidden_<%#eval("id")%>" class="item_id" value="<%#eval("id")%>" />                       
                </ItemTemplate>                                       
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn>                                   
                <ItemTemplate>                                           
                    <asp:LinkButton ID="ImageButton_Edit" runat="server"
                        CommandName="Edit"                                                                     
                        Text="Edit"                                               
                        Visible='<%#Not IsSystemBasket(Eval("name"))%>'/>
                </ItemTemplate>                                       
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn
                UniqueName="DeleteColumn">                                   
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton_Delete" runat="server"
                        CommandName="Delete"                     
                        ImageUrl="../Objects/CSS/telerik/Grid/Delete.gif"
                        Text="Delete"                                               
                        Visible='<%#Not IsSystemBasket(Eval("name"))%>'/>                                           
                </ItemTemplate>
            </telerik:GridTemplateColumn>                                                                                                                                              
        </Columns>                      
                                                      
    </MasterTableView>                           
 
</telerik:RadGrid>

Code behind:

Protected Sub RadGrid_Basket_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid_Baskets.InsertCommand
 
Dim newItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editManager As GridEditManager = newItem.EditManager
 
Dim editor As GridTextBoxColumnEditor = editManager.GetColumnEditor(e.Item.OwnerTableView.RenderColumns(2))
 
ItemBaskets.AddBasket(editor.Text)
 
End Sub


My ItemBasket class handles the creation if the basket and all it needs is a name. The problem is that the value is always null and therefore the AddBasket method throws an exception.

I have also tried:

Protected Sub RadGrid_Basket_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid_Baskets.InsertCommand
 
Dim newItem As GridEditableItem = CType(e.Item, GridEditableItem)
 
Dim values As New Hashtable()
 
e.Item.OwnerTableView.ExtractValuesFromItem(values, newItem)
 
ItemBaskets.AddBasket(values("name"))
 
End Sub


Here the value is in the hashtable but it is null again. I am obviously missing something here, advice would be welcome.


Chris
Christopher Fenton
Top achievements
Rank 1
 answered on 18 Nov 2010
3 answers
532 views
Dear all 

I follow this demo, to buiuld a Multi Column RadComboBox and It works.
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx


But now I want to apply Multiple Select with Multi Column RadComboBox

Can anyone help me in that issue ?

Best Regards
Simon
Telerik team
 answered on 18 Nov 2010
1 answer
98 views
I want to handle when the user pushes the enter key.

I have got the following code

<ConfirmTemplate >
                <div class="rwDialogPopup radconfirm">   
                    <div class="rwDialogText">
                    {1}    
                    </div>      
                    <div>
                    <a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Yes]##</span></span></a>
                    <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[No]##</span></span></a>
                    </div>
                </div>
                    <script language="javascript" type="text/javascript">
            function pageLoad() {
                document.onkeypress = KeyPressHappened;
            }
            function KeyPressHappened(e) {
                if (!$find('{0}')) return;
                if (!e) e = window.event;
                if ((e.keyCode >= 0) && (e.keyCode <= 127))
                    $find('{0}').close(true);
            }
            
            pageLoad();//Wrong place to call this! but where do i put it?
 
    </script>
            </ConfirmTemplate>

Where i call the function pageLoad(); its currently being called when the entire page loads, how do i set it up so that it will be called when the window loads so that it only tracks key events for the radwindow and not the entire page that the window is declared in?
Georgi Tunev
Telerik team
 answered on 18 Nov 2010
1 answer
85 views
I have a RadGrid, a textbox and submit button on my form.  The textbox will only allow numbers.  My grid is populated with data.  What I need to do is to take what the user entered in the textbox, take that value and get a random number out of it and then fill up one of the columns in the table with these random numbers.  So if I have 50 rows, I would be filling it with 50 random numbers.  Which event would I need to handle to accomplish this?  Thanks.
Veli
Telerik team
 answered on 18 Nov 2010
1 answer
60 views
Hi,

How to read the radgrid values to datatable and rebind the  modified table values to Radgrid from client side(javascript).

With Best Regards,
Thippa reddy
Veli
Telerik team
 answered on 18 Nov 2010
2 answers
72 views

Hi,

I've been experiencing a strange paging problem with an autogenerated hierarchy RadGrid...

I have 2 DataTables, let's say MonthDataTable and DayDataTable, these 2 tables are related by a DataRelation linking a key column in the MonthDataTable to a column of the DayDataTable. Everything is in a Dataset, which is the actual DataSource of my RadGrid.

I set the AutoGenerateHierarchy property of the RadGrid to "true" and it works. The resulting RadGrid displays a data row for each month with the corresponding data, and I can deploy these lines to see the data for each day for the matching month. I checked with the DataSource in debug mode, all the data are handed to the RadGrid, nothing is missing.

However, when it comes to paging in the DetailTable (DayDataTable), the number of pages is not correct. For example, I have 28 days to be displayed in the DetailTable, with a page size set to 10 -> the first page displays no child records, the second page displays 8 rows, the third page displays 10 rows and fourth one displays 10 rows. And I have 10 pages I can click on with nothing in the 1st page and on the fifth-to-tenth pages.

Here is the starter to may be understand the problem:

I have 4 rows in my MonthDataTable each corresponding to 12 rows in my DayDataTable. As a result, I have 48 rows in the DayDataTable... The resulting Grid displays 4 rows (1 for each month) that I can deploy to see the details on a daly basis.
When I allow paging in the DetailTable, all of the DetailTables display 5 pages available instead of 2 pages. Inside of these 5 pages, I find my 12 records corresponding to the matching month, as expected but in various pages and with no real logic (1st page void for example, then 8 records on the 2nd page, then 4 more records on the 3rd page...)

Plus, when I us the PagerTextFormat in the DetailTables, the value of "{4} {5}" always displays the total number of days (48), in all of the DetailTables.

I believe that the persisting 5 clickable pages on each DetailTable are there because the DetailTables always think they have the whole 48 records, while they only have 12 each...

Do you have an idea why the paging macanism could be wrong and base itself on the whole set of records, while only 12 records are present in each DetailTable ?

Thank you for your help!

Veli
Telerik team
 answered on 18 Nov 2010
4 answers
164 views
Hi Guy's,

I have RadGrid with "Add new Record" option,"Edit" option also for already added records.
when i click on "Add new Record" option "Grid" is expanding with the input controls and if i click on "Edit" option same controls are displaying with the "rowdata" but ,

for example plz refer this url http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

My Requirement is,
 
When i click on "Add new Record" option system would display input controls (like textbox's,ddl...s e.t.c),
and if i click on "Edit" button Above controls (the controls which are visibled when we click on "Add new Record" option) should be visible false and seleted row will be appear in Edited form

plz provide sloution (refer above mentioned url).....!

Thanks in advance

Chandra.Y








Alon
Top achievements
Rank 1
 answered on 18 Nov 2010
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?