Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
77 views
Hi

I have used radcombobox selectedindexchanged property. Its work fine on localhost.. but when after upload it shows an error in messagebox alert "Stack overflow at line 0"... , In javascript errors it shows the error like "To much recursion"


Does anybody know then please tell me how to resolve this.

Thanks
jagvir



jagvir singh
Top achievements
Rank 1
 asked on 04 Feb 2010
1 answer
175 views
I am trying to dynamically create some RadPanelItems according to the user input no. e.g. When user input 3, I will dynamically create 3 RadPanelItems. And in each RadPanelItems will have some textboxes and button for user to use. The controls in each RadPanelItem are the same. But when the use click on the button inside the RadPanelItem. All the runtime created controls disappeared. Is there anything work arround to solve that?

Hear is my code

    Protected Sub btnTest_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        If txtNoOfInd.Text.Trim IsNot String.Empty Then

            CreatePanels(txtNoOfFrm.Text)
        end if
   End Sub

Sub CreatePanels(ByVal NoOfFrm As Integer)

            For i As Integer = 1 To NoOfInd

                Dim NoOfPersons As Integer = txtNoOfInd.Text

                Dim table1 As HtmlTable
                Dim Row As HtmlTableRow
                Dim Cell As HtmlTableCell
                Dim txtName As TextBox
                Dim lblName As Label
                Dim btnNext As Button

                txtName = New TextBox
                txtName.ID = "txtName" & i.ToString

                lblName = New Label
                lblName.ID = "lblName" & i.ToString
                lblName.AssociatedControlID = "txtName" & i.ToString
                lblName.Text = "Name:"

                btnNext = New Button
                btnNext.ID = "btnNext" & i.ToString
                btnNext.Text = "Next"

                table1 = New HtmlTable
                Row = New HtmlTableRow
                Cell = New HtmlTableCell

                Cell.Controls.Add(lblName)
                Cell.Controls.Add(txtName)
                Cell.Controls.Add(btnNext)
                Row.Cells.Add(Cell)
                table1.Rows.Add(Row)

                Dim newParentItem As RadPanelItem = New RadPanelItem()
                Dim newChildItem As RadPanelItem = New RadPanelItem()

                newParentItem.Items.Add(newChildItem)
                newChildItem.Controls.Add(table1)
                newParentItem.Text = i.ToString
                If i = 1 Then
                    newParentItem.Expanded = True
                End If

                RadPanelBar1.Items.Add(newParentItem)
            Next
    End Sub



Yana
Telerik team
 answered on 04 Feb 2010
3 answers
132 views
Why is RadScheduler1_AppointmentClick only fired with a double click. is it possible to call this with a single click please?

Thanks a lot

Kati
Yana
Telerik team
 answered on 04 Feb 2010
2 answers
152 views
Hi,

I need to programmatically access the checkbox in the column header of a "GridClientSelectColumn" column in the RadGrid control. I tried but with no luck. Can anyone give me the code snippet for the same?

Thanks
Phani Musale
Top achievements
Rank 1
 answered on 04 Feb 2010
1 answer
89 views
Hi

I am creating a RadSlider in code (vb.net) and adding it to the page when the page loads.
This works correctly in IE and Safari, but the control just does not shown in Firefox.

The HTML is there but to control is not visible.


Tsvetie
Telerik team
 answered on 04 Feb 2010
3 answers
150 views
I have a RadGrid on my page which contains a NestedViewTemplate.  Every level of the hierarchy has its LoadMode set to "ServerOnDemand".

                <telerik:RadGrid ID="rgMonthly" runat="server" GridLines="None" DataSourceID="odsAcctsByPI" 
                    OnColumnCreated="rgMonthly_ColumnCreated" OnItemDataBound="rgMonthly_ItemDataBound" 
                    OnPreRender="rgMonthly_PreRender" AutoGenerateColumns="true"
                    <MasterTableView DataSourceID="odsAcctsByPI" DataKeyNames="SlAcct6Num" HierarchyLoadMode="ServerOnDemand" 
                        EnableColumnsViewState="False"
                        <NestedViewSettings DataSourceID="odsGroupsByAcct"
                            <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="SlAcct6Num" MasterKeyField="SlAcct6Num" /> 
                            </ParentTableRelation> 
                        </NestedViewSettings> 
                        <NestedViewTemplate> 
                            <telerik:RadGrid ID="rgSubs" runat="server" GridLines="None" DataSourceID="odsGroupsByAcct" 
                                AutoGenerateColumns="true" OnColumnCreated="rgSubs_ColumnCreated"  OnItemDataBound="rgSubs_ItemDataBound"
                                <MasterTableView DataSourceID="odsGroupsByAcct" DataKeyNames="SlAcct6Num,GroupID" 
                                    HierarchyLoadMode="ServerOnDemand" EnableColumnsViewState="False"
                                    <DetailTables> 
                                        <telerik:GridTableView Width="100%" runat="server" HierarchyLoadMode="ServerOnDemand" 
                                            AutoGenerateColumns="true" EnableColumnsViewState="False" DataKeyNames="SlAcct6Num,GroupID" 
                                            DataSourceID="odsSubAcctsByGroup"
                                            <ParentTableRelation> 
                                                <telerik:GridRelationFields DetailKeyField="GroupID" MasterKeyField="GroupID" /> 
                                                <telerik:GridRelationFields DetailKeyField="SlAcct6Num" MasterKeyField="SlAcct6Num" /> 
                                            </ParentTableRelation> 
                                        </telerik:GridTableView> 
                                    </DetailTables> 
                                </MasterTableView> 
                            </telerik:RadGrid> 
                        </NestedViewTemplate> 
                    </MasterTableView> 
                </telerik:RadGrid> 
 

When I attempt to export data to Excel, only the top-level data is being exported.  Here is the code I use to export.

protected void btnExcel_Click(object sender, EventArgs e) 
    rgMonthly.ExportSettings.OpenInNewWindow = true
    rgMonthly.ExportSettings.ExportOnlyData = true
    rgMonthly.ExportSettings.IgnorePaging = true
    foreach (GridDataItem gi in rgMonthly.MasterTableView.Items) 
    { 
        gi.Expanded = true
        if (gi.HasChildItems) 
        { 
            RadGrid rgSubs = (RadGrid)gi.ChildItem.NestedViewCell.Controls[0].Controls[1]; 
 
            foreach (GridDataItem gilvl3 in rgSubs.MasterTableView.Items) 
            { 
                if (!gilvl3.KeyValues.Contains("-1")) 
                { 
                    gilvl3.Expanded = true
                } 
            } 
        } 
    } 
    rgMonthly.MasterTableView.ExportToExcel(); 
 

If every level is set to "ServerBind", then I am able to get an export of all the data.  However, I would prefer to use "ServerOnDemand" as it is quicker to navigate prior to export.

Is there any way to get all the data to export using "ServerOnDemand"?

Thanks,

Brian Furner



Daniel
Telerik team
 answered on 04 Feb 2010
7 answers
149 views
Hello,

I'm trying to use a date picker and a time picker in my advanced insert template, but am having a few issues with the time picker.
Here is my code so far:

<telerik:RadDatePicker  runat="server" ID="rdpStartInsert" SelectedDate='<%# Bind("Start") %>' Skin="Vista" /> 
<telerik:RadTimePicker runat="server" ID="rtpStartInsert" Width="65px" Skin="Vista" SelectedDate='<%# Bind("Start") %>'
                                <TimeView ID="timeStartInsert" runat="server" Columns="2" ShowHeader="false" StartTime="08:00" 
                                    EndTime="18:00" Interval="00:30" /> 
</telerik:RadTimePicker> 

The problems are that the calendar on the time picker does not have a skin and when you click on a time it doesn't update the input box. The date picker works fine.

I tried to follow this demo (http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx), but I don't understand it to be frank and it seems to be a totally different approach to what I taken via following another getting started demo. I like how the buttons don't appear in the demo and the calendars show on input focus, but again can't see how or where this is done?

Any help would be greatly appreciated.

EDIT: may be worth noting that I can extract data from the two controls without issue on the Appointment Command event with the following, so it just a UI input issue with the time picker control from what I can see:

RadDatePicker startInputDate = (RadDatePicker)e.Container.FindControl("rdpStartInsert"); 
                RadTimePicker startInputTime = (RadTimePicker)e.Container.FindControl("rtpStartInsert"); 
 
                DateTime selectedStartDate = startInputDate.SelectedDate.Value; 
                DateTime selectedStartTime = startInputTime.SelectedDate.Value; 
 
                DateTime eventStart = new DateTime(selectedStartDate.Year, selectedStartDate.Month, selectedStartDate.Day, 
                    selectedStartTime.Hour, selectedStartTime.Minute, selectedStartTime.Second); 
 
                RadDatePicker endInputDate = (RadDatePicker)e.Container.FindControl("rdpEndInsert"); 
                RadTimePicker endInputTime = (RadTimePicker)e.Container.FindControl("rtpEndInsert"); 
 
                DateTime selectedEndDate = endInputDate.SelectedDate.Value; 
                DateTime selectedEndTime = endInputTime.SelectedDate.Value; 
 
                DateTime eventEnd = new DateTime(selectedEndDate.Year, selectedEndDate.Month, selectedEndDate.Day, 
                    selectedEndTime.Hour, selectedEndTime.Minute, selectedEndTime.Second); 
 


Thanks,

Michael
Peter
Telerik team
 answered on 04 Feb 2010
2 answers
127 views
Hello!
I’m trying to implement a RadInputManager into the custom control for validation of several textBoxes in it

Here is an error I’ve got
"Microsoft JScript runtime error: 'null' is null or not an object"  in  the ValidatorOnLoad() function 
It looks like all my page validators are null (Page_Validators has null items)
please help!
Daniel Luchin
Top achievements
Rank 1
 answered on 04 Feb 2010
1 answer
145 views
We have two Rad Menus (Ver 2009.3.1208.20) on the same page adjacent to each other. In IE "Menu A" flyouts were showing behind the transparent layer of the adjacent menu "Menu B" and both menus behaved correctly in FF and Safari. (see attached file) However, "Menu B" flyouts display correctly over "Menu A"

The issue is similar to the post at http://www.telerik.com/community/forums/aspnet-ajax/menu/menu-opens-behind-radschedular-no-matter-what-z-index-i-use.aspx

I was able to get "Menu A" in IE to behave correctly by adding EnableOverlay="false" style="z-index:1!important;" to the RadMenu, but then FF and Safari show the unwanted behavior. So, the problem just switched browsers.

So, short of having server side logic to detect the browser used and dynamically add the EnableOverlay="false" style="z-index:1!important;" or remove it, is there an easier fix?

Thanks in advance,

Keith E.



Peter
Telerik team
 answered on 04 Feb 2010
1 answer
71 views
Is there any way to achieve this?

Example: I have a RadRating control with an ItemCount of 5, I would like to have each item within the Rating control to have its own unique identifier.

ie. 'RadRating1 1', 'RadRating1 2', 'RadRating1 3', 'RadRating1 4', 'RadRating1 5'

I started digging and would assume to achieve this functionality I would have to modify the RadRating .js? If so, how?

Thanks

Edit: Thinking about it a bit more, I'd need the classes to have it's own number. Please see the example below. I have altered the HTML render to how I would like it, primarily the A tag's class and ID.

<div class="RadRating RadRating_Test" id="ctl00_ContentPlaceHolder1_rptLatestOffers_ctl02_RadRating1" style="width: 89px; float: left; height: 22px;" RowID="2" WineID="2432" control="[object Object]">  
  <ul class="rrtItem" _events="[object Object]">  
    <li class="rrtSelected">  
      <title="1" class="1" id="1" href="#"></a> 
    </li> 
    <li class="rrtSelected">  
      <title="2" class="2" id="2" href="#"></a> 
    </li> 
    <li class="rrtSelected">  
      <title="3" class="3" id="3" href="#"></a> 
    </li> 
    <li class="rrtSelected">  
      <title="4" class="4" id="4" href="#"></a> 
    </li> 
    <li class="rrtSelected">  
      <title="5" class="5" id="5" href="#"></a> 
    </li> 
  </ul> 
</div> 

Tsvetie
Telerik team
 answered on 04 Feb 2010
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?