Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
66 views
Is there a way to include a control (a link) right above the details table when expanding a row? Hopefully the code below explains this a little better:

<telerik:RadGrid ID="RadGrid2" runat="server" ShowStatusBar="true" AutoGenerateColumns="False" AllowSorting="True" skin="Windows7">
        <MasterTableView DataKeyNames="DepartmentID">
 
            <%--I want to put a link here--%>
 
            <DetailTables>
                <telerik:GridTableView Name="DetailsGrid">
                    <Columns>
                        <telerik:GridBoundColumn SortExpression="PersonName" HeaderText="Person Name" DataField="PersonName"></telerik:GridBoundColumn>
                    </Columns>
                </telerik:GridTableView>
            </DetailTables>
            <Columns>
                <telerik:GridBoundColumn SortExpression="DepartmentName" HeaderText="Department Name" DataField="DepartmentName"></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
Billy
Top achievements
Rank 2
 answered on 24 Nov 2010
1 answer
97 views
On my page I have a radgrid "rgdProductList" and I'm trying to add ajax settings to update a UserControl "Navigation" within the master page. Inside the UserControl "Navigation" I have a div with an id of "nav"

On Master Page:
<%@ Register Src="../Modules/Controls/nav.ascx" TagName="Navigation" TagPrefix="uc1" %>
...
<uc1:Navigation ID="Navigation" runat="server" />


On "Navigation" UserControl:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="nav.ascx.vb" Inherits="Modules_Controls_nav" %>
<div id="nav" runat="server" class="navigation">
    <!-- Inner Content Goes here -->
</div>


On "Products" page (which inherits that master page above): [NOTE: rgdProductList is a radgrid on the products page]
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    Dim oNavigation As Modules_Controls_nav = DirectCast(Me.Master.Controls(0).FindControl("Navigation"), Modules_Controls_nav)
    RadAjaxManager.AjaxSettings.AddAjaxSetting(rgdProductList, oNavigation)
 
    Dim oNav As HtmlGenericControl = DirectCast(Me.Master.Controls(0).FindControl("Navigation").FindControl("nav"), HtmlGenericControl)
    RadAjaxManager.AjaxSettings.AddAjaxSetting(rgdProductList, oNav)
      
End Sub


As shown above, I tried adding AjaxSettings to both the UserControl itself as well as the inner div tag. I also tried adding a ajaxsetting to the master page, but it generates a radcodeblock error. I also tried wrapping the div tag in a update panel to no avail.

Any help on this subject would be GREATLY appreciated. NOTE: all other ajax settings on the page work fine and I don't see any JS errors. I tried adding a radloadingpanel and it did not show up for these ajax settings, but did for all other ajax settings on the page.

Pavlina
Telerik team
 answered on 24 Nov 2010
1 answer
104 views
I created a user control that just contained the markup for a RAD editor, so I could set up all the defaults of the editor in one place and add the user control to the page where ever I needed to use a rich text editor.

Here is the markup I used (nothing fancy)

<telerik:RadEditor Width="99%" SpellCheckSettings-DictionaryPath="~/App_files/RadSpell" ID="editor"
    EditModes="Design" StripFormattingOptions="Span, Font, Css, MSWordRemoveAll"
    NewLineBr="false" runat="server">
    <CssFiles>
        <telerik:EditorCssFile Value="~/styles/userControls/editorDefaults.css" />
    </CssFiles>
</telerik:RadEditor>

The code-behind just sets up default upload paths and declares public properties for stuff like the toolsfile (nothing fancy there either)

The problem comes when I add the control to the page.  It renders correctly, including loading the correct toolsfile, however, the editor is disabled.  When I view the console for errors in Google Chrome, I get "Uncaught Error: INVALID_ACCESS_ERR: DOM Exception 15" in Telerik.Web.UI.WebResource.axd
Rumen
Telerik team
 answered on 24 Nov 2010
4 answers
1.2K+ views
Hello,
        I want to show the ajaxloadingpanel on my asp button click event. The asp button is present outside the grid.The grid is ajaxified by using radajaxmanager.Kindly help me out.

Best Regards,
Manaswinee
Tsvetina
Telerik team
 answered on 24 Nov 2010
1 answer
46 views
Dear All,

Suddenly on running application I am started getting below error. I have used RadAjaxManager And RadAjaxLoadingPanel.
Please provide some help. Even on internet I am getting less material about this issue.

ERROR:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Wed, 24 Nov 2010 10:47:41 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://www.xxxxxxx.com:83/ScriptResource.axd?d=Nkjx0YgmbL3PPM6LcoIdjuv0Agi124qbImiuw4i7Y7RnUGaa-M18pShuJPrWk2mfNfwFfwyGFZVRYVcIHEDPPH-SAvkuSxRoAqFLp4qulsUVblJyrmvcMRmWfafhCCb1GQBHEHxfBGVXIuxnBFn2wgvEn83cZ-QTlQW2FPNUztfb7vUJ0&t=5c2f384e
Pavlina
Telerik team
 answered on 24 Nov 2010
3 answers
85 views
Hello,

Due to some problems implementing radcombobox to select from a list of records, I'm trying to create a radwindow with a radgrid inside to allow the selection of one record from it.

I was reviewing a lot of examples and the example more similar is "Window / Using the URL for Server Arguments". This example only show a radwindow with a grid inside but not return any values to parent form.

For my purposes, just change the parent grid for a data entry form and in a field with a button I want to open a radwindow with the grid and when the user select a record, return the id and description of the record to the parent form to fill the current field.

From this example I'm trying to reduce the overload of getting a lot of data from several tables into the same data entry form.

Could you give provide me with an example of return values selected in a radgrid to a parent form?
Thanks a lot in advanced
Jose
Pavlina
Telerik team
 answered on 24 Nov 2010
1 answer
69 views
Hi,
Please find below as my requirment.
(Schedular - DayView)

Each appointment is associated with status (like created, confirmed, completed etc) and appointment should have color schema based on appointment status.
For example, all created appointments should disply in Red, confirmed appointments should display in Yellow etc.
Also, buttons should be displayed with each appointments, when user clicks on any button, appointment status should changed accordingly. i.e, when user clicks on Yellow Button, appointment status should be changed to confirmed.

To achieve above requirement, am making use of Appointment Template,  AppointmentCreated event, AppointmentCommand events of Schedular control.


Am using AppointmentCreated event for background color logic and AppointmentCommad event for updating appointment status logic.

When I clicks on button, which is in appointment template, order of events which are fired are AppointmentCreated, AppointmentCommand.

Everything working fine so far which satisfies my requirement. But the problem is, some times (randomly), buttons requires multiple clicks to fire “AppointmentCommand” event. In other words, when I click on button, it is only fires “AppointmentCreated” and not firing “AppointmentCommand”.

Any one, could you please help me in this issue. Thanks in advance.

 

Thanks,

Sumanth




Peter
Telerik team
 answered on 24 Nov 2010
1 answer
67 views
For some reason when I look at my grids with Firefox or Chrom the columns take the width of the  form. Please see attached image. In IE this problem does not happen. Any suggestions?

Thanks
Dimo
Telerik team
 answered on 24 Nov 2010
1 answer
323 views
Hi,

I have big problem in my application.

first i am inserted record in my application using Add New Record option in radgrid. it is inserted correctly. but then i clicked refresh button in IE8 browser. the same record inserted another time. it is a big problem for me.

Please give me a tips for how to resolve it.


Thanks,
Dhamu.
Vasil
Telerik team
 answered on 24 Nov 2010
2 answers
86 views
Hi,

my grid displays - for example - organization units: OrgUnit objects. The OrgUnit class has a property "Manager" which contains an instance of the class "Person". This class has, in turn, a property named "FullName".
I want to display names of managers in one of the grid's columns. I bind this column with: "Manager.FullName". And it works perfectly - event for units with no manager.
Then, I want to sort my grid by this column. I put SortExpression="Manager.FullName". It works - but fails (NullReferenceException) when any of displayed units has no manager.
I understand that "Manager.FullName" can raise this exception when "Manager" is null but when displaying data it doesn't.
Can I solve this problem any way?
The workaround: define a special property "ManagerFullName" (return Manager == null ? "" : Manager.FullName) is not acceptable.

Regrads
Tomasz
Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 24 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?