Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
453 views
I am using "ServerSide" expand mode and using the following code to scroll to the last expanded node, but it is not working: 

        function ScrollToSelectedNode()
        {
                var tree = $find("<%= RadTreeView1.ClientID %>");
                //this was not working. so i used a hidden control to store the value of the last node clicked.
                //var selectedNode = treeviewInstance.SelectedNode;
                //The value of the expandedNode is set in the RadTreeView1_NodeExpand event on the server side
               var selectedNode = tree.findNodeByValue(document.getElementById("expandedNode").value);
               if (selectedNode != null)
               {
                selectedNode.select();
                selectedNode.scrollIntoView();
                //window.setTimeout(function() { selectedNode.scrollIntoView(); }, 200);
                }
        }


I will appreciate if you please help me out here.
Nicolaï
Top achievements
Rank 2
 answered on 22 Mar 2013
1 answer
75 views
Hi,

how can I get the specified item of a RadListBox using the index?

Thanks
Princy
Top achievements
Rank 2
 answered on 22 Mar 2013
13 answers
455 views
Hello, I am having trouble with a detail table in my hierarchical radgrid not updating to show the appropriate columns. I do have an AjaxManager on the page, but I am changing the datasource through a button click event not monitored by the AjaxManager. The colums are autogenerated, and on the columncreated method, HTMLEncode is set to true for GridBoundColumns. I looked into rebinding, needdatasource, and altering the viewstate with no luck.

The datasource I am using can be switched from a detailed to a summary view, so that columns that used to be in the radgrid should be removed on databind. Currently, the columns remain and are empty. I would guess that they are assigned null values.

ASPX
<telerik:RadGrid ID="rdgGridView" runat="server" AllowSorting="true" DataSourceID="datasource1" AutoGenerateColumns="false" AllowPaging="true" EnableViewState="true">
<MasterTableView DataSourceID="datasource1" DataKeyNames="ID" AutoGenerateColumns="false">
<DetailTables>
<telerik:GridTableView Name="Detail" runat="server" AutoGenerateColumns="true" AllowSorting="true">
<columns>
<telerik:GridTemplateColumn>
<HeaderTemplate>Link</HeaderTemplate>
<ItemTemplate><asp:LinkButton ID="LB" runat="server" Text="text" /></ItemTemplate>
</telerik:GridTemplateColumn>
</columns>
</DetailTables>
</MasterTableView>
</telerik:RadGrid>

VB
Private Sub Submit_Click(ByVal sender As System.object, ByVal e As System.EventArgs) Handles Submit.Click
 
rdgGridView.MasterTableView.DetailTables(0).DataSource = Nothing
 
rdgGridView.DataBind()
 
End Sub
 
  
 
Private Sub rdgGridView_DetailTableDataBind(ByVal sender As System.object, ByVal e As GridDetailTableDataBindEventArgs) Handles rdgGridView. GridDetailTableDataBindEventArgs
 
'Modify datasource
 
rdgGridView.MasterTableView.DetailTables(0).DataSource = DataSource
 
End Sub

So any thoughts would be appreciated.
Andrey
Telerik team
 answered on 22 Mar 2013
1 answer
119 views
Hello,

I have a dynamically built HTMLChart (Line type) that I am pre-populating with multiple series of data via SQL.  Would I would like to be able to do is load the data and all of the series at one time, but then have an option via JavaScript show or hide a particular series or combination of series without making another db call to rebuilt the whole chart.  Is this possible?

Regards,

Steve
Danail Vasilev
Telerik team
 answered on 22 Mar 2013
17 answers
480 views
Simply put, I am not able to group on a child object's property in my LINQ to SQL datasource.  I am able to bind, sort, and filter on the property but not group by it.  Here is the the template column in question.   Note: all works save the GroupByExpression.  I have yet to find a solution, some direction is welcome.

<telerik:GridTemplateColumn  
    HeaderText="DC" 
    SortExpression="Dc.Name" 
    UniqueName="DC" 
    GroupByExpression="Dc.Name [DC] Group By Dc.Name">  
    <EditItemTemplate> 
        <telerik:RadComboBox  
            ID="cboDc" 
            runat="server" 
            DataSourceID="ldsDcs" 
            DataValueField="DcID" 
            DataTextField="Name" 
            SelectedValue='<%# Bind("DcID") %>'>  
        </telerik:RadComboBox> 
    </EditItemTemplate> 
    <ItemTemplate> 
        <%# Eval("Dc.Name") %>&nbsp;  
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

Error message received:

Line: 605
Char: 13
Error: Sys.WebForms.PageRequestManagerServerErrorException: Field
          Dc.Name not found in the source table. Please check the expression
          syntax.
Code: 0

Thanks,
Chris
Radoslav
Telerik team
 answered on 22 Mar 2013
1 answer
80 views
How to disable the addnewrecord button when grid is inedit mode?
Shinu
Top achievements
Rank 2
 answered on 22 Mar 2013
1 answer
203 views
Hello,

I am using the RadMenu as as ContextMenu targeted to the HTMLChart.  When I right-click, the Context Menu renders will the Skin completely out of alignment with some parts even being transparent.  It doesn't seem to matter which Skin I define (if any); the same results occur.  I have also noticed similar behavior when using the RadComboBox.




Here is the page code for the Menu:

<telerik:RadContextMenu runat="server" ID="ctxtCompEntitySpan" Skin="Default"
    EnableRoundedCorners="true" EnableShadows="true" EnableAutoScroll="true" RenderMode="Classic">
    <Targets>
        <telerik:ContextMenuControlTarget ControlID="chtCompletion" />
    </Targets>
    <Items>
        <telerik:RadMenuItem>
            <ItemTemplate>
                <telerik:RadButton ID="btnCompASC" runat="server" ToggleType="Radio" ButtonType="ToggleButton" GroupName="Radios" Skin="Default" Font-Size="10px">
                    <ToggleStates>
                        <telerik:RadButtonToggleState Text="Series 1" PrimaryIconCssClass="rbToggleRadioChecked" />
                        <telerik:RadButtonToggleState Text="Series 1" PrimaryIconCssClass="rbToggleRadio" />
                    </ToggleStates>
                </telerik:RadButton>
                <br />
                <telerik:RadButton ID="btnCompLDR" runat="server" ToggleType="Radio" ButtonType="ToggleButton" GroupName="Radios" Skin="Default" Font-Size="10px">
                    <ToggleStates>
                        <telerik:RadButtonToggleState Text="Series 2" PrimaryIconCssClass="rbToggleRadioChecked" />
                        <telerik:RadButtonToggleState Text="Series 2" PrimaryIconCssClass="rbToggleRadio" />
                    </ToggleStates>
                </telerik:RadButton>
                <br />
                <telerik:RadButton ID="btnCompBTH" runat="server" ToggleType="Radio" ButtonType="ToggleButton" GroupName="Radios" Skin="Default" Font-Size="10px">
                    <ToggleStates>
                        <telerik:RadButtonToggleState Text="Series 1 and 2" PrimaryIconCssClass="rbToggleRadioChecked" />
                        <telerik:RadButtonToggleState Text="Series 1 and 2" PrimaryIconCssClass="rbToggleRadio" />
                    </ToggleStates>
                </telerik:RadButton>
            </ItemTemplate>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>


Thanks for the assistance.
Kate
Telerik team
 answered on 22 Mar 2013
1 answer
70 views
When I add new records in grid its always shown in last page.  How can I show it in first page?
Shinu
Top achievements
Rank 2
 answered on 22 Mar 2013
5 answers
261 views
Radcontrols for ASP.NET Ajax upgrade wizard fails. Details are below;
Version to upgrade : 2013.1.220.40
Visual Studio 2010

Radcontrols for ASP.NET Ajax visual studio extensions have recovered from an error.

An error occured while running the wizard.

Error executing custom action Telerik.Web.UI.VSX.Actions.MultiProjectUpdateReferencesAction: System.NotImplementedException: The method or operation is not implemented.
   at EnvDTE80.SourceControl2.GetBindings(String ItemPath)
   at Telerik.VSX.Helpers.SolutionExtensions.GetIsInSourceControl(Solution solution)
   at Telerik.VSX.SolutionManagement.SolutionStorageFactory.Create(IAdvancedWizardContext wizardContext)
   at Telerik.VSX.Actions.UpdateReferencesAction.CreateSolutionReferenceManager()
   at Telerik.VSX.Actions.UpdateReferencesAction.HandleSolutionReferences(IProjectWrapUIComponents projectWrap, IList`1& assemblyReferences)
   at Telerik.Web.UI.VSX.Actions.AdvancedUpdateReferencesAction.HandleSolutionReferences(IProjectWrapUIComponents projectWrap, IList`1& assemblyReferences)
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.UpdateReferencesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
   at Telerik.VSX.Actions.ProjectActionBase.Telerik.VSX.Actions.IProjectAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap projectWrap)
   at Telerik.VSX.Actions.MultiProjectActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.Actions.MultiProjectUpdateReferencesActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()
Vesko
Telerik team
 answered on 22 Mar 2013
1 answer
159 views
Hi

There is a raddatepicker in my order page which is in yyyy-mm-dd format. How to fetch the date from raddatepicker in MM-DD-YYYY format using javascript?

Thanks in advance,
Joseph.
Princy
Top achievements
Rank 2
 answered on 22 Mar 2013
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?