Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views

Hi all,

I am using "Grid/Edit on Double-click" rad grid then column type "GridDropDownColumn" does not show data in the first row.


http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

go through this link and see "In Stock" column in the radgrid. there are no data in first row. I am facing the same problem.
Please Help.


Thanks.
Pavlina
Telerik team
 answered on 10 Jun 2009
1 answer
84 views
I may have found an issue with RadGrid...?

I have a grid that has a GridEditCommandColumn, one visible editable GridBoundColumn, and some invisible GridBoundColumn data items.  The EditMode is InPlace.

If you put the row into edit mode, you can't click on the textbox to edit it.  You can tab to it, but you can't click it.  

If I add another visible editable column to the grid, the problem goes away.

And I can get around it by manually setting focus to the textbox in ItemDataBound.

--Eve

The grid declaration:

 

<telerik:RadGrid ID="ConfigGrid" runat="server" AutoGenerateColumns="False"

 

 

OnNeedDataSource="ConfigGrid_NeedDataSource"

 

 

OnUpdateCommand="ConfigGrid_UpdateCommand"

 

 

OnItemDataBound="ConfigGrid_ItemDataBound"

 

 

ShowStatusBar="True" AllowPaging="False" AllowSorting="true">

 

 

<pagerstyle mode="NextPrevNumericAndAdvanced" />

 

 

<mastertableview autogeneratecolumns="False" editmode="InPlace" commanditemdisplay="Top"

 

 

DataKeyNames="BELawSecCitationDetailID,RowVersion" AllowSorting="true" AllowMultiColumnSorting="true">

 

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="IsAssociated" SortOrder="Descending" />

 

 

<telerik:GridSortExpression FieldName="Citation" SortOrder="Ascending" />

 

 

</SortExpressions>

 

 

<EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

<CommandItemTemplate>

 

 

<div style="float: right;">

 

 

<asp:LinkButton ID="RefreshRadGridLookupButton" runat="server" CommandName="RebindGrid"

 

 

SkinID="swGridRefreshLinkButton"></asp:LinkButton>

 

 

</div>

 

 

</CommandItemTemplate>

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton">

 

 

<HeaderStyle Width="40px" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridCheckBoxColumn DataField="IsAssociated" UniqueName="IsAssociated" DataType="System.Boolean"

 

 

HeaderText="Active?" Visible="false">

 

 

<HeaderStyle Width="40px" />

 

 

</telerik:GridCheckBoxColumn>

 

 

<telerik:GridBoundColumn DataField="Citation" UniqueName="Citation"

 

 

HeaderText="Law Citation Text" DataType="System.String">

 

 

</telerik:GridBoundColumn>

 

Mode

<telerik:GridBoundColumn DataField="BELawSecCitationDetailID" UniqueName="BELawSecCitationDetailID" Visible="false"

 

 

DataType="System.Int32" />

 

 

<telerik:GridBoundColumn DataField="RowVersion" UniqueName="RowVersion"

 

 

DataType="System.Int32" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</mastertableview>

 

 

</telerik:RadGrid>

 

Nikolay Rusev
Telerik team
 answered on 10 Jun 2009
1 answer
120 views

Hi,

I'm setting the node text on databind, with some HTML tags in the text. This has been no problem, except recently. If there are one or more <span> tags in the text, I get a javascript error on mouseover:

Message: 'this._element' is null or not an object
Line: 178
Char: 1
Code: 0
URI: http://localhost:1360/ScriptResource.axd?d=DMsgcAGno5aOYK0aJwUvXdDJxcknSyeyRU4cG7Y7I2kuvLi_brGedLWr9i1aLqYyY_ZriuetXXzd7bzZtgAS4w2&t=633798049441157248


If I remove the <span> tags, everything works flawlessly. Is there any way I can fix this without removing my span tags?

Paul
Telerik team
 answered on 10 Jun 2009
1 answer
69 views
Using windows authentication method to view a secured page. The landing page is calling a master page with AJAX enabled.

On postback this error is generated.  "sys.webForms.pageRequestManagerParseErrorExecption"

Only occurs with windows authentication dialog windows and not other wise.

Kndly reply with a solution at the earliest.

Attached screenshot

Thanks,
SS
Pavlina
Telerik team
 answered on 10 Jun 2009
1 answer
116 views
Hi,
I have a master-child tables in radgrid as given below. When the page is loaded, only the child tables should be in editmode (not master table). I am not able to get it work. Any help is much appreciated.

 

<telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" ShowStatusBar="true" DataSourceID="SqlDataSource1"

 

 

runat="server" AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AllowMultiRowSelection="False"

 

 

AllowPaging="True" GridLines="None">

 

 

<PagerStyle Mode="NumericPages"></PagerStyle>

 

 

<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="OrderID" AllowMultiColumnSorting="True">

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" />

 

 

</ParentTableRelation>

 

 

<DetailTables>

 

 

<telerik:GridTableView DataKeyNames="OrderID" DataSourceID="SqlDataSource3" Width="100%"

 

 

runat="server">

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" />

 

 

</ParentTableRelation>

 

 

<Columns>

 

 

<telerik:GridBoundColumn SortExpression="UnitPrice" HeaderText="Unit Price" HeaderButtonType="TextButton"

 

 

DataField="UnitPrice" UniqueName="UnitPrice">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="Quantity" HeaderText="Quantity" HeaderButtonType="TextButton"

 

 

DataField="Quantity" UniqueName="Quantity">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="Discount" HeaderText="Discount" HeaderButtonType="TextButton"

 

 

DataField="Discount" UniqueName="Discount">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="Quantity" SortOrder="Descending"></telerik:GridSortExpression>

 

 

</SortExpressions>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<Columns>

 

 

<telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton"

 

 

DataField="OrderID" UniqueName="OrderID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"

 

 

DataField="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="Freight" HeaderText="Freight" HeaderButtonType="TextButton"

 

 

DataField="Freight" UniqueName="Freight">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

Thanks

Sujith

 

Princy
Top achievements
Rank 2
 answered on 10 Jun 2009
3 answers
90 views
How to maintain design in the Radwindow, with out using naviagation URL.
I am using Default.aspx page i want to maintain table structure in the Radwindow with out creating another page and calling that page in the navigate URL.

please help me.
Svetlina Anati
Telerik team
 answered on 10 Jun 2009
1 answer
100 views

Hi,

I am trying to integrate a treeview and grid by dragging nodes to the grid to create records.  I have code working where I can drag a treenode to a grid and fire the code behind to insert a new record etc...

    Protected Sub ApplicationsTreeView_OnNodeDrop(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadTreeNodeDragDropEventArgs) Handles ApplicationsTreeView.NodeDrop  
 
        If e.HtmlElementID = (ProjectApplicationsGrid.ClientID & "_GridData"Then 
 
            Dim InsertRecordDataSource As SqlDataSource = ProjectApplicationsDataSource  
            Dim Project_ID As Integer = CInt(Request.QueryString("Project_ID"))  
            Dim Application_ID As Integer = CInt(e.SourceDragNode.Value)  
 
            InsertRecordDataSource.InsertParameters("Project_ID").DefaultValue = Project_ID  
            InsertRecordDataSource.InsertParameters("Application_ID").DefaultValue = Application_ID  
            ProjectApplicationsDataSource.Insert()  
            ProjectApplicationsGrid.Rebind()  
 
        End If 
 

The following function cancels the nodedrop postback if the node is dropped onto a treeview node.  But the postback also doesn't fire if the node is dropped onto a highlighted grid row.  I.e.  The code behind is only fired if I drag the treeview node onto a part of the grid that doesn't contain any rows.

        function ApplicationsTreeView_ClientNodeDropping(sender, args) {  
 
            var dest = args.get_destNode();  
            alert(dest);  
            if (dest==null) { args.set_cancel(false); return; } else { args.set_cancel(true); return; } ;  
 
        } 

Hope you can help.

Thanks
Jase
Veselin Vasilev
Telerik team
 answered on 10 Jun 2009
3 answers
126 views
We are using a custom skin for all our RadGrids with the following line in a App_Themes .skin file:

<rad:RadGrid runat="server" Skin="ourskin" EnableEmbeddedSkins="false"  ImagesPath="~/Skins/Grid/" />

However, the pager contains a ComboBox. This ComboBox is wrongly styled, since it tries to use "ourskin" for ComboBox as well, but we are using Web20 for RadComboBox:

<rad:RadComboBox runat="server" Skin="Web20" />

What is the best solution?

Dimo
Telerik team
 answered on 10 Jun 2009
1 answer
106 views
We use the RAD Editor for AJAX, and we are getting a javascript error 'undefined' is null or not an object in IE8.  I have included the supposed location of the error below and some surrounding code, which is coming from ScriptResource.axd.  The script is failing at the line "_71e=_71e.replace(/<body\s*\/>/i,"<body></body>");".  The version of our Telerik.Web.UI.dll is 2008.02.1001.35.  This error doesn't seem to occur in IE7 or in Firefox.  Any clues?  Would a version update take care of this problem?  It doesn't seem to be causing any issues, but is an annoyance for one of our clients.

var _71e; 
if(this.get_enableXhtmlFilter()){ 
try
_71e=this._convertToXhtmlFilter.getHtmlContent(_71b); 
catch(exc){ 
alert("Error while executing filter XHTML - "+exc.toString()); 
}else
_71e=$telerik.getOuterHtml(_71b); 
_71e=_71e.replace(/<body\s*\/>/i,"<body></body>"); 
for(var i=0;i<this._filters.length;i++){ 
var _71d=this._filters[i]; 
if((!_71d.get_isDom())&&(false!=_71d.get_enabled())&&_71d.getHtmlContent){ 
try
_71e=_71d.getHtmlContent(_71e); 
 


Lini
Telerik team
 answered on 10 Jun 2009
1 answer
101 views
Hi,
I have a radgrid in an radajaxpanel and in the grids formtemplate I have an editor from XStandard.com (active-x editor).
If I remove the ajaxpanel the update works and I get the text from the editor.
But if I use the ajaxpanel the value is allways blank!
What can be the reason for that?

Regards,
Mattias

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="radAjaxLoadingPanel"
     <telerik:RadGrid ID="radGridMenus" runat="server" AllowPaging="false" CssClass="radgrid" 
... 
 
     <EditFormSettings EditFormType="Template"
            <FormTemplate> 
                 <xs:XHTMLEditor ID="xhtmlEditorPreamble" runat="server" OnLoad="Editor_Load" /> 
... 
 

protected void radGridMenus_UpdateCommand(object source, GridCommandEventArgs e) 
     GridEditFormItem gridItem = e.Item as GridEditFormItem; 
... 
     content.Preamble = ((XStandard.WebForms.XHTMLEditor)gridItem.FindControl("xhtmlEditorPreamble")).Value.Trim();
...


Sebastian
Telerik team
 answered on 10 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?