Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
223 views
While many pivot tables are aggregates, there is plenty of usefullness to have the 3-d format of a pivot and still be able to handle if the user would like to update a cell value in the aggregate section. Is there anyway to do this?
Tsvetoslav
Telerik team
 answered on 01 Nov 2012
1 answer
131 views
In the grid whenever text within the tags is saved it is not visible in the data bound columns.

Ex. If this text <Coffee> is bound to the data column then it does not appear in the column , rather a blank space appears.

(This may be probably as while rendering its considering text as a tag as its b/w tags <>)

What can be the potential fix for this issue?

(I guess similar issue persist in this site in demo of grids. Inline Editing of grid columns. [on saving <Tea> as column value value does not save])
Marin
Telerik team
 answered on 01 Nov 2012
11 answers
319 views
I have followed this sample:


and created a column type to fitler with a radcombobox.  I added a DataSourceID to my column and when I set it the whole thing works correctly.

However I would like to add another option to have fitlering based on the items currently in the list.  I overrode the PrepareCell method and add the unique items as they go by:

   public override void PrepareCell(TableCell cell, GridItem item) 
        { 
             
            base.PrepareCell(cell, item); 
 
            if (UseAvailableValuesForDataSource && item is GridDataItem) 
            { 
                if (rcBox.Items.FindItemByText(cell.Text) == null
                { 
                    rcBox.Items.Add(new RadComboBoxItem(cell.Text)); 
 
                } 
               
            } 
 
        } 
 

This fills the combobox with the unique values, however when I get back into the  SetCurrentFilterValueToControl & GetCurrentFilterValueFromControl the value of the selected item is empty and so the filter doesn't get set.  I tried storing a list in ViewState and restoring from there but that didn't seem to work.  (For some reason my ViewState items wouldn't be restored either?)

Is there anyway to filter based on the currently displayed items instead of getting the full set back from the datasource?

Thanks,
Won
Top achievements
Rank 1
 answered on 01 Nov 2012
3 answers
198 views
I need replace  some token in tooltip by User Name in server side.

I use
var mybuttonToolTip = button.get_tooltip();
mybuttonToolTip   = mybuttonToolTip.replace("{TOKEN}", currentUserName};
button.set_tooltip(mybuttonToolTip );  This event exist?

Leon
Top achievements
Rank 1
 answered on 01 Nov 2012
1 answer
113 views
Hi all,

I have a radgrid in which I need to populate a textbox(boundcolumn) when clicking on the insert button. The first textbox should populate value of 
boundcolumn(name) in the first row.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2012
5 answers
200 views
Hi

I have created custom template column for filtering . Given below is code of MyCustomFilteringTemplateColumn.cs. I m using Entity datasource 


 //RadGrid will cal this method when the value should be set to the filtering input control(s)
        protected override void SetCurrentFilterValueToControl(TableCell cell)
        {
            base.SetCurrentFilterValueToControl(cell);
            RadComboBox combo = (RadComboBox)cell.Controls[0];
            if ((this.CurrentFilterValue != string.Empty))
            {
                combo.Text = this.CurrentFilterValue;
            }
        }

     

        //RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
        protected override string GetCurrentFilterValueFromControl(TableCell cell)
        {
            RadComboBox combo = (RadComboBox)cell.Controls[0];
         
            this.CurrentFilterFunction = (combo.Text.Trim() != "") ? GridKnownFunction.EqualTo : GridKnownFunction.NoFilter;
            return combo.Text;

           
        }

        private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            
             
                    Collection<Entities.ProjectUsersAndGroups> collDataSource = (Collection<Entities.ProjectUsersAndGroups>)FilterDataSource;
                    ((RadComboBox)o).DataTextField = this.DataField;
                    ((RadComboBox)o).DataValueField = this.DataField;
                    ((RadComboBox)o).DataSource = collDataSource;
                    ((RadComboBox)o).DataBind();
                    break;

           

        }

        private void list_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
            if ((this.UniqueName == "Index"))
            {
                //this is filtering for integer column type 
                filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.DataField));
            }
            //filtering for string column type
            if (this.UniqueName == "ProjectCategoryName")
                this.UniqueName = "ProjectCategoryDetails.ProjectCategoryName";

            filterItem.FireCommandEvent("Filter", new Pair("Contains", this.DataField));


        }



While filtering I am getting error  "Expression expected " on this line   filterItem.FireCommandEvent("Filter", new Pair("Contains", this.DataField));".


Please help me out 
Won
Top achievements
Rank 1
 answered on 01 Nov 2012
2 answers
191 views
Hi,

I have a scenario where i need to do Paging, Sorting and Filtering only at client side and not on server side.
Abhijit Shetty
Top achievements
Rank 2
 answered on 01 Nov 2012
1 answer
97 views
Hi all,

In my Radgrid, I set the property EditMode with value "EditForms". I need to check if grid has new insert row when user try to click on GridEditCommandColumn to edit another row, since I want to prevent the user from adding new record and editing another one at the same time. Please provide some suggestions.


Shinu
Top achievements
Rank 2
 answered on 01 Nov 2012
3 answers
104 views
Is there a way to format the results returned from the TimePicker control? This is what I'm currently getting 2012-10-30-22-00-00 when I reference the control via a jquery call, such as below.


var time = $("#<%=radTimePicker.ClientID%>").val();
Rob Gaudet
Top achievements
Rank 1
 answered on 31 Oct 2012
21 answers
1.3K+ views
Hi!

I am currently moving from RadControls for ASP.NET to Prometheus. I have a problem with the radalert function. It works fine in RadControls for ASP.NET but not in Prometheus.
I want to generate a "message box" with a message generated on server. I do it by registering a startup script in the script manager.
Using standard windows alert from server as well as radalert from client works fine.
But as soon as I use radalert from server then the radalert is 'undefined'. I guess that the RadWindowManager is 'undefined'.

How can I solve this problem?

Small code sample is attached below.

Thanks
/Mats

Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>RadAlert</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
        <asp:Button ID="AlertButton" runat="server" OnClick="AlertButton_Click" Text="Alert from server" />
        <asp:Button ID="RadAlertButton" runat="server" OnClick="RadAlertButton_Click" Text="RadAlert from server" />
        <input id="RadAlertButtonClient" type="button" value="RadAlert from client" onclick="radalert('Some data from client!');"/>
    </form>
</body>
</html>

Default.aspx.cs:

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void AlertButton_Click(object sender, EventArgs e)
    {
        ScriptManager.RegisterStartupScript(Page, typeof(Page), "AlertScript", "alert('Some data from server!');", true);
    }

    protected void RadAlertButton_Click(object sender, EventArgs e)
    {
        ScriptManager.RegisterStartupScript(Page, typeof(Page), "RadAlertScript", "radalert('Some data from server!');", true);
    }
}

Gabe Silvarajoo
Top achievements
Rank 2
 answered on 31 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?