Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
I have the following code:

<telerik:RadFacebookButton ButtonType="FacebookLike" Font="Verdana" ShowFaces="False"
    TitleToShare="The Conference Board of Canada"
    UrlToShare="http://www.conferenceboard.ca" Width="40" />
<telerik:RadTwitterButton CounterMode="Horizontal"
    TitleToShare="The Conference Board of Canada"
    UrlToShare="http://www.conferenceboard.ca/" />
<telerik:RadGoogleButton AnnotationType="Bubble" ButtonSize="Medium"
    TitleToShare="The Conference Board of Canada"
    UrlToShare="http://www.conferenceboard.ca/" Width="40" />

And for some reason, the widths I've indicated aren't translating onto the page-- the FB and Google+ buttons have a width of 90, and the twitter button has 110 width. Why is setting the width attribute not working, and besides that, why is it impossible to set the width of the Twitter button?
Thanks in advance!
Dan
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
103 views
Hello,
        I am having a Rad Editor. I am populating Custom Links dropdown with my server side code. Now how can I only show Custom Links in my Rad Editor toolbar and no other tools???


HELP!!!!!!!!!!!!
Richard
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
148 views
Hello,

I am trying to dynamically create totals in the footer column of a RadGrid that I am currently developing.  The user is able to build up a dynamic query based on a selection of fields which will return a user defined data set.  This data set contains the data type and aggregation which I intend to use to determine whether or not a column needs aggregation and whether it is a count, max etc.   At present I can't seem to get the following commands to fire on the databind:

ColumnCreated

DataBinding

DataBound


I have tried all of these and the only time the Grid hits these sub is when I alter the results set once it's bound, ie drag and drop a column for grouping.

Here is my aspx rad grid:
<telerik:RadGrid ID="rgResults" Skin="Vista" runat="server" AutoGenerateColumns="true"
                   AllowFilteringByColumn="True" AllowPaging="false" AllowSorting="True" ShowGroupPanel="true"
                   OnItemCommand="rgresults_ItemCommand" ShowFooter="true" OnDataBound="rgResults_DataBound"
                   OnDataBinding="rgResults_DataBinding" OnColumnCreated="rgResults_ColumnCreated">
                   <MasterTableView Width="100%" GroupLoadMode="Client" TableLayout="Fixed" UseAllDataFields="true">
                       <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"
                           ShowRefreshButton="false" />
                   </MasterTableView>
                   <GroupingSettings CaseSensitive="false" />
                   <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="True"
                       AllowColumnsReorder="True">
                       <Resizing AllowColumnResize="true" />
                       <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                       <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                   </ClientSettings>
                   <GroupingSettings ShowUnGroupButton="true" />
                   <ExportSettings HideStructureColumns="true" />
                   <FooterStyle />
               </telerik:RadGrid>

 


This is the brief code behind for the data bind:

'Bind results
Dim Results As DataTable = objUDR.UserDefinedReports_RunReport(ViewState("SelectedUDR").ToString, Fields, GroupBy, Where, True)
       rgResults.DataSource = Results  
       rgResults.DataBind()

 

All of the other onBninding subs etc are standard and as mentioned are hit when an action is applied ot the grid after binding.

Any help would be great. 

Thanks

 

 

 

Richard
Top achievements
Rank 1
 answered on 27 Jan 2012
4 answers
163 views
I'm having trouble making the X-axis labels clickable in an asp.net stacked bar chart (sorry, said y-axis in the subject). Using the code below, they don't even get added to the area map and become clickable, let alone the event fire. If I uncomment the url, they become clickable and send me to the default page so I think I'm dealing with the correct chart elements, but I want postback event and to be able to access the label specific values and react to them. What am I doing wrong?

protected void RadChart2_Load(object sender, EventArgs e)
{
    foreach (ChartAxisItem axisItem in this.RadChart2.PlotArea.XAxis.Items)
    {
        axisItem.ActiveRegion.Tooltip = "Click Me";
        //axisItem.ActiveRegion.Url = "Default.aspx";
        axisItem.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click);
    }
}
Chris
Top achievements
Rank 1
 answered on 27 Jan 2012
3 answers
51 views
Hi

I am looking for some clues to the following issue i have in my dev environment.

I am running version 2011.3.1115.40 of ASP.Net Ajax controls (licensed edition)

I have a grid with custom filters (implemented as combo boxes) and nested detail form view. The grid here supports both in-place row editing and editing of nested detail view.

The skin of grid is set to one of predefined skins (Default or Windows7) (no custom skins used)

the problem: in dev environment when I click row edit or enter edit mode in expanded view, the datetime pickers are showing link text " Open the calendar popup." instead of proper icon, and on click - open calendar but not skinned - transparent view.

if I publish the site and deploy to some other folder on my machine, or to some other machine, everything looks and works fine.

any clues?

thanks,

Dmitry
Pavlina
Telerik team
 answered on 27 Jan 2012
2 answers
132 views

Hello,

I have a page that has two calendar controls on it. One is for indicating a start date / time and one is for indicating an end date / time. These values are ultimately saved in the database.

When a user returns to their record and wishes to update these values, I'd like to show them what they were previously set to. I'm able to save and retrieve the date value by wiring up the SelectedDate.Value property. But this does not help me get the time.

I'm also not sure how to set the time once I have the value from the server. I'm able to set the date but not the time.

Please let me know how I'd go about setting the date AND time values in my Page_Load event.

Many thanks in advance,

~ Dave

Dave Navarro
Top achievements
Rank 2
 answered on 27 Jan 2012
6 answers
811 views
Hi all,

Want to know how to auto adjust column width?
In window I use

Grid1.Template.BestFitColumns()
How to do in ASP.net ?

Thanks and best regards.
Pavlina
Telerik team
 answered on 27 Jan 2012
1 answer
90 views
Greetings,

I'm facing a problem when i'm lauching my project locally with IE.

Erreur d'exécution Microsoft JScript: Impossible d’obtenir la valeur de la propriété  « get_selectedDate » : objet null ou non défini
Which basically means : Error of execution Microsoft JS : unable to get the property : « get_selectedDate » : object null or undefined

( i already verified my RadDateTimepickers had a date selected when i get this error )

The weird thing is i get this only using IE.

var pickerDebut = $find("<%= StartDate.ClientID %>");
var dateDebut = pickerDebut.get_selectedDate().format("dd/MM/yyyy");
 
var pickerFin = $find("<%= EndDate.ClientID %>");
var dateFin = pickerFin.get_selectedDate().format("dd/MM/yyyy");

Thanks in advance for your help

Richard
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
56 views
I use Radeditor In my website but It render incorrect

I'm not sure how to fix it

Can anyone help me?

Or let me know how to set CSS for radeditor

Thank you
Rumen
Telerik team
 answered on 27 Jan 2012
3 answers
66 views
Hi I'm working with RadControls for ADP.NET AJAX 2011 Q1 and I have a radgrid with allowautomaticinserts and allowautomaticupdates set to true, When I click the addNewRecord a form is displayed where I have to insert the data.
My question is when I complete the form how can I access the confirm or cancel button in the "add new record form"?
The same case when I click on the  GridEditCommandColumn  the row change to editform. when I finish editing how can I confirm or cancel  the changes?
I'm using entity framework
                                                                      
Cristian
Top achievements
Rank 1
 answered on 27 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?