Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
238 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
125 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
958 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
728 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
474 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
922 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
149 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
77 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
5 answers
162 views

A common way of interacting with other lightbox libraries is to have a snippet of jquery that applies 
the lightbox to all image links on a page. This makes for nice unobtrusive javascript. 

Is there a nice clean equivalent of this example using the jquery fancybox library?

<script type="text/javascript">
$(document).ready(function() {
$('a[href*=".png"], a[href*=".gif"], a[href*=".jpg"]').attr('rel', 'gallery').fancybox();
});
</script>
Kostadin
Telerik team
 answered on 23 Feb 2015
4 answers
160 views
I need to change the file name based on a parameter passed by url
but the class does not allow me to access the request.
how can I get access to session variables or passed in the url within the parameters Telerik.Web.UI.CloudUploadHandler class?

see my code below.


Imports System
Imports System.Web
Imports System.Web.Services

Public Class vendedores_img : Inherits Telerik.Web.UI.CloudUploadHandler

    Public Overrides Sub SetKeyName(sender As Object, e As Telerik.Web.UI.CloudUpload.SetKeyNameEventArgs)

        e.KeyName = "vendedores-img-pg/" & e.OriginalFileName

    End Sub
    Public Overloads Sub ProcessRequest(context As System.Web.HttpContext) ' *** Not that performing this procedure ***
        Dim vID As String = context.Request.QueryString("ContaID")
        e.KeyName = vID
' *** Not that performing this procedure ***
    End Sub

End Class
Peter Filipov
Telerik team
 answered on 23 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?