Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
76 views
hi

Can any one help me please.
I have the NestedHierarchyTemplate Grid Like This.can any one help me how to fine the RadGridID="RadGridDD"
and in which event i have to bind the data to this grid.

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Web20" Style="position: static"
                AutoGenerateColumns="False">
                <MasterTableView DataKeyNames="requisitionid">
                    <DetailTables>
                        <telerik:GridTableView Name="Orders" Width="100%" runat="server" DataKeyNames="productid">
                            <NestedViewTemplate>
                                <asp:Panel ID="Container" runat="server">
                                    <telerik:RadTabStrip ID="Gridtab1" runat="server" Skin="WebBlue" MultiPageID="gridmultypage1">
                                        <Tabs>
                                            <telerik:RadTab runat="server" PageViewID="gridpageview1" Selected="true" Text="Transactions Details">
                                            </telerik:RadTab>
                                        </Tabs>
                                    </telerik:RadTabStrip>
                                    <telerik:RadMultiPage ID="gridmultypage1" SelectedIndex="0" runat="server">
                                        <telerik:RadPageView ID="gridpageview1" runat="server">
                                            <telerik:RadGrid ID="RadGridDD" Skin="WebBlue" runat="server">
                                            </telerik:RadGrid>
                                        </telerik:RadPageView>
                                    </telerik:RadMultiPage>
                                </asp:Panel>
                            </NestedViewTemplate>
                            <Columns>
                                <telerik:GridBoundColumn DataField="productid" HeaderText="productid" UniqueName="productid">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="categoryid" HeaderText="categoryid" UniqueName="categoryid">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="quantity" HeaderText="quantity" UniqueName="quantity">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <ExpandCollapseColumn Visible="True">
                            </ExpandCollapseColumn>
                        </telerik:GridTableView>
                    </DetailTables>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="rdate" HeaderText="date" UniqueName="rdate">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="userid" HeaderText="userid" UniqueName="userid">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="rdescription" HeaderText="rdescription" UniqueName="rdescription">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="requisitionid" HeaderText="requisitionid" UniqueName="requisitionid">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="request_type" HeaderText="request_type" UniqueName="request_type">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>


Thank you
Suresh K
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
86 views
Hi

I can't seem to find any article telling how to use code behind with telerik panelbar, or using code behind at all with telerik components, in SharePoint.

Please let me know if there are any, or point me in the right direction.

Regards.
Princy
Top achievements
Rank 2
 answered on 08 Sep 2009
4 answers
93 views
Is there an implementation of this currently available, or has anyone managed to put a datepicker or combobox inside the radgrid?

Please point me in the right direction or share your findings.

Thanks
Georgi Krustev
Telerik team
 answered on 08 Sep 2009
3 answers
167 views
can we add the Radcombo box or datalist of asp.net inside  grouping panel ?

Is it possible reply please

Princy
Top achievements
Rank 2
 answered on 08 Sep 2009
1 answer
91 views
Hi,

Does anyone know how to add a shortcut to an ApplyClass DropDown Item (CSS Class)?

I tried adding a shortcut to this ASPX statement:

 

<telerik:EditorCssClass Name="general noun concept" Value=".GeneralNounConcept" ShortCut="CTRL+G"/>

 


but at runtime I got this error:

 

Server Error in '/SBVRWebForms' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Type 'Telerik.Web.UI.EditorCssClass' does not have a public property named 'ShortCut'.

Source Error:

Line 119:                </CssFiles>
Line 120:                <CssClasses>
Line 121: <telerik:EditorCssClass Name="Clear Class" Value="" ShortCut="CTRL+-"/>Line 122:                    <telerik:EditorCssClass Name="general noun concept" Value=".GeneralNounConcept" ShortCut="CTRL+G"/>

I have searched all the Telerik documentation, forums,  and technical articles; and can find no discussion of how to do this.

I am implementing software that supports the Object Management Group (OMG) "Semantics of Business Vocabulary and Business Rules" standard.  SBVR Structured English makes heavy use of styles to provide a formal interpretation of natural language text.

There would a huge productivity savings in the creation of SBVR Structure English statements if each CSS style in the ApplyClass DropDown could be executed with just a shortcut key right while your typing the text bening styled.

Many Thanks,

Donald
Rumen
Telerik team
 answered on 08 Sep 2009
2 answers
181 views
Hi,

I have a grid that binds to a dataset with approx. 100 rows and 40 columns.  I'm NOT using paging for this application for a number of reasons.  The grid shows 10 rows vertically and 12 columns horizontally.  So, users scroll vertically and horizontally to view the data.  I also have columns 1 to 3 set as "frozen" columns.

As an example, the user may scroll right to see columns 20-27 (along with frozen columns 1 to 3) and then scroll down to see rows 20-30.  At that time, the user selects row 25 (row click  action) from the grid.  The row is highlighted.  Through the ItemComand event, the application displays the data (columns) for the row in a separate "edit" panel (an AJAX action).  User then edits data of the row in the "edit" panel, clicks a SAVE button (a postback action) to save the changes.  The changes are then written to the database; a fresh dataset is retrieved from the database and the grid is re-bound to the dataset.  Relatively simple.  Eveything works as planned. 

Questions:

1.  At the end of the postback action, the grid is refreshed and naturally the grid now goes back to the top, i.e. row 1 and columns 1 to 10.  I would like to keep the grid's previous scroll position (both veritical and horizontal), so that the user sees the grid just as prior to the edit action, i.e. in this example, grid would display rows 20 to 30, columns 20 to 27, with row 25 highlighted.  How do I accomplish that?

2. A related question:  I have enabled column resizing.  However, I find that the the "<--> drag to resize icon" doesn't always show up when and where I'd expect it to.  For most columns, it shows when the mouse hovers over the column divider in the header (normal behavior I believe).  For some columns, this doesn't work.  In those cases, I have to move the mouse around and sometimes it would show when the mouse hovers at the bottom of the column header and sometimes it wouldn't show at up.  The behavior is inconsistent.  Users will get very confused and frustrated with this.  Does anyone have an explanation or solution for this?

Thanks for any advise.

Barry
Pavlina
Telerik team
 answered on 08 Sep 2009
3 answers
87 views
Hi,

I have  a grid created on the Page_Init method and the grid is populated client side from a webservice when I try and used drag n drop i get an exception on the server

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
   at Telerik.Web.UI.RadGrid.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)
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.organisationalviews2_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8c660e17\2b7f802b\App_Web_nrp1nnrc.16.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

the drag n drop was working fine, but it seems to have broken since I converted the grid to be created at run time. I have also completed disconnected the clientside row dropping event and serverside RowDrop event but i still get this exception.

any ideas?.

Toby
Top achievements
Rank 1
 answered on 08 Sep 2009
5 answers
106 views
Hi

I encountered the effect that the RadGrid PopUp isn't shown if the RadSplitter in which the grid resides has the VisibleDuringInit property set to false. The popup has display: none (IE) or a negative offset (FF) is this set to false. 
I asume this is a bug and will be fixed as having the content moving around during load/resize of the splitter is ugly and confusing...

greetings
Tunde Adefowoju
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
135 views
<telerik:GridGroupByField Aggregate="Avg" FieldAlias="BudgetBal" FieldName="EstCost"
                                        FormatString="{0:c}" />


I hv one column that contains some product value, when i calculate that value sometimes it goes in minus. when it in minus it will not shown minus condition. 

i want to show the value Minus if in miuns

like this
Balance Value = 3000  if not minus
balnce value = -6000 if caluctiaon goes in minus but now it shows like this Balance = 6000

Reply please urgent
Yavor
Telerik team
 answered on 08 Sep 2009
3 answers
149 views
Hi guys,

I wonder when you have an error like this, what is the best way to track it down to the exact RadComboBox in the Grid?

Message:  name is neither a DataColumn nor a DataRelation for table pv_contracts.

Trace:  at System.Data.DataRowView.get_Item(String property) at Telerik.Web.UI.PropertyDescriptorCache.GetPropertyValue(Object dataItem, String propertyName) at Telerik.Web.UI.PropertyDescriptorCache.GetPropertyValue(Object dataItem, String propertyName, String format) at Telerik.Web.UI.ControlItem.PopulateFromDataItem(PropertyDescriptorCache propertues, Object dataItem, String dataMember, Int32 depth) at Telerik.Web.UI.RadComboBoxItem.PopulateFromDataItem(PropertyDescriptorCache properties, Object dataItem, String dataMember, Int32 depth) at Telerik.Web.UI.ControlDataBinder.SetItemPropeties(ControlItem item, Object dataItem, String dataMember, Int32 depth) at Telerik.Web.UI.ControlDataBinder.BindItem(ControlItemCollection items, Object dataObject, Object dataItem, String dataMember, Int32 depth) at Telerik.Web.UI.ControlDataBinder.BindItem(ControlItemCollection items, Object dataItem, String dataMember, Int32 depth) at Telerik.Web.UI.ControlDataBinder.BindToEnumerableData(IEnumerable dataSource) at Telerik.Web.UI.ControlItemContainer.PerformDataBinding(IEnumerable data) at Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) at Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) at Telerik.Web.UI.RadComboBox.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at Telerik.Web.UI.GridDropDownListColumnEditor.DataBind() at Telerik.Web.UI.GridDropDownColumn.OnDataBindColumn(Object sender, GridCellDataBoundEventArgs args) at Telerik.Web.UI.GridCellDataBoundEvent.Invoke(Object sender, GridCellDataBoundEventArgs args) at Telerik.Web.UI.GridItem.OnCellDataBound(GridColumn column, TableCell cell) at Telerik.Web.UI.GridItem.CellsDataBound(GridColumn[] columns) at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) at Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode) at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.RadGrid.DataBind() at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Thank you.

Bruno Alexandre
(using Søren's account)


Sebastian
Telerik team
 answered on 08 Sep 2009
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?