Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
404 views
Hi -

I am looking for a simple example the will help me reorder rows by drag and drop in a grid.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx is far to complex for what I an trying to accomplish.

I have a simple grid with a "sortorder column". I would like to be able to drag the rows (keeping them inside the grid) to move them the to different levels on the grid changing the order. A button it would save the take the new sort from the grid and then i could save the new row order and update my table. 


Is there any examples? I am looking for simple drag and drop row sorting and saving?



Norway77
Top achievements
Rank 1
 answered on 24 Feb 2015
0 answers
91 views
I'm offering clients custom reports that have different charts each, so I need to be able to load the charts' design and their data from a database, since it'll always be a different charts design.
Is there an easy way to do this? I mean like save the chart's design info as XML and later load it and its data during run-time? I need to perform quickly though.

I'm also considering using kendoui charts instead and generate HTML during runtime, but not if there's an easier way to do it with the Radhtmlcharts.

Please comment,
Gus
Gustavo
Top achievements
Rank 1
 asked on 23 Feb 2015
1 answer
267 views
I have been asked to change the icon in the drop down list from the "V" to a custom image.  Is this possible?  If so, what would your recommend is the best way to do so? 

Please see the attached image as an example.  I've highlighted what we would like to change in a red box.

Thank you.
Aneliya Petkova
Telerik team
 answered on 23 Feb 2015
2 answers
145 views
I have a RadGrid with three columns. One of those columns is always hidden.

When there are no records in the grid, the grid shows the NoRecordsTemplate, which just display the message "There are no records".

My problem is that I get this W3C error when I run my grid markup through the W3C Validator:
"A table row was 2 columns wide, which is less than the column count established using column markup (3)."

So the problem is that the colspan for the NoRecords td is 2, when it should be 3. It looks like the code is only making the colspan 2 since it's ignoring the hidden column.

Here's the markup with the problem. The W3C error occurs on the fifth to last row, with the rgNoRecords class.

Are there any workarounds for this problem? Thanks.

<th scope="col" class="rgHeader">
  <a onclick="Telerik.Web.UI.Grid.Sort($find('ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00'), 'Event name'); return false;" id="ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00_ctl02_ctl01_btn_ResultsGrid_2_Sort_Event_name" title="Click here to sort" href="javascript:__doPostBack('ctl01$TemplateBody$WebPartManager1$gwpciNewDynamicContentCollectionOrganizerCommon$ciNewDynamicContentCollectionOrganizerCommon$Events$ResultsGrid$Grid1$ctl00$ctl02$ctl01$btn_ResultsGrid_2_Sort_Event_name','')">Event name</a>
</th>
<th scope="col" class="rgHeader">
  <a onclick="Telerik.Web.UI.Grid.Sort($find('ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00'), 'Starting'); return false;" id="ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00_ctl02_ctl01_btn_ResultsGrid_3_Sort_Starting" title="Click here to sort" href="javascript:__doPostBack('ctl01$TemplateBody$WebPartManager1$gwpciNewDynamicContentCollectionOrganizerCommon$ciNewDynamicContentCollectionOrganizerCommon$Events$ResultsGrid$Grid1$ctl00$ctl02$ctl01$btn_ResultsGrid_3_Sort_Starting','')">Starting</a>
</th>
<th scope="col" class="rgHeader" style="display:none;">
  <a onclick="Telerik.Web.UI.Grid.Sort($find('ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00'), 'key_UniformKey'); return false;" id="ctl01_TemplateBody_WebPartManager1_gwpciNewDynamicContentCollectionOrganizerCommon_ciNewDynamicContentCollectionOrganizerCommon_Events_ResultsGrid_Grid1_ctl00_ctl02_ctl01_btn_ResultsGrid_5_Sort_0" title="Click here to sort" href="javascript:__doPostBack('ctl01$TemplateBody$WebPartManager1$gwpciNewDynamicContentCollectionOrganizerCommon$ciNewDynamicContentCollectionOrganizerCommon$Events$ResultsGrid$Grid1$ctl00$ctl02$ctl01$btn_ResultsGrid_5_Sort_0','')">
</a>
</th>
</tr>
</thead>
  <tbody>
    <tr class="rgNoRecords">
      <td colspan="2" style="text-align:left;">
        <div>There are no records.</div>
      </td>
    </tr>
  </tbody>
Reid
Top achievements
Rank 1
 answered on 23 Feb 2015
1 answer
989 views
Hi

How to get Column Wise values in Telerik RadGrid  when i click button click events 
Pavlina
Telerik team
 answered on 23 Feb 2015
2 answers
761 views
Hai all,

I have a Radgrid in that i have Edit and Add functionality when i click on Edit or Add it will open Radwindow there i have ListBox and some button opertions .
when it is going to postback the radwindow is closing and reopend why it happens while doing postbacks i dnt want to close radwindow how to do see the below code once
<asp:UpdatePanel ID="upnlCompany" runat="server">
       <ContentTemplate>
           <telerik:RadWindow ID="RadWin_AddEditCompany" runat="server" Modal="true" OnClientBeforeShow="OnClientBeforeShow"
               Behaviors="Close,Maximize,Reload" VisibleStatusbar="true" Height="430px" Width="860px">
               <ContentTemplate>
                   <asp:UpdatePanel ID="upnlSaveUpdateCompany" runat="server" UpdateMode="Conditional">
                       <ContentTemplate>
        <table>
                               <tr>
                                   <td class="tdLabel" align="center">
                                       <asp:Label ID="lblUnSelectedEmployees" runat="server" Text="Other Company Employees"></asp:Label>
                                   </td>
                                   <td>
                                   </td>
                                   <td class="tdLabel" align="center">
                                       <asp:Label ID="lblSelectedEmployees" runat="server" Text="Selected Employees"></asp:Label>
                                   </td>
                               </tr>
                               <tr>
                                   <td colspan="3" style="height: 7px">
                                   </td>
                               </tr>
                               <tr>
                                   <td>
                                       <asp:ListBox ID="lbxUnSelectedEmployees" runat="server" Height="200px" SelectionMode="Multiple">
                                       </asp:ListBox>
                                       <cc1:ListSearchExtender ID="listSearchOtherEmployee" runat="server" Enabled="True"
                                           QueryPattern="Contains" PromptPosition="Top" PromptCssClass="ListSearchExtenderPrompt"
                                           TargetControlID="lbxUnSelectedEmployees">
                                       </cc1:ListSearchExtender>
                                   </td>
                                   <td class="tdControl">
                                       <asp:Button ID="btnSelect" runat="server" Text=">>" CausesValidation="false" OnClick="btnSelect_Click" /><br />
                                       <br />
                                   </td>
                                   <td>
                                       <asp:ListBox ID="lbxSelectedEmployees" runat="server" Height="200px" SelectionMode="Multiple">
                                       </asp:ListBox>
                                       <cc1:ListSearchExtender ID="listSearchSelectedEmployee" runat="server" Enabled="True"
                                           QueryPattern="Contains" PromptPosition="Top" PromptCssClass="ListSearchExtenderPrompt"
                                           TargetControlID="lbxSelectedEmployees">
                                       </cc1:ListSearchExtender>
                                   </td>
                               </tr>
                           </table>
<asp:Button ID="btnSave" runat="server" CommandName="Insert" Width="50px" Text="Save"
                                           OnClick="btnSave_Click" />
</ContentTemplate>
                   </asp:UpdatePanel>
</ContentTemplate>
           </telerik:RadWindow>
<div class="layout">
               <telerik:RadGrid ID="rgCompany" runat="server" Width="60%" OnNeedDataSource="rgCompany_NeedDataSource"
                   OnItemCommand="rgCompany_ItemCommand" PagerStyle-Mode="Advanced" AllowFilteringByColumn="true">
                   <MasterTableView Width="100%" DataKeyNames="CompanyID">
                       <Columns>
                           <telerik:GridTemplateColumn DataField="CompanyName" HeaderText="Company Name" FilterControlWidth="125"
                               HeaderStyle-Width="40%" SortExpression="CompanyName">
                               <ItemTemplate>
                                   <asp:Label ID="lblCompanyName" runat="server" Text='<%# Eval("CompanyName") %>' />
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Description" AllowFiltering="false" HeaderStyle-Width="30%"
                               SortExpression="CompanyDescription">
                               <ItemTemplate>
                                   <asp:Label ID="lblCompanyDesc" runat="server" Text='<%# Eval("CompanyDescription") %>' />
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           
                           <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center"
                               ItemStyle-HorizontalAlign="Center">
                               <HeaderTemplate>
                                   <telerik:RadButton ID="rbAddCompany" runat="server" Text="Add" ButtonType="LinkButton"
                                       CommandName="RowAdd" CausesValidation="false" Skin="Outlook">
                                       <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                   </telerik:RadButton>
                               </HeaderTemplate>
                               <ItemTemplate>
                                   <telerik:RadButton ID="rbtnEdit" runat="server" Text="Edit" CommandName="RowEdit"
                                       CausesValidation="false" CommandArgument='<%# Eval("CompanyID") %>' ButtonType="LinkButton">
                                   </telerik:RadButton>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                       </Columns>
                   </MasterTableView>
                    
               </telerik:RadGrid>
           </div>
 </ContentTemplate>
   </asp:UpdatePanel>


when i am doing some operations in listbox adding radwindow is closing how to stop it
Pravallika
Top achievements
Rank 1
 answered on 23 Feb 2015
2 answers
498 views
Hi,
i've tried to download UI for Windows Phone 8 but my company firewall has blocked it.

http://www.telerik.com/account/your-products/download-file.aspx?fileid=17925

->

Virus Download BlockedDownload of the virus has been blocked in accordance with company policy. Please contact your system administrator if you believe this is in error.File name: TelerikControlPanelSetup_Windows_Phone8_2014_3_1201.exe

The same with other files like http://www.telerik.com/downloads/productfiles/bmamg/Telerik_UI_for_ASP.NET_AJAX_ControlPanel_2014_3_1209.exe

What's happening? Also some month ago i had the same problems... :-(

The firewall is Paloalto 3050 discovering wgeneric.ekslj.
​
Emanuele
Top achievements
Rank 1
Veteran
 answered on 23 Feb 2015
1 answer
967 views
Hi
I have Bind My TelerikRadgrid Label, checkbox , Textbox etc some controls 

here when i click button click event i need how to find Telerik radgrid controltype name for ex:

How to find Label control id and Checkbox id and Textbox id how will do this C#
Ivan Danchev
Telerik team
 answered on 23 Feb 2015
1 answer
170 views
Is it possible to assign static colors across the pie chart. For example, i have 2 pie charts, on each chart the data corresponds to a user. However in each chart the color is seemingly randomly assigned. I would like to make it static in such a way that user1 will have the same color between the two pie charts, the particular color does not matter. 
Danail Vasilev
Telerik team
 answered on 23 Feb 2015
1 answer
95 views
We're doing server side validation/updating and I need something to indicate that a RadGrid has been updated so I can skip some processes.

I've tried to identify an event that I can fire on to set an update indicator but I can't figure out which one. I'd rather not loop thru all the dataitems
looking for changes.

I've tried ItemEvent, ItemUpdated, but they don't fire when a dropdown is changed.

Thanks
Eyup
Telerik team
 answered on 23 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?