Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
112 views
Hi,
I have a page designed in Asp.Net.It has a External css style sheet linked to the page using 'Link' tag.

Every things works fine including all styles are getting properly applied to the page.
But when I add a rad slider to the page.Css  is not working properly.No Styles are applied to controls.

Again all works fine when I comment out the line of code for RadSlider.
Issue is happening only when I add RadSlider to the page.

I have a master page to my web application.

Html COde for my page will be like this:

<div>
 <telerik:RadPanelBar ID="TestPanelBar" runat="server" 
                Width="75%" Height="526px" ExpandMode="FullExpandedItem" Style="margin-left: 15px;">
                <collapseanimation type="InCubic" />
                <items>
                <telerik:RadPanelItem Text="Test"  Value="TestPanelItem" 
                Style="font-weight: bold;horizontal-align: center" Expanded="true">
                <ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="margin-left: 15px;">
                        <tr>
                           
<td style="padding: 0 5px 5px 0;">
                               <telerik:RadSlider ID="
RadSlider" runat="server" MinimumValue="10" Enabled="false"
                                                MaximumValue="
50" />
                            </td>
                         </tr>

  </table>
                </ContentTemplate>
                </telerik:RadPanelItem>
                </items>
            </telerik:RadPanelBar>
        </div>




Thanks,
Ajeesh
A2H
Top achievements
Rank 1
 answered on 21 May 2012
3 answers
141 views
I am using a grid in a page and when I look at it in design mode it picks up the styles of the skin I choose. However in runtime there is no style applied to the grid. I can't figure out where the problem is coming from. The application works fine there is just no style to the grid. Below is the grid code. Thanks

<

telerik:RadGrid ID="radGridResults" runat="server" GridLines="None"

AllowSorting="True" Skin="Office2007" Visible="False">

<

MasterTableView>

<

RowIndicatorColumn>

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

ExpandCollapseColumn>

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

</

MasterTableView>

<

FilterMenu EnableTheming="True">

<

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

</

FilterMenu>

</

telerik:RadGrid>

Galin
Telerik team
 answered on 21 May 2012
4 answers
554 views
Hi!
I have a RadGrid. The grid gets data from a webservice. I want to export data to Excel. I am trying to use exportToExcel method, but it doesn't work.
How can I export data to Excel?
Thanks for your help!
Den
Top achievements
Rank 1
 answered on 21 May 2012
3 answers
96 views
Here is my code:

<%@ Page Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Files.aspx.vb" Inherits="Digicontacts_Web_Final.Files" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="settings-container">
        <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" DataFieldID="ScheduleID"
            DataFieldParentID="calendar_group" DataSourceID="SqlDataSource1"
            DataTextField="calendar_name">
        </telerik:RadPanelBar>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:vicidial_V4ConnectionString5 %>"
            ProviderName="<%$ ConnectionStrings:vicidial_V4ConnectionString5.ProviderName %>"
            
            SelectCommand="SELECT ScheduleID, calendar_name, calendar_group FROM digi_calendar_bis">
        </asp:SqlDataSource>
     </div>
    <div id="scheduler-container">
     </div>

</asp:Content>

I do not understand why only my RadPanel not displayed?
My base is composed of three column: ScheduleID, and calendar_name calendar_group
I would like to view the calendar_group and within the corresponding calendar_name?
Thank you in advance.

there is really nobody there to help me?
Kate
Telerik team
 answered on 21 May 2012
1 answer
98 views
Hi,

I have simple RadComBox inside my form template. I fill this ComboBox inside the RadGrid_ItemCreated.

I set a value and a text for each RadComboBoxItem. I can't find a DataField Property for ComboBox to select automatically the right item from the DataSource. Is there a way to achieve this? Or I'll need to loop inside ComboBox to select the right one?
Shinu
Top achievements
Rank 2
 answered on 21 May 2012
6 answers
326 views
I have a simple RadGrid, AllowPaging="true" and data is bound via OnNeedDataSource. The following relevant template to describe the problem is:

<telerik:GridTemplateColumn HeaderText="Actions">
    <ItemStyle Wrap="false" />
    <ItemTemplate>
        <asp:Button ID="uxDeleteDeployment" runat="server" CommandName='<%# Eval("deploymentId") %>' ToolTip="Delete deployment" AlternateText="Delete deployment" ImageUrl="/_layouts/images/delete.gif" ImageAlign="AbsMiddle" Visible="false" OnClick="uxDeleteDeployment_Click" OnClientClick='<%# JsEncoder.Format(@"alert(""{0}""); return true", Eval("deploymentId")) %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>

The OnClientClick code alert the value passed to it (in this case it is just a deploymentId -- the same binding that is used with CommandName). The importance of this will be explained below. Also note that I do not set CommandArgument so it will default to the "data key" which is the deploymentId.

In the uxDeleteDeployment_Click there is the following code:

