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

RadFilterSqlQueryProvider provider = new RadFilterSqlQueryProvider();
            provider.ProcessGroup(RadFilter1.RootGroupItem.Expression);

            string searchStr = provider.Result;
I can get the where values.But my some filed is nvarchar type.So must add 'N' before the where value.
e.g. : N'unicode values'.
How to do it? Please help.

Antonio Stoilkov
Telerik team
 answered on 21 May 2012
1 answer
140 views
Hi,

Is there a functionality to expand/collapse all at client side?


TIA
Peter Filipov
Telerik team
 answered on 21 May 2012
9 answers
224 views
Maybe it's me being really stupid, but I just don't get it. Suppose you have a RadTabStrip where each tab has a "Value=XXX" and which postback on each tabclick, to a server side function that would then load different usercontrols based on the "value". How would you do that with a RadMenu "MegaMenu"?

Looking at the Telerik example for a MegaMenu, I see that you seem to use either a RadSiteMap or custom HTML, both which would be great if all you wanted was to redirect to different URLs, but how would you do to implement our solution? RadSiteMap does not seem to have an ItemClick event, and I find no obvious alternative to amongst Teleriks controls to build a MegaMenu. How would you even access the "Value" property of the sitemap, which is there in the designer to set, but strangely enough isn't listed in the documentation?

I guess you could go about making complex table/div structures and then have LOTS of hyperlink buttons, but that would be very hard to maintain over time.

There must be a simple ready to use solution for this that I am missing, where can I find that?? :)
Kate
Telerik team
 answered on 21 May 2012
4 answers
119 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
146 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
575 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
100 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
105 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
336 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
60 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?