Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
308 views
whats the easiest way to add row hover effects (sunset skin) to a radgrid




thanks
kevin
Jan
Top achievements
Rank 1
 answered on 13 Feb 2010
0 answers
92 views

Hi,

I've integrated both the TreeView and TabStrip controls (from the Telerik ASP.NET AJAX controls) into my MOSS master page and use two separate custom SharePoint lists as the data sources for these controls. This is all working fine.

My question is what is the best way to go about configuring these controls so that they remember which menu item (be it in the tree view or tab) that the user has selected? As at present always the first tab or tree view item is selected when the user navigates from page to page within SharePoint.

Many thanks.

Neil Johnson
Top achievements
Rank 1
 asked on 13 Feb 2010
0 answers
64 views
Hi,

I've a radgrid in my ascx and when I click on the rows(fast manner) , I suddenly get a javascript runtime error.This message tells :

Microsoft JScript runtime error: 'this._owner' is null or not an object.
Pls see the attached files: I've attached a screenshot of the bug.
It complains about script manager abd webresource.axd.
I've a radscriptmanager in my aspx and all my grids are in ascx(user controls).

Pls tell me what I'm missing or what I should avoid to get rid of this error.
 
Ayesha
Top achievements
Rank 1
 asked on 12 Feb 2010
1 answer
195 views
I would think that either this is a stupid mistake I'm making, or someone else has at least had this problem, but I couldn't find any specific help in other posts, so here I go...

I have a NestedViewTemplate with a UserControl.  I bind a couple of my UserControl properties to the row DataItem values. In my user control, there are a few buttons that change values on the grid (we'll say "Status" changes for this example).  In the user control, if I update the "Status" of a row, I have to rebind the grid for the changes to show up.  That all works fine, except when I call gridResumes.Rebind(), it shows the changes, but my NestedView is not showing anymore, the row is not expanded.

My solution was to have an event fire when you change a row using the NestedViewTemplate that tells me which row was changed.  I then set "gridResumes.Items[updatedItemIndex].Expanded = true;" so that after the postback, the item is still expanded. 

My problem is, calling Rebind() reloads the column data, but the NestedTableView is not bound to anything, the values within my user control are null.  Why does Rebind() not rebind the NestedTableView?  Do I have to call that manually after setting Expanded=true?

    <telerik:RadGrid ID="gridResumes" runat="server" AllowPaging="true"   
        AllowSorting="true" onneeddatasource="gridResumes_NeedDataSource"   
        AllowFilteringByColumn="true" CssClass="resumeGrid">  
        <GroupingSettings CaseSensitive="false" /> 
        <ClientSettings EnableRowHoverStyle="true" /> 
          
        <MasterTableView DataKeyNames="RecruitmentPortalGUID" AutoGenerateColumns="false">  
          
            <Columns> 
                <telerik:GridBoundColumn HeaderText="Last Name" UniqueName="LastName"   
                    SortExpression="LastName" DataField="LastName"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="First Name" UniqueName="FirstName"   
                    SortExpression="FirstName" DataField="FirstName"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Position" UniqueName="AppliedPositionShort"   
                    SortExpression="AppliedPositionShort" DataField="AppliedPositionShort"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Quiz" UniqueName="QuizTotal"   
                    SortExpression="QuizTotal" DataField="QuizTotal"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Applied" UniqueName="DateCreated"   
                    SortExpression="DateCreated" DataField="DateCreated" DataFormatString="{0:MM/dd/yyyy}"></telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status" SortExpression="Status" DataField="Status">  
                    <ItemTemplate> 
                        <span class='<%# "resumeGrid_item_status_" + Eval("Status").ToString().ToLower() %>'><%# Eval("Status") %></span>  
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
              
            <NestedViewTemplate> 
                <asp:HiddenField ID="hiddenRecruitmentPortalGuid" runat="server" Value='<%# Eval("RecruitmentPortalGUID") %>' /> 
                <asp:Panel ID="pnlResumeDetails" runat="server" CssClass="resumeItem_details">  
                    <custom:ResumeDetails ID="resumeDetails" runat="server"   
                        RecruitmentPortalGuid='<%# Eval("RecruitmentPortalGUID") %>' ItemIndex='<%# ((Telerik.Web.UI.GridNestedViewItem)Container).ParentItem.ItemIndex %>'   
                        OnHide="resumeDetails_Hide" OnShow="resumeDetails_Show" OnInterview="resumeDetails_Interview" 
                        OnHire="resumeDetails_Hire" OnRelease="resumeDetails_Release" /> 
                </asp:Panel> 
            </NestedViewTemplate> 
              
        </MasterTableView> 
          
    </telerik:RadGrid> 
Kevin Kembel
Top achievements
Rank 1
 answered on 12 Feb 2010
3 answers
211 views

The telerik grid example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

has the following:

        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
            {  
                GridBinaryImageColumnEditor editor = ((GridEditableItem)e.Item).EditManager.GetColumnEditor("Upload") as GridBinaryImageColumnEditor;  
                TableCell cell = (TableCell)editor.RadUploadControl.Parent;  
                CustomValidator validator = new CustomValidator();  
                validator.ErrorMessage = "Please select file to be uploaded";  
                validator.ClientValidationFunction = "validateRadUpload";  
                validator.Display = ValidatorDisplay.Dynamic;  
                cell.Controls.Add(validator);  
            }  
        }  
 
but it is using a specific column type.
how do I add a required field validator to the upload if I am doing this:
                                        <telerik:gridtemplatecolumn uniquename="Upload" HeaderText="File Name">  
                                            <itemtemplate> 
                                                <asp:HyperLink ID="hlFile" runat="server" Target="_blank" /> 
                                            </itemtemplate> 
                                            <edititemtemplate> 
                                                <telerik:radupload id="RadUpload1" runat="server" ControlObjectsVisibility="None" InitialFileInputsCount="1" /> 
                                            </edititemtemplate> 
                                        </telerik:gridtemplatecolumn> 
 

I noticed this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx
what about validation on the attachment column?
robertw102
Top achievements
Rank 1
 answered on 12 Feb 2010
1 answer
124 views

Hi everyone,

I have a project in which two combobox (Parent - Child) and when I select an item from combobox parent, using javascript, the child combobox client-side load on the server side but appears empty.

someone knows why this happens and how to solve it?

Thanks

robertw102
Top achievements
Rank 1
 answered on 12 Feb 2010
2 answers
161 views
Is there a way to use the SkinManager to set the skin of a type of control?  For example, we use the skin manager to set all RadControls to use Office2007.  However, in the case of the RadSplitter, we just don't like the Office2007 skin and would really like to set ALL RadSplitters to use Vista.

TargetControls works for specific controls.  But we don't want each developer that uses a Splitter to have to remember to do that.  We'd rather say that all RadSplitters are Vista, all other Rad Controls are Office2007.

Is this possible?  If not - it seems like a reasonable feature request.  Slightly more granular than "all Rad Controls" - but less specific than "Control with ID=x".
robertw102
Top achievements
Rank 1
 answered on 12 Feb 2010
3 answers
131 views
I have a scheduler which shows current appointments when I open an appointment it shows all the details as expected however if I close the appointment I get the following error

A potentially dangerous Request.Form value was detected from the client (RadScheduler1$Form$Description="<p>

any ideas?

Mike
robertw102
Top achievements
Rank 1
 answered on 12 Feb 2010
2 answers
166 views
Hello. I'm using the Panelbar to display navigation on a MOSS 2007 website. I'm looking to use the panelbar without any expand function. Basically, when an end-user visits the site, the menu is fully expanded and shows the full page structure of the site. The menu will not collapse either. So I guess to put it simply, a static menu. Is this possible with Panelbar, and if so, what could do I need to get this functionality. Thanks!
robertw102
Top achievements
Rank 1
 answered on 12 Feb 2010
2 answers
122 views
Hello,

I've created a custom dialog for a RadEditor window running on a Moss Server. The dialog works as it should, but it seems to be missing the close button (see attached image). The code that launches the dialog is:
editor.showExternalDialog("NewFileDialog.html", null, 300, 175, 
                            newButtonPressCallbackFunction, null, "New File", true, 
                            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, 
                            false, false); 



I have two other dialogs and they all seem to suffer the same issue. If you need the entire page source, please let me know.
Patrick Haggerty
Top achievements
Rank 1
 answered on 12 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?