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

How to use Telerik Radgrid Find Control Dynamically
For ex: My Code This

 foreach (GridDataItem gr in TlkGrd.Items)
                    {
    CheckBox ChkStatus = gr.FindControl("ChkStatus ") as CheckBox;
}

here I already binded my grid but here when i click the button control i need how to without mention my Findcontrol i take my findcontrol property name 
i take dynamically how will do this
Eyup
Telerik team
 answered on 24 Feb 2015
1 answer
74 views
I have a couple of date pickers and notifications on a web page, i decided to change the look of the site and change the skins on all of my rad controls the result is that all the popups including the notification popups seems to have stopped working. I am a beginner in the art of javascript but assume that's where the problem lies, did the skin change break it? 
Angel Petrov
Telerik team
 answered on 24 Feb 2015
2 answers
153 views
hi

I have Telerik Radgrid How to Get Column Wise Data get values. 
This is my Code

foreach (GridDataItem grdf in GrdStatus.Items)
{

}
Jaya
Top achievements
Rank 1
 answered on 24 Feb 2015
1 answer
75 views
Hi,
I've just got struck up in particular case scenario. 

Is it possible to have both case sensitive and case insensitive filter in radgrid. If it is not possible atleast provide me a work around.



Thanks and regards,
Vinoth VS
vinoth
Top achievements
Rank 1
 answered on 24 Feb 2015
6 answers
428 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
99 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
278 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
153 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
1.0K+ 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
773 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?