Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hi I'm working with radcontrols for asp.net 2011 q1 and I want to change a the default textbox of grid's editmode to a radcombobox.
How Can I do that?
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Jan 2012
4 answers
195 views
So i drop down the filter boxes and initiate a filter for Starts With B. I get 25 Results (set to 10 per page).   If I go to page 2 then back to page 1 the filter is no longer applied. 

What is the recommended way to have filter settings persist across page changes?

Thanks,
Michael
Iana Tsolova
Telerik team
 answered on 29 Jan 2012
3 answers
400 views
Hi,

Is there any functionality for columns, similar to the DetailTables for rows, which will allow me to group columns together and through a button press expand\collapse them?

My client has an Excel spreadsheet with 20 columns in it and they want me to replicate the funcationality they have, displaying all the data. I've told them that it'd be too wide for the screen, so they've asked if they can expand\collapse sections of the data (I can logically split it in to 4 separate sections).

Thanks in advance for your help.


Rgds
Liam
Liam
Top achievements
Rank 1
 answered on 28 Jan 2012
5 answers
433 views
Hi,

I bind my grid programmatically during the NeedDataSource event which is in turn a SQLDataSource instance:


protected void grdMyGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
   ((RadGrid)sender).DataSource = sqlDs;
}

From here I’m trying to check if the value of a specific cell match a condition during the ItemCreated event:

protected void grdMyGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
     if (e.Item is GridDataItem)
      {
          var item = e.Item as GridDataItem;
           if (item["ValidationState"].Text == "UNMATCHED")
           {
              item.BackColor = System.Drawing.Color.Red;
              item.ForeColor = System.Drawing.Color.White;
           }
      }
 }

For some reason the value of item[“ValidationState”].Text is always "&nbsp" as so is any other cell I’m trying to access via the UniqueName property. And yes, they are explicitly defined in my markup of the columns.

It is maybe becuase I bind the grid during NeedDataSource and not at design time with the DataSourceID property specified? Or perhaps other suggestion or solutions?

Thanks for you help!

Johan
Top achievements
Rank 1
 answered on 28 Jan 2012
5 answers
214 views
HI,

I have a grid with a footer and a horizontal scrollbar. The scrollbar is appearing in between the last row in my grid and the footer. Is there a way to change this so that the footer appears under the last item in my grid, and then the scroll bar appears below that?

-Anthony
Ryan Eaves
Top achievements
Rank 1
 answered on 28 Jan 2012
2 answers
133 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
136 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
193 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
202 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
71 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?