Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 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
143 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
354 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
90 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
191 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
409 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
168 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
5 answers
310 views
I tried to use the export to PDF for the Telerik RadGrid but it doesn't work.
I think that this is a problem for me since all of my pages are inside Master page that already has script manager, so I can't add another one in my content page.
What can I do to solve it?

right now, I have this:

masterpage:
<asp:ScriptManager id="scriptmanager1" runat="server"/>

contentpage:
<asp:content id="content1" contentplaceholder="contentplaceholder1" runat="server">
<asp:updatepanel id="up1" runat="sever"
<telerik:RadGrid id="radgrid1"...>
<exportSetting ignorePaging="true" openInNewWindow="true">
<pdf pageheight="297mm" pagewidth="210mm" 
</exportSetting>
<masterTableView commanditemdisplay="top">
<command itemtemplate>
<asp:imagebutton id="downloadpdf" runat="server" commandname="exporttopdf" imageurl="pdf.jpg" backcolor="white">
</command itemtemplate>
  
......
  
</asp:updatepanel>
</asp:content>
DANA
Top achievements
Rank 1
Veteran
 answered on 20 May 2012
1 answer
105 views
When using the Apply Class tool to allow the user to select a css class to format text - there is a "Clear Class" item that is automatically added to the list of classes/styles the user can select. 

How can I change the text of that first item? I would like it to say Clear Style or Clear Formattig instead. Is there a property somewhere I can set?
Rumen
Telerik team
 answered on 19 May 2012
1 answer
149 views
I need RadEditor to upload and embed YouTube videos.  This is working in several browsers, but not in IE8.  Is there any reason you can think of that it wouldn't or anything that needs to be configured in Explorer?  Here is some sample code. 

<object width="210" height="150">
     <param name="movie" value="http://www.youtube.com/v/o2GBYBTty0M">
     </param>");
     <param name="wmode" value="transparent">
     </param>");
     <embed src="{UrlVideo}"");
        type="application/x-shockwave-flash" wmode="transparent"
      width="210" height="150">
      </embed>
      </object>

Thanks in advance for your help.
Rumen
Telerik team
 answered on 19 May 2012
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?