Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
I am trying to use a GridDropDownColumn in a detail table, while using a DataSet as the source for the grid. I have a typed DataSet with one table for the MasterTableView, one table for the DetailTableView, and one table that should populate the drop-down list when editing a row in the DetailTableView. By the Telerik documentation, I need to set the DataSource for the DetailTableView during the DetailTableDataBind event (as laid out here:
http://www.telerik.com/help/aspnet-ajax/grid-hierarchical-data-binding-using-detailtabledatabind.html ).

The DetailTableView displays correctly. However, when I try to edit the DetailTableView, I get a DataBinding error because now the DataSource for the GridDropDownColumn is the collection of rows set up by the instructions for "Binding detail tables using DataTable.Select" or "Binding detail tables using a filtered DataView". In either case, the GridDropDownColumn does not look to the parent DataSet, but to that specific collection.

Example: Table A has the columns 'MasterID' and 'Name'. Table B has the columns 'MasterID' 'OrderID' and 'Salesman'. Table C has the columns 'ItemID' and 'ItemName'. Table A is the table for the MasterTableView. Table B is the table for the DetailTableView, using DataTable.Select to return the rows from table B that are relevant. I want to make a drop-down list that will let me join 'OrderID' in the DetailTableView to the 'ItemID' column in table C, allowing me to select anything from table C to set the 'OrderID' value in table B. How can I do this?

Peter
Top achievements
Rank 1
 answered on 05 May 2014
1 answer
92 views
Hello,

I'm currently working on a project with RadGrid.
The width of the grid needs to be exactly as the width the page. 

The Grid uses Ajax and wrapped with Div(#gridContainer).
I have defined the width of the grid like this with JS: 
$("#gridContainer .RadAjaxPanel").width(window.innerWidth);


The grid width is the same size as the window browser's width.
However, because the grid has many columns and an horizontal scroll-bar, the containing aspx Page also has a scroll-bar.
It seems that the page's width is as the grid's overall width (as it would be displayed without any horizontal scrolling).

How do I set the grid so that the dimensions of page will remain 100% and not exceed beyond?

Thanks,
Daniel.
Niko
Telerik team
 answered on 05 May 2014
1 answer
134 views
I'm new to Telerik controls and ajax as a whole so please forgive my ignorance.  I've done a lot of searching on this error but the solutions I have found don't quite seem to fit my situation.

I have a complicated scenario and I'm only involved in a piece of it.  My usercontrol is being called by another developer's aspx page so I'm limited to what I can do on the page itself.

The aspx page has a RadGrid (rgDetails), each row of rgDetails has a RadMultiPage (RadMultiPage1). 

Now here's where my usercontrols comes in.  One RadPageView in RadMultiPage1 contains my ucNoteTab.ascx which has a RadMultiPage (NotesMultiPage) control on it.  The each RadPageView in NotesMultiPage contains my final usercontrol (ucNotePreview.ascx).  It is in ucNotePreview that I'm having the trouble.  ucNotePreview has a textbox and a few buttons that change the properties and content of the textbox.

Here's the problem:  I can't do a postback to the server...there are too many pageloads that stuff gets too messed up.  I need to us an ajax update panel and trigger the button click events inside that so the buttons can work their magic on the textbox without a postback.  However, I get a "Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID" error when I try to implement asp:UpdatePanel on ucNotePreview.

Here's a diagram of the heirarchy of the controls if that helps:
Details.aspx (developed by another programmer)
-> RadGrid (rgDetails) 
--> RadMultiPage (RadMultiPage1)
---> ucNoteTab.ascx   (Start of my code)
----> RadMultiPage (NotesMultiPage)
-----> ucNotePreview.ascx
------> UpdatePanel (NotePreviewUpdatePanel)
-------->  Here's where it fails 

I'm sorry I can't really post code because it's all over the place and hard to summarize.  Any thoughts based on this convoluted description?
Marin Bratanov
Telerik team
 answered on 05 May 2014
1 answer
205 views
Hi,
i want to validate my radgrid on server side when the user click the "Add new record" btn,
if existing data are valid continue and show the editform else show error message and cancel insert operation,
so, my question is : what is the event i should use.
thanks.
Said
Top achievements
Rank 1
 answered on 05 May 2014
4 answers
151 views
I have a rendering issue with RadToolBarSplitButton on Mac and iPad (see ResourceButton.png attachment) where the button overflows its border by a few pixels on the right hand side, but this happens only on Macs and on iPads in Safari when we click the button to make it dropdown and reveal the subitems. We have no problems with this on windows machines in all the browsers we've tested. How can I fix this? I'm using telerik version 2013.2.717.40 and runtime version v4.0.30319.

Thanks,

Dylan
Dylan
Top achievements
Rank 1
 answered on 05 May 2014
1 answer
98 views
I am trying to add a button the the user can click on that will grab values from the row and then add to the cart. I would like this to confirm with the radwindow or radalert so the user is not taken to a new page and they can add items quickly.  How do I do this?

Currently I have it setup to where a the code-behind will go through each row and look at the qty field and then add the rows that have a qty > 0  

For Each dataitem As GridDataItem In RadGrid1.Items
          If DirectCast(dataitem.FindControl("qtytxt"), TextBox).Text > "" Then
              Try
                  Dim UOM As DropDownList = DirectCast(dataitem.FindControl("UOM_DDL"), DropDownList)
                  Dim qty As String = DirectCast(dataitem.FindControl("qtytxt"), TextBox).Text
                  Dim item As GridDataItem = TryCast(dataitem, GridDataItem)
                  Dim item_id As String = RTrim(item("item_id").Text)
                  Dim FindForm As FormView = CType(dataitem.FindControl("FormView3"), FormView)
                  Dim UnitPrice As Label = CType(FindForm.FindControl("Unit_Price"), Label)
                  Dim linecount As String = GetLineCount()
 
                   
                  nCMD.CommandText = "*****************"
                  nConn.Open()
                  nCMD.ExecuteNonQuery()
                  nConn.Close()
              Catch ex As Exception
                  Session("error") = ex.ToString()
                  Response.Redirect("Cart.aspx?error=" & ex.ToString)
              End Try
 
 
          End If
      Next
Corey
Top achievements
Rank 1
 answered on 05 May 2014
3 answers
136 views
Hi,

how to update the item when i press the enter key from the key board if the item is in edit mode and has some text boxes to enter.

need navigation between the text boxes when i press the enter key and then update the item, if  item is in edit mode.

could you please provide me the some solution for the above issue.

navigation between the text boxes and update the item when i press the enter key 

Thanks,
Tatarao .N

Princy
Top achievements
Rank 2
 answered on 05 May 2014
2 answers
157 views
Hi,

I am trying to set the width and height of the HTMLcharts via a % rather than pixels as it is more adaptable, however when I do this the charts are shrinked - is there a way to do this even if I place them in a parent DIV and set that to % width?

Thanks,

Using v2014.1.225.40
Himanshukumar
Top achievements
Rank 2
 answered on 05 May 2014
1 answer
69 views
After our company has the last version of telerik controls I noticed that End after occurrences (maxoccurrence) input has value 10 by default and radio button does not count, so when user tries to create a recurrence scheduler it count that it should be 10 occurrence.
How to change this behavior.  I need empty value from the beginning for the new scheduler and application should check for the radio button.

Thank you for your help
Nencho
Telerik team
 answered on 05 May 2014
1 answer
108 views
For some reason, the the RadNumericTextbox wraps strangely in chrome. It slices off the end of the border and places this on the next line (see attached image). This happens with the RadTextbox as well. The RadNumericTextbox is placed in a RadGrid, and in a GridTemplateColumn. Te wrap function on each cell in the table in the RadGrid is set to true.

HTML:

<telerik:GridTemplateColumn DataField="pni_value_100g_100ml" HeaderText="As prepared" Visible="false"
                ItemStyle-Width="40px" HeaderStyle-Width="40px">
                <EditItemTemplate>

                    <telerik:RadNumericTextBox ID="txtValue100g100ml" runat="server" Text='<%# Bind("pni_value_100g_100ml")%>' IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false"
                        MaxLength="255" NumberFormat-DecimalDigits="3" Width="40px" MinValue="0" NumberFormat-GroupSeparator="" NumberFormat-DecimalSeparator=".">
                    </telerik:RadNumericTextBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>


CSS:.

RadInput_Default, .RadInputMgr_Default{
    padding        :  7px;
    background     :  white;
    border:solid 1px silver;
    border-left    :  solid 1px silver;
    border-top     :  solid 1px silver;
    border-right   :  solid 1px silver;
    border-bottom  :  solid 1px silver;
}

Help?



Eyup
Telerik team
 answered on 05 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?