var button = (Button)_sender;
throw new InvalidOperationException("Foo: " + button.CommandName + "|" + button.CommandArgument);

Now, there are the symptoms:

When an item on the FIRST PAGE is clicked the confirm dialog will show X (X is a particular but arbitrary deployment ID for the item) and the exception thrown on on the post-back is "Foo: X|X" -- this is correct behavior.

Now, when the SECOND PAGE is paged to and the button is clicked the confirm dialog will show X (X is a particular but arbitrary deployment ID for the item). However, the exception thrown on the post-back is "Foo: Y|Y" (note Y and not X!!!) where Y is the deploymentId of the item with the SAME PAGE POSITION but on the FIRST PAGE. For instance, Y is the deploymentId of Item #3 from the data-source if Item #13 (#3 in list on the SECOND PAGE) is clicked -- this is not correct behavior.

Additionally,
If the page-size is changed (default is 10) to 20 and item #13 is clicked, the OnClick callback will not be invoked -- rather the page will be refresh to show only the FIRST PAGE (page size of 10) but leaves "20" in the page-size field -- this is not correct behavior.

Other notes:
  • BOTH issues do not exist if paging is disabled.
  • BOTH issues do not occur if manually intercepting the client click and invoking an alternate post-back. (The issue seems to be entirely contained with the post-back of the RadGrid itself.)
  • Using version 2011.1.413.35 (latest as of today) but exact same problems(s) on 2010 Q3
  • ViewStateMode does not change the symptoms/behavior. (ViewState is enabled because filtering is used; disabling the ViewState was just for a test and it had no noticeable effect.)
  • CommandName/CommandArgument have this same incorrect behavior inside of an ItemCommand for the grid (in the case above I discuss it in context of an OnClick applied to the individual button). In the case of ItemCommand the code 'e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["deploymentId"];' results in the same value as CommandArgument (which is wrong).
  • Removing the client-side event handler does not correct the behavior.
  • The Eval is bound correctly per (as shown in the JS alert) but the values sent to the post-back callback were wrong.
  • No AJAX is used -- all post-backs are normal HTTP. There are no additional/secondary post-backs that occur (verified with FireBug).
  • The RadGrid is running in a UserControl a SharePoint 2010 environment. This should not matter.
  • (The text formatting of this post input area changed when a new item was added to the list and some of the text now looks ugly.)

I have looked through the Demos and I can not find a case covering this use-case -- a custom OnClick/ItemCommand of a Particular Item being manually handled from the non-first page of a paged RadGrid control (The "Selected" demos do not count because the behavior is internal to the RadGrid control and not a manual event). It would be nice to see a test-case demonstrating this scenario as then I could look for fault elsewhere. However, as it is now, I cannot find this example demonstrated.

Any suggestions/fixes are appreciated.

Because of this error I must now go and validate all existing code to ensure this issue is not present elsewhere. Not a good feeling.
Radoslav
Telerik team
 answered on 21 May 2012
3 answers
57 views
Dear Sir/Madam,

Here I need to attach validationgroup for each RibbonBarButton. How to do it please assist me.
Thanks a lot,

Regards,

Kaushal Jani
Bozhidar
Telerik team
 answered on 21 May 2012
3 answers
164 views
Hi,

I have a RadGrid (version Q1 2012) in which I hide some items in the headercontextmenu :

protected void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
        {
            switch (e.Item.Value)
            {
                case "GroupBy":
                case "UnGroupBy":
                case "bottomGroupSeperator":
                case "BestFit":
                case "bestFitSeparator":
                case "ColumnsContainer":
                case "filterMenuSeparator":
                    e.Item.Attributes.Add("style", "display: none");
                    break;
                default:
                    break;
            }
        }


The items are hidden except for the separators I want to hide. The result I see is four separators in stead of one.
How can I hide these separators?

Paul

Princy
Top achievements
Rank 2
 answered on 21 May 2012
7 answers
358 views
I use RadUpload to upload multiple files of varying count. I select each file at a time, sometimes more than 10 files.
I wish that I in the RadUpload "select file" dialogue was able to select multiple files and that the RadUpload detected the number of selected files and automatically added every file to the RadUpload control as a separate "file item".

Or is this already possible?
Princy
Top achievements
Rank 2
 answered on 21 May 2012
2 answers
152 views
Hello

I am using RadMaskedTextBox

<telerik:RadMaskedTextBox ID="txtContactPhoneFax" runat="server" Mask="(###) ###-#### ####"  Text='<%# Bind("Fax") %>'>      </telerik:RadMaskedTextBox>

In application I am entered the values in textBox like -->  (222) 456-7778 7779

When I get the values in code  like -->  txtContactPhoneFax.text
It shows   --> 22245677787779 only


But,I need the values in  code  like  (222) 456-7778 7779


Thanks in Advance



PINCO
Top achievements
Rank 1
 answered on 20 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?