Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
I have gridbound column Col_A and COL_B and dataformat set to currency.Both these columns are integer . I have embeded udpate statement in sqldatasource  to update both these columns. Based on business rule I open only one column for editing before update. 

If COL B is open for update(COL A is read only in this scenario), When I execute update statement COL A is reading the formatted value and passing to SQL staement i.e formatted currency value and this gives database error because COL A is integer type. 
1) How can i get the just the value of COL A (not the formmated one for example , I need 3000 not 3,000). Extravalues in edit mode not working
2) How do i put mask for editable column ,i.e the user can type 5,000 rather than 5000 , but the value read is 5000

Thanks

 
Shinu
Top achievements
Rank 2
 answered on 30 Jan 2012
1 answer
96 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
190 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
395 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
428 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
205 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
129 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
133 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
186 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
200 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
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?