Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
I have a hierarchical RadGrid that is editable.  If you edit a row that is expanded, the row collapses once in edit mode.  Once its in edit mode, you can expand it again and it remains in edit mode. This can be seen in the Telerik demos (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx) so I'm guessing this is the way it was designed, and is not a bug.  But is there a way I can prevent a row from collapsing when it enters edit mode?

Thanks,
Justin
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
159 views
Hi,

why following code is not changing the header background color?
<HeaderStyle Font-Bold="true" BackColor="#FF9900"/>

Many thanks 
MG
Radoslav
Telerik team
 answered on 06 Aug 2010
1 answer
208 views
My requirement is to open a Detail Table in a Hierachy RadGrid from a double click.  We have the expand arrow working fine for this, but would also like to have Row Double click do the same thing. 

Here is sample of what we currently have:

Designer:

<telerik:RadGrid ID="rgvOrderHistory"
                 runat="server"
                 AllowPaging="True"
                 AllowCustomPaging="true"
                 AllowSorting="true"
                 AutoGenerateColumns="false"
                 AllowFilteringByColumn="false"
                 OnSortCommand="rgvOrderHistory_SortCommand"
                 OnNeedDataSource="rgvOrderHistory_NeedDataSource"
                 OnItemDataBound="rgvOrderHistory_ItemDataBound"
                 OnDetailTableDataBind="rgvOrderHistory_DetailTableDataBind"
                 CssClass="rgvOrderHistory"
            onitemcommand="rgvOrderHistory_ItemCommand" >
    <MasterTableView DataKeyNames="OrderNumber"
                     AllowPaging="true"
                     PageSize="10"
                     PagerStyle-AlwaysVisible="true"
                     PagerStyle-Mode="NextPrevAndNumeric"
                     AutoGenerateColumns="false"
                     AllowFilteringByColumn="false"
                     Name="OrderHistoryMaster">                              
            <Columns>
                 //SOME BOUND COLUMNS
   </Columns>
                
                     <DetailTables>
                        <telerik:GridTableView AutoGenerateColumns="false"
                                               AllowPaging="false"
                                               AllowFilteringByColumn="false"
                                               CssClass="rgvOrderHistoryDetails"
                                               Name="OrderHistoryDetail"
                                               DataKeyNames="ProductID" >
                       <Columns>
                            //SOME BOUND COLUMNS
  </Columns>
</MasterTableView>
   <ClientSettings></ClientSettings>
</telerik:RadGrid>

Code Behind:

   protected void rgvOrderHistory_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            try
            {

                if (e.IsFromDetailTable) return;

                int virtualItemCount;
                rgvOrderHistory.DataSource = GetOrderHistoryDataSource(out virtualItemCount);
                rgvOrderHistory.VirtualItemCount = virtualItemCount;
            }         
            catch (Exception ex)
            {
                //some code
            }
        }

  protected void rgvOrderHistory_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {
            try
            {

                GridDataItem dataItem = e.DetailTableView.ParentItem;
                int orderNumber = (int) dataItem.GetDataKeyValue("OrderNumber");
                int virtualItemCount;

                e.DetailTableView.DataSource = GetOrderHistoryDetailDataSource(orderNumber, e.DetailTableView.PageSize,
                                                                               e.DetailTableView.CurrentPageIndex,
                                                                               out virtualItemCount);
                e.DetailTableView.VirtualItemCount = virtualItemCount;

            }
            catch (Exception ex)
            {
                //some code
            }
        }






Some Help Please Thanks!
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
136 views

Hi,

i'm using radgrid to display, insert, edit and delete record. i'm using latest telerik dll of vs2010. and i'm working in vs2008.
i'm using SqlDatasource as datasourceid.
To insert new record i'm using EditFormSettings. i have button event specified in CommandItemTemplate.
Insert, Update, Delete functionality works fine. but it creating problem with insert button.
when i click on insert button Insert record template displayed on last page of grid.
suppose i have 2 pages in radgrid. currently i'm on first page and click on insert button then insert template is displayed on top of the 2nd page. it should display on top of the first page.

Please guide me on this issue.

thanks
Sweta
Princy
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
232 views
Hi,

I am struggling with how to pass a context variable to the insert logic in a user control edit form when Add a new Row is selected in a grid. The example I'm modelling this after is here:

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

However on the DataBinding event of the user control for GridInsertionObject, I need to get one variable from the parent form, which is the ID of a row in a related table, which is required on insert to tie the inserted row to its parent. I've tried the mechanism here:

http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html

but that doesn't work. In the end, I store the ID I need in a session variable, but I'm not happy with that approach. Is there a simple way to do what I need to do?

Thanks, Steve

Veli
Telerik team
 answered on 06 Aug 2010
1 answer
53 views

How do I bind the Custom Field to the TreeView Node so that in javascript, I can get "Custom1" and "Custom2" value.

DataTable tb = new DataTable(); 
tb.Columns.Add("ID"); 
tb.Columns.Add("ParentID"); 
tb.Columns.Add("Name"); 
tb.Columns.Add("Custom1"); 
tb.Columns.Add("Custom2"); 
    
// add item to the datatable 
    
TreeView1.DataSource = tb; 
TreeView1.DataBind();

 

<telerik:RadTreeView ID="TreeView1" runat="server" Skin="Default" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Name">
    <DataBindings>
        <telerik:RadTreeNodeBinding Expanded="True" TextField="Name" ValueField="ID" />
    </DataBindings>
</telerik:RadTreeView>

Thanks in advance.
Yana
Telerik team
 answered on 06 Aug 2010
1 answer
102 views
Hey guys,

I am binding to our company exchange server and grouping by 2 conference room resources in the Scheduer Instance. Was able to add them as required attendees when creating appointments.

The issue I am having is that the meeting in my calendar takes the subject from the appointment created in the scheduler, while the conference room calendar shows my name as the subject... Strangely enough, debugging on the client side, I can see that the calendaritem object has the subject properly inherited from the scheduler...

Here is a screenshot from my Outlook Calendar...

Any help is greatly appreciated!

Thanks,

Sergiu Pascutiu


Sergiu
Top achievements
Rank 2
 answered on 05 Aug 2010
7 answers
153 views
Even though it makes the title of this thread invalid, I have simplified the problem in the next post...
iTools
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
325 views

 

I have a column defined something like this:
<
rada:GridTemplateColumn >

 

 

<HeaderTemplate>headertext</HeaderTemplate>

 

 

<ItemTemplate>
...

 

 

</ItemTemplate>

 

 

 

 

 

</rada:GridTemplateColumn>

 




Is there a way to dynamically hide or show this column in the code behind depending on when I need it?

I know I can hide a

GridBoundColumn

 by calling this:

rg.Columns.FindByDataField(

"Columnname").Visible = false;

but haven't figured out GridTemplateColumn yet.

 

Mike Causi
Top achievements
Rank 1
 answered on 05 Aug 2010
4 answers
168 views
Hi. Is there any way that I can get a LinkButton that's on the same page as a Grid to generate an 'InitInsert' command so that a new grid row can be entered by a user? For UI design reasons, I'm not able to include the LinkButton within a Grid CommandItemTemplate - it needs to be a separate LinkButton that's located in the page sidebar.
Regards.
Ian
Top achievements
Rank 1
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?