Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
I've put a RadGrid into my page, bound it to a LINQ source.  It fetches data properly but will not update. Only the cancel button operates, update does nothing at all.  I've tried doing it manually as well, tore out the grid and just put one in with no customizing and same thing.  When I tried to do it manually, it behaved as though the button events weren't firing at all... here's my code: 
I've done this previously, although I'm (more than) a bit rusty... but can't for the life of me see what I'm doing wrong.

Thanks!


<telerik:RadGrid ID="TenantGrid" runat="server" AutoGenerateDeleteColumn="True" 
                AutoGenerateEditColumn="True" CellSpacing="0" DataSourceID="LinqDataSource2" 
                GridLines="None">
                <ClientSettings>
                    <Selecting CellSelectionMode="None" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" 
                    DataSourceID="LinqDataSource2">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" 
                        Visible="True">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" 
                        Visible="True">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Name" 
                            FilterControlAltText="Filter Name column" HeaderText="Name" 
                            SortExpression="Name" UniqueName="Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Location" 
                            FilterControlAltText="Filter Location column" HeaderText="Location" 
                            SortExpression="Location" UniqueName="Location">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Phone" 
                            FilterControlAltText="Filter Phone column" HeaderText="Phone" 
                            SortExpression="Phone" UniqueName="Phone">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Email" 
                            FilterControlAltText="Filter Email column" HeaderText="Email" 
                            SortExpression="Email" UniqueName="Email">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Contact" 
                            FilterControlAltText="Filter Contact column" HeaderText="Contact" 
                            SortExpression="Contact" UniqueName="Contact">
                        </telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" 
                            FilterControlAltText="Filter Active column" HeaderText="Active" 
                            SortExpression="Active" UniqueName="Active">
                        </telerik:GridCheckBoxColumn>
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" 
                            FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" 
                            SortExpression="ID" UniqueName="ID">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>


 <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
                ContextTypeName="FrontDesk.FrontDeskDataContext" EnableDelete="True" 
                EnableInsert="True" EnableUpdate="True" EntityTypeName="" TableName="Tenants">
            </asp:LinqDataSource>

Paul
Top achievements
Rank 1
Iron
 answered on 03 May 2022
1 answer
141 views
I have a RadGrid with like 40 columns, so the grid has a NestedViewTemplate that I use to display the selected row in sort of a form/table view.  That all works fine.  What I'm looking to do is to incorporate the ability for the user to export the NestedViewTemplate view to a PDF.  I guess in a way, it's a quick way to generate a single item report.  I've been thru all the articles with the hierarchical stuff, but that's not my scenario, so they were no help.  
Attila Antal
Telerik team
 updated answer on 03 May 2022
1 answer
111 views

Hi there,

I couldn't find any answer in the forum regarding my issue to I decided to ask for help. I have some custom html with css class and I simply use the return key to add new text, the whole ul list is deleted( see attached file).

To use it select HTML mode as the file is in HTML. Then change to text mode to be able to edit it. Put the curser at the end of the last bullet of the list then enter. The whole UL will be deleted.

Does anybody knows why this is happening?

Thank you,

Gilles

Rumen
Telerik team
 answered on 03 May 2022
1 answer
98 views

Hi all,

I display in a bar chart really small value in milli Bar.

Since these valeus are smaller than zero, but not negative .. the bar are displayed from the top ... ??

How to changed that ? (to start from the bottom).

If i reverse the YAxis, is not correct since the smallest value is represented by a bigger bar ?


Regards,

Didier

Didier
Top achievements
Rank 2
Iron
Iron
 answered on 28 Apr 2022
1 answer
167 views

Hi guys,

We are using the Telerik RadFileExplorer tool in our UI and we are getting a consistent bug where every-other sub-folder that gets created generates the following error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Web.UI.RadFileExplorer.CreateFolder(String currNodeValue, String newDirName)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

For example: I create a parent folder with no issues, I then create a child folder and error gets generated, I then create a grandchild folder successfully, I then create a great-grandchild folder and error gets generated, and so on.

There are a few weird things about this: A) the folders are still getting created even when error is thrown (which makes me think it could be a postback event where the error occurs), B) we use different testing environments, and when testing on the smaller-scale environments including localhost this issue is non-reproducible. However, using the same workflow in our larger-scale test environments, as well as in production, this error is reproducible.

Telerik version 2021.2.511.45, .NET version 4.8, Application reads and writes to a network drive.

I'm hoping to get some help with this as there isn't a lot of documentation on the internet for this specific tool, and I only found one article where this same issue was occurring, but the solution of removing some Telerik RFE code in the page load event handler wasn't applicable as we don't use that specific line of Telerik code.

Thanks so much for any help with this issue.

3 answers
245 views

We're using RadScheduler for scheduling, which allows users to move around scheduled services. However, occasionally, we receive this error. 

 

System.ArgumentOutOfRangeException: Insertion index was out of range. Must be non-negative and less than or equal to size.  Parameter name: index     

       at System.Web.UI.StateManagedCollection.System.Collections.IList.set_Item(Int32 index, Object value)     
       at Telerik.Web.StronglyTypedStateManagedCollection`1.set_Item(Int32 index, ItemType value)     
       at Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleMove(Appointment appointmentToMove, DateTime start, DateTime end, Boolean editSeries, ResourceUpdateInfo resourceUpdateInfo)     
       at Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Model.HandleMove(Appointment appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot, Boolean editSeries)     

       at Telerik.Web.UI.Scheduler.Views.SchedulerModel.ProcessPostBackCommand(SchedulerPostBackEvent postBack)     

       at Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack)     

       at Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument)     

       at Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)     

       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     

       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

It's been going on for years, and we don't have a clue how it happens. We have not been able to replicate it. I'm wondering if somebody could give us a clue how it might happen from the error message. 

Thank you. 

 

Matt
Top achievements
Rank 1
Iron
 answered on 27 Apr 2022
1 answer
186 views

VS2022 /Framework 4.7.2 / Vb.net / WebSite / Telerik 2022.1.119.45

Context :

Page1 contains :

  • RadAjaxLoadingPanel Modal (Id=RALP)
  • RadAjaxPanel (Id= RAP1 associate to RALP)
  • 1 button to go Page2
  • 1 button to call a job (and after job, reload page with new elements)
  • and other things...

    Page2 contains :
  • forms and elements for a reunion.
  • return button to page1
  • valid button to update writting during reunion in database before run job. (Set session to say to refresh data to page1)

Page1, if i click on different buttons (including button for call job) and elements, is good i've got RadAjaxLoadingPanel 
Page2 to page1 by return button : Good
Page2 to page1 by valid button :  i've got problem with RadAjaxLoadingPanel :

simulate click button (see code), RadAjaxLoadingPanel not showing (user can click), after treatment content was refreshed. all elements clicked in page not display  RadAjaxLoadingPanel 

no javascript error in Chrome.

Code Behind :

Page1 :

Private Sub Planning_Load(sender As Object, e As EventArgs) Handles Me.Load
    If IsPostBack = False Then
            If Session("Planning_RunJob") = 1 Then
                PrepareRunJob()
            End If
       '... other treatement
   End If
End Sub


Private Sub PrepareRunJob()

	Session.Remove("Planning_RunJob")
	Dim btRefresh as string = btJobOperation.UniqueID
	
	'Simulate click button for run run after page load, for user to inform is in update
	
	
	Dim sc As String = $"setInterval(__doPostBack('{btRefresh}',''), 10000);"
    ClientScript.RegisterStartupScript(Page.GetType, "refresh", $"{sc}", True)

End Sub

Private sub Runjob()

  'Simulate job
  Threading.Thread.Sleep(10000)
  litE4.Text = "REFRESHED !"

End Sub

Private Sub btJobOperation_Click(sender As Object, e As EventArgs) Handles btJobOperation.Click
        RunJob()
End Sub
Thanks for your help !
Attila Antal
Telerik team
 answered on 26 Apr 2022
1 answer
117 views

I'm trying to divide a content area into 4 equal quadrants.  so I have it setup like this:

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <telerik:RadSplitter RenderMode="Lightweight" ID="rsMain" runat="server" Height="100%" Width="100%" BorderStyle="None" BorderSize="1" CssClass="Center">
        <telerik:RadPane ID="Radpane10" runat="server" Scrolling="none" RenderMode="Lightweight">
            <telerik:RadSplitter RenderMode="Lightweight" ID="Radsplitter6" runat="server" Orientation="Horizontal">
                <telerik:RadPane ID="Radpane11" runat="server" Height="50%" RenderMode="Lightweight">
                    <telerik:RadSplitter RenderMode="Lightweight" ID="Radsplitter2" runat="server">
                        <telerik:RadPane ID="Radpane3" runat="server" CssClass="Round" Width="50%" Height="50%"  BackColor="Red">
                            Map
                        </telerik:RadPane>
                        <telerik:RadPane ID="Radpane4" runat="server" CssClass="Round" Width="50%" Height="50%">
                            Pie Chart
                        </telerik:RadPane>
                    </telerik:RadSplitter>
                </telerik:RadPane>
                <telerik:RadPane ID="Radpane5" runat="server" Height="50%" RenderMode="Lightweight">
                    <telerik:RadSplitter RenderMode="Lightweight" ID="Radsplitter1" runat="server">
                        <telerik:RadPane ID="Radpane1" runat="server" CssClass="Round" Width="50%" Height="50%">
                            Line Chart
                        </telerik:RadPane>
                        <telerik:RadPane ID="Radpane2" runat="server" CssClass="Round" Width="50%" Height="50%" BackColor="Green">
                            Grid
                        </telerik:RadPane>
                    </telerik:RadSplitter>
                </telerik:RadPane>
            </telerik:RadSplitter>
        </telerik:RadPane>
    </telerik:RadSplitter>
</asp:Content>

When it 1st comes up it looks like this:

 

After I resize the browser it looks like this which is what I was going for:

Thoughts or suggestions on how to have it look like the second screen shot all the time?

Vessy
Telerik team
 answered on 25 Apr 2022
1 answer
113 views
Why would you include a FindNodeByText function, but not include a FindNodeByID function?  You allow an ID to be assigned to a NavigationNode...logic dictates you should be able to find it by the ID.
Peter Milchev
Telerik team
 answered on 25 Apr 2022
2 answers
328 views

I jump to RadPageView11 successfully. When I click Tab Button linked to RadPageViewMenu0 again, and then jump to RadPageView11 is still successful. But now the Tab Button linked to RadPageViewMenu0's status is clicked. I cannot click the button again. Does somebody know how to solve this problem?

for (int index = 0; index < RadTabStripMenu.Tabs.Count ; index++)
{
    if (RadTabStripMenu.Tabs[index].Text == "Admission Note")
    { 
        RadMultiPageMenu.SelectedIndex = 11;
        RadPageViewMenu11.Selected = true;
        RadPageViewMenu0.Selected = false;
 
        Page11Submit();
        break;
    }
}

 

Carlos
Top achievements
Rank 1
Iron
 answered on 25 Apr 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?