Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
149 views

Hi,

I am using 2015.1.401.40 of your asp.net for ajax controls.

I have a very odd thing happening and am just looking for suggestions.

I have a user control that contains a RadTabStrip and a RadMultiPage and several other controls...  I have the SelectedIndex of the TabStrip set to 0, the first tab's Selected property is set to True, and the SelectedIndex of the MultiPage is set to 0.

This user control is in an ASP Panel that has its visible property set to False.  The user selects some things and then clicks a linkbutton at which time a RadAjaxManager postback occurs.

When the page loads, the first tab is selected, but all the content from all of the PageViews is displayed.

If I then click on each tab, only the content for each tab is displayed.  In other words, the RadMultiPage and TabStrip are working properly.

I use this same asp markup, same layout etc in a different user control, and it works.

If I set EnableAjax="false" in this control, it also works.

It also works fine in IE 10 and Chrome and Firefox.

One odd thing that I notice is that it seems as if the javascript / jQuery (or whatever that is supposed to run that hides the content of the other page views when the page loads) is NOT running.  In fact, no script on that user control is running.  To test that, I put a very basic jQuery(document).ready line of script in the user control that should run as soon as the page loads upon ajax postback, and it doesn't run.

Q.  Can you think of anything that could be causing something like this?

Q.  Do you have any troubleshooting ideas for me to try, or any properties I should be setting on any of the controls?  I've stripped the page down as much as I can, and it is still happening.

I so much dislike older versions of IE...

 

Thanks,

Brent

Konstantin Dikov
Telerik team
 answered on 06 May 2015
1 answer
155 views

I'm trying to get the enter key to submit a combobox. I tried the following but it doesn't run the btnSave onclick event. It just postback the page without doing anything and I don't see the AjaxManager loading panel.

<script type="text/javascript">  function HandkeKeyPress(sender, eventArgs)  {     if (eventArgs.get_domEvent().keyCode == 13)     {        __doPostBack('Button2','');     }  }  </script> 

 

This executes the onclick event but generates a console error TypeError: sender.raise_SelectedIndexChanged is not a function

 

function ClientKeyPressingCombo(sender, eventArgs) {
                if (eventArgs.get_domEvent().keyCode == 9) { }
                else if (eventArgs.get_domEvent().keyCode == 13) {
                    sender.raise_SelectedIndexChanged();
                }
            }

 

 

Peter Filipov
Telerik team
 answered on 06 May 2015
3 answers
182 views
How can I disable all rotate and resize functionality for radDiagram shapes?
Vessy
Telerik team
 answered on 06 May 2015
2 answers
337 views

I have the AjaxManager on my master page. On the content page the submit buttons on master and content are working fine.

        Dim RadAjaxManager1 As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlError)
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnSave, pnlSuccess)

        Dim btnBottom As RadButton = CType(Me.Master.FindControl("btnBottom"), RadButton)
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlError)
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnBottom, pnlSuccess)

When I add the below condition to have one combobox control another I get the error: TypeError: a.get_postBackElement(...) is undefined

     RadAjaxManager1.AjaxSettings.AddAjaxSetting(rcbDivision, rcbApplicationCategory)

 

Works fine without the Ajaxmanagersetting.

Protected Sub Division_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
        rcbApplicationCategory.Text = ""
        rcbApplicationCategory.Items.Clear()
        If sender.SelectedValue = "PC" Then
            BindApplicationCategoryPC(rcbApplicationCategory)
        ElseIf sender.SelectedValue = "IN" Then
            BindApplicationCategoryIN(rcbApplicationCategory)
        Else
            rcbApplicationCategory.Enabled = False
        End If
    End Sub

Eyup
Telerik team
 answered on 06 May 2015
1 answer
149 views

I have a RadGrid linked to a datasource that acts as a live dashboard.  On a timer, asp:Timer, I rebind the grid to retrieve the new data values and update the RadGrid.  Doing this causes the RadGrid to refresh and for a moment the page flashes.  Functionally everything works fine, but this flash is distracting to the user.

 

What can I do to remove this flash?  Are there any double-buffering type techniques I can use?  To force an update of the RadGrid do I have to rebind or is there some other method I can use?

 

thanks

-peter

Eyup
Telerik team
 answered on 06 May 2015
3 answers
381 views
I am using a grid 2014 Q3 that has 4 columns: Service, Unit, Price, TotalPrice. The grid is in Batch Edit mode using client-side api.

Each column has <ItemTemplate> and <ItemEditTemplate>.
Column 1: Inside <ItemEditTemplate> I have a RadDropDownList.
Column 2: Inside <ItemEditTemplate> I have a RadNumericTextBox for Units.
Column 3: Inside <ItemEditTemplate> I have a RadNumericTextBox for Price.
Column 4: Inside <ItemEditTemplate> I have a RadNumericTextBox for TotalPrice.

I have tried to do the following for the last couple of days with little success:
1. Calculate total price when user enters a value in unit and/or price column.
2. Update column 4 with total price.

I subscribed to various client events, such as BatchEditClosed, BatchEditCellValueChanged. I noticed the client-side function is called 4 times, one for each cell.

Is there a way I can do the following:

1. Get the row once edit mode is complete/closed and have the function called once.
2. Get the values for each cell.
3. Calculate total price.
4. Update TotalPrice column with calculated value.

Could you please provide guidance with sample code snippet?

Thanks,
Tan


Viktor Tachev
Telerik team
 answered on 06 May 2015
1 answer
117 views

I have a requirement to provide the user a visual indicator that they are logged in and a selection drop-down for which user profile they want to be using. This requirement is accross the application and I would like to place these functions into the RadNavigation {or RadMenu, whichever is best} on the master page.

 Piecing things together I think the following is the right approach. Please advise on corrections and/or better ways to do this.

1) in the site-map, the add two nodes titled 'userSamAccount' and 'userProfile'

2) create one custom databound template for displaying the active directory name, and another for displaying the profile drop-down items : http://www.telerik.com/help/aspnet-ajax/navigation-server-side-templates.html

3) on Template Needed, if node title is 'userSamAccount' or 'userProfile', align to the right via css {below} and change their templates to the custom ones.

 

Will this work?

center:

<style type="text/css">
      .RadNavigation .searchBoxWrapper {
         position: absolute;
         right: 0;
         top: 0;
     }
  </style>

 

Plamen
Telerik team
 answered on 06 May 2015
3 answers
162 views
Hi,
I am building my columns as below, but the caption remains as "MYCOL" as opposed to "My Column", this seems incorrect?

DataColumn dc = new DataColumn("MYCOL", System.String);
dc.Caption = "My Column";                           
dt.Columns.Add(dc);

Julian
Top achievements
Rank 1
 answered on 05 May 2015
1 answer
111 views
Hi, 
I am on working demo project on how spell check works and how to use in my project. while doing that, i have a requirement 
1. To keep the focus on "Not In dictionary" Div/Text Area 
2. Set the tab controls order in my own way. 

I did not find any snippet or code block which i can read the spell check dialog/form controls either javascript or .net code behind.

Thank you very much in advance.
Marin Bratanov
Telerik team
 answered on 05 May 2015
0 answers
157 views
Greetings Developers, im working with this structure, the problem is that i cannot hide a node: - i'm looking a control for the node, i want to display the menuNode for some authentications and not for others
 1.-
Not able to add an ID, tells me "object its not in the current context"
i was looking for  this solution and to  implement jquery .hide(), but
doesn't work
"<telerik:RadSiteMapNode 
NavigateUrl="../Honorarios/GenerarPrevio.aspx?sbmH=GP" Text="Generar
Previo" ClientIDMode="AutoID" runat="server">"  <div class="Menu">
                    <div id="MegaDropDown">
                       
<telerik:RadMenu runat="server" ID="RadMenu1" Skin="Sitefinity"
OnClientItemOpened="itemOpened" EnableRoundedCorners="true"
ClickToOpen="True"
                            Width="895" Height="48" EnableShadows="true" Font-Underline="True" Style="top: 0px; left: 0px">
                            <Items>
                                <telerik:RadMenuItem Text="Honorarios" Width="106px" runat="server">
                                    <Items>
                                        <telerik:RadMenuItem CssClass="Honorarios" Width="880" runat="server">
                                            <ItemTemplate>
                                                <!--Submenu-->
                                                <div id="CatWrapper" class="Wrapper" runat="server" >
                                                   
<telerik:RadSiteMap ID="RadSiteMap1" runat="server"
EnableTextHTMLEncoding="true" BackColor="Red" i >
                                                        <LevelSettings>
                                                            <telerik:SiteMapLevelSetting Level="0">
                                                                <ListLayout RepeatColumns="2" />
                                                            </telerik:SiteMapLevelSetting>
                                                        </LevelSettings>
                                                       <Nodes>
                                                           
<telerik:RadSiteMapNode 
NavigateUrl="../Honorarios/GenerarPrevio.aspx?sbmH=GP" Text="Generar
Previo" ClientIDMode="AutoID" runat="server">
                                                            </telerik:RadSiteMapNode>
                                                           
<telerik:RadSiteMapNode
NavigateUrl="../Honorarios/SegFol.aspx?sbmH=SF" Text="Seguimiento de
Folios" >
                                                            </telerik:RadSiteMapNode>
                                                                </Nodes>
                                                    </telerik:RadSiteMap>
                                                </div>
                                            </ItemTemplate>
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem> i hope you can help me, thanks & sorry for my bad grammar.
mauricio
Top achievements
Rank 1
 asked on 05 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?