Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
117 views
Hi guys !

I tried to use this example : http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx
but I have some difficulties to make it work... :(

The principle is the same :
    - I have a radGrid with 4 ComboBox columns and 1 textBox Column
   - I have a form that I want to complete when I select a row of the radGrid

<telerik:RadGrid ID="invRadGrid" runat="server" Skin="WebBlue" Width="100%" Height="200px" 
                        OnRowDrop="invRadGrid_OnRowDrop" AllowMultiRowSelection="true" CssClass="grid">   
                        <PagerStyle  Mode="NumericPages"/>                       
                        <MasterTableView ShowHeadersWhenNoRecords="true"> 
                            <Columns> 
                                <telerik:GridTemplateColumn UniqueName="TemplateName" AllowFiltering="false" Reorderable="false"> 
                                    <ItemTemplate> 
                                        <asp:DropDownList ID="name" runat="server" width="100%" Enabled="false"/> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="TemplateType" AllowFiltering="false" Reorderable="false" > 
                                    <ItemTemplate> 
                                        <asp:DropDownList ID="type" runat="server" width="100%" Enabled="false"/> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="TemplateObligatory" AllowFiltering="false" Reorderable="false"> 
                                    <ItemTemplate> 
                                        <asp:DropDownList ID="obligatory" runat="server" width="100%" Enabled="false"/> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="TemplateUnicity" AllowFiltering="false" Reorderable="false" > 
                                    <ItemTemplate> 
                                        <asp:DropDownList ID="unicity" runat="server" width="100%" Enabled="false"/> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn UniqueName="TemplateDefault" AllowFiltering="false" Reorderable="false"> 
                                    <ItemTemplate> 
                                        <asp:TextBox ID="default" UniqueName="defaultTextBox" Text='<%# Eval("TemplateDefault") %>' 
                                                    runat="server" Width="100%" Enabled="false"> 
                                        </asp:TextBox> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                               
                            </Columns> 
                        </MasterTableView> 
                        <ClientSettings  AllowRowsDragDrop="True"> 
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> 
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"  /> 
                            <ClientEvents OnRowClick="rowClick"  /> 
                        </ClientSettings> 
                    </telerik:RadGrid> 

<div  style="border: 1px solid threedshadow; margin-left:10px; margin-right:10px;"> 
            <table width="100%" cellpadding="5px"> 
                <tr> 
                    <td width="15%" align="right"> 
                        <asp:Label ID="nameLabel" runat="server" meta:resourcekey="nameLabelResource" />                         
                    </td> 
                    <td width="55%"> 
                        <telerik:RadTextBox ID="nameTextBox" runat="server" Width="100%" /> 
                    </td> 
                    <td width="30%" align="right"> 
                        <asp:Button ID="saveChangesButton" Style="color: black; font-weight: bold;" 
                            meta:resourcekey="saveChangesButtonResource" runat="server" /> 
                        <asp:Button ID="deleteButton" Style="color: black; font-weight: bold;" 
                            meta:resourcekey="deleteButtonResource" runat="server" /> 
                    </td> 
                </tr> 
                 
                <tr> 
                    <td align="right"> 
                        <asp:Label ID="typeAttributesLabel" runat="server" meta:resourcekey="typeLabelResource" /> 
                    </td> 
                    <td align="left"> 
                        <telerik:RadComboBox ID="typeAttributesDropDownList" runat="server" width="40%"/> 
                        &nbsp;&nbsp;&nbsp; 
                        <asp:RadioButtonList ID="typeAttributesRadioButtonList" runat="server" width="48%" /> 
                    </td> 
                </tr> 
                 
                <tr> 
                    <td  align="right"> 
                        <asp:Label ID="defaultValueLabel" runat="server" meta:resourcekey="defaultValueLabelResource" /> 
                    </td> 
                    <td> 
                        <asp:TextBox ID="defaultValueTextBox" runat="server" width="100%"/> 
                    </td> 
                </tr> 
            </table> 

In fact I would like to know first where is definied
MyWebService.GetEmployeeByEmployeeID(employeeID, setValues) 

Jean
Top achievements
Rank 1
 answered on 30 Mar 2010
5 answers
281 views
hi all,

After I upgraded to Q1 2010 the pager position is not working. 

It actually works on first load but after expanding (ajax postback), one row in the grid, the pager appears both at the bottom and top of the grid, but is set to show just at the bottom.  

It seems to be working correctly if AlwaysVisible is set to false but as I have custom pager that shows the time and more that is not a option to set too false.
This setting worked before the update:
<PagerStyle Mode="NumericPages" BackColor="White" Position="Bottom" AlwaysVisible="true" />

Any ideas of what is wrong or have a workaround?

Pavlina
Telerik team
 answered on 30 Mar 2010
3 answers
159 views
Dear,
 i want to ask how i can (if i can ) change file attachment size.

Regards,
Dimo
Telerik team
 answered on 30 Mar 2010
2 answers
113 views
i am using radeditor for storing comments in Database.
but in Mozilla Firefox it stores blank content while in IE6+ working successfully.

Plz. Help to solve this bug.
Rumen
Telerik team
 answered on 30 Mar 2010
1 answer
172 views
Hello, good day.

Is there a way to export a chart to excel like the grid control?
Schlurk
Top achievements
Rank 2
 answered on 30 Mar 2010
5 answers
443 views
my application has lots of grids. i find that the filters are case sensitive and do not work with the apostrophe character unless i set
EnableLinqExpressions="false"

in the grid definition. naturally, i dont want to have to do this for every grid in my application. i'm wondering why the default would be set to true when it has such an impact on existing functionality?
cheers,
rob

Nikolay Rusev
Telerik team
 answered on 30 Mar 2010
6 answers
153 views
I have some RadDocks (dynamically loaded to a RadDockZone) within a hidden RadDockZone more specifically with it's attributes on the RDZ set to display:none;
When I display the hidden RDZ it shows up properly, but the RadDocks within it are missing their respective collapse bars and only appear after i click on each one of them and unclick.  Any idea how to fix this issue?

<

 

telerik:RadDockZone ID="RadDockZone4" CssClass="RDZ" Runat="server" Skin=""></telerik:RadDockZone>

 

.RDZ

 

 

 

{

 

position:absolute;

 

 

left:500px;

 

 

top:20px;

 

 

display:none;

 

 

}

Pero
Telerik team
 answered on 30 Mar 2010
1 answer
122 views

Hi,

I m having drag and drop operation using radgrid in my application. It is very much slow even i have commented the server side coding sections like RowDrop, ItemDataBound, prerender.  Now i dont have any operations in server side, simply i drag and drop but  then too it takes 30 secs.

Here is my code snippet..

 

 <telerik:RadGrid runat="server" ID="grd_CommercialDetails" OnRowDrop="grd_CommercialDetails_RowDrop" AllowFilteringByColumn="true"   
                     AllowPaging="True"  AllowMultiRowSelection="true" DataSourceID="CommercialDataSource"  AutoGenerateColumns="false" 
                   PageSize="5"  AllowSorting="true" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnNeedDataSource="grd_CommercialDetails_NeedDataSource" >     
                <MasterTableView DataKeyNames="Commercial_Id" AutoGenerateColumns="false" DataSourceID="CommercialDataSource" AllowFilteringByColumn="true">  
                <Columns> 
                <telerik:GridClientSelectColumn UniqueName="Commercial_Select" HeaderStyle-Width="20px" /> 
                <telerik:GridBoundColumn DataField="ReleaseOrderNo" HeaderText="ReleaseOrderNo" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Commercial_Id" HeaderText="CommercialId" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Company" HeaderText="Company" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommercialName" HeaderText="Commercial" FilterControlWidth="40px" HeaderStyle-Width="80px" Resizable="true" Display="true"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Client" HeaderText="ClientName" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Duration" HeaderText="Duration (secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                <telerik:GridDateTimeColumn UniqueName="DateTime"  DataFormatString="{0:d}" FilterControlWidth="82px" HeaderStyle-Width="110px" 
                        SortExpression="DateTime" HeaderText="Date" DataField="Date">  
                 </telerik:GridDateTimeColumn>   
                  <telerik:GridBoundColumn DataField="Date" HeaderText="Date" Display="false" DataFormatString="{0:d}"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommericalTime" HeaderText="Total Duration(secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommTimeAvail" HeaderText="TotalAvailable Duration(secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                </Columns> 
                 
                </MasterTableView> 
                <SelectedItemStyle BackColor="BurlyWood" Font-Bold="true" ForeColor="Black" /> 
                <ClientSettings AllowRowsDragDrop="True">  
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false"/>  
                     
                    <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  
                </ClientSettings> 
                <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" AlwaysVisible="true"  /> 
            </telerik:RadGrid> 

Pleas give any suggestions,

Thanks in advance.

Regards,
Maha:)

 

.

Yavor
Telerik team
 answered on 30 Mar 2010
2 answers
106 views
I have an issue with the Scheduler on a content page wherein when changing views of opening an AdvancedEdit form will cause a Radmenu control on the underlying master page to lose the color on the menu.  The menu items are still there and the behavior is present in the IE series, 8 in particular, browsers, not Firefox or Chrome.  Wondering if anyone else out there has seen this behavior.
Cliff
Top achievements
Rank 1
 answered on 30 Mar 2010
15 answers
214 views
I'm attempting to get my RadGrid to show the NestedTemplate when the row is clicked, but show the edit template when the Edit button (created via a GridEditCommandColumn) is clicked.

In my ItemCommand handler, I have the following code:

if(e.Item is GridDataItem)  
{  
  if(e.CommandName == "RowClick")  
  {  
      if(e.Item.Selected)  
      {  
          e.Item.Selected = false;  
          e.Item.Expanded = false;  
      }  
      else 
      {  
          e.Item.Selected = true;  
          e.Item.Expanded = true;  
      }  
 
      e.Item.Edit = false;  
  }  
  else if(e.CommandName == "Edit")  
  {  
      e.Item.Selected = true;  
      e.Item.Expanded = false;  
      e.Item.Edit = true;  
      myGrid.Rebind();  
  }  
} 

This code works fine for selecting the row via a RowClick, but the ItemCommand fires twice for the Edit button click, once with a CommandName of Edit, and then once with a CommandName of RowClick. This results in the row showing the NestedTemplate instead of the EditTemplate.

Futhermore, it appears that the state from the first ItemCommand event does not exist for the second ItemCommand event. In other words, the fact that I set the row to Selected and Expanded does not show up when the second ItemCommand event is handled, so I can't check this information and prevent the RowClick from messing things up.

What am I doing wrong?
Tsvetoslav
Telerik team
 answered on 30 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?