Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi Telerik,
I want to reset the filter in columns and i did like this, as show in some other posts. However when the grid rebind, it still show the filtered records, even though the collection attached to grid has full records. What am i doing wrong?
Thank you

protected void btnReset_Click(object sender, EventArgs e) 
    { 
        foreach (GridColumn column in grdContacts.MasterTableView.Columns) 
        { 
            column.CurrentFilterValue = string.Empty; 
        } 
        grdContacts.Rebind(); 
        
    } 

Tsvetoslav
Telerik team
 answered on 05 Feb 2010
1 answer
175 views
hello
do you know how can create a EForm Builder with telerik object and thet wint Ajax?

thanks A lot
Sebastian
Telerik team
 answered on 05 Feb 2010
9 answers
341 views
I have finally converted a page from the old Telerik.Web.Control ajax stuff to the new Telerik.Web.UI version. When I call AddAjaxSetting, I get a NullReferenceException. Here is my code:

ajax_manager.AjaxSettings.AddAjaxSetting(link_type_list, category_list, loading_panel);

In the debugger, I can see that ajax_manager.GetCurrent() returns null, which I believe is causing the error (the ajax manager variable itself, and my controls are all non-null). This code runs in the page_load event of the ascx control which contains the ajax manager and my controls.

I am using the latest release - 2009 Q3 SP2.
Pavlina
Telerik team
 answered on 05 Feb 2010
3 answers
588 views

Hi All,

I have a custom web part which includes RAD Chart control.
This web part is used in WSS 3.0.

SharePoint List data is displayed in RAD Chart.

I added series to RAD Chart.

Series max Y value is 1.5E+28 and min Y value is 1.5E+28

 

double seriesMaxYVal = radChartObj.Series.GetMaxYValue();   
 
double seriesMinYVal = radChartObj.Series.GetMinYValue();   
 

 

 

 

I set Y-axis isLogarithmic property as true.
  

 

 

radChartObj.PlotArea.YAxis.IsLogarithmic = true;    
 

  

 

 

 

But RenderContents function is throwing exception.

Inner Exception: 
{"Value was either too large or too small for a Decimal."}

Stack Trace: 
"   at System.Decimal..ctor(Double value)\r\n   at Telerik.Charting.ChartYAxis.Initialize(Double min, Double max)\r\n   at Telerik.Charting.ChartYAxis.InitializeItems()\r\n   at Telerik.Charting.ChartPlotArea.InitializeAxes()\r\n   at Telerik.Charting.RenderEngine.InitializeChartElements()\r\n   at Telerik.Charting.Chart.GetImage(Int32 width, Int32 height)"


Please let me know if there is any limitaion of series item value in RADChart.

Please suggest a solution.

Thanking you in anticipation.

Regards,
LJ

 

Ves
Telerik team
 answered on 05 Feb 2010
2 answers
99 views
Ok so in the Contents holders of my master pages I will be displaying grids.  I want to add an RADAjaxManager to prevent postbacks.

When I add the control (RADAjaxManager) to my Contents page and then select Configure Ajax Manager on the smart tag I do not see my grid listed.  I have a grid and a SqlDataSource item but I don't see them on there (screenshot attached).  So then I thought I needed to add it to my Master Page Main Content spot but then I wouldn't be able to associate the AjaxManager to the different grids that display in the Main Content spot within the Master page.

So my question - Am I not able to use the AjaxManager within a contents page?  If not what can I do.  If I can, what am I doing wrong.

Thanks,
Nathan
Tsvetoslav
Telerik team
 answered on 05 Feb 2010
13 answers
255 views
Here's what I am trying to do. A application for certain users to update data in the Database.

How it works:
On the first page a list of tables is displayed in a radgrid. Users can click on the table they wish to edit and will send them to the next page. Where they are able to edit data from the chosen table. This again with the radgrid.

This application works fine and only consist of 2 aspx pages. The name of the table is sent from page 1 to page 2 where it changes the connectionstring to display the data of the chosen table. Radgrid auto-generate columns is on and does the job nicely.

However..

Here is the problem.
Radgrid displays al fields of the database in edit-mode as text fields. However there are some columns with foreign keys which I wish to display a combobox/radcombo for.

Question:
How can I, preferable let Radgrid generate those columns automatically? Or is there no other way than check all data types and relations during runtime and programmaticly build up the columns ?

Thank you.

Dario Zanelli
Top achievements
Rank 1
 answered on 05 Feb 2010
8 answers
222 views
Hi all!
I have a problem with the event CreateColumnEditor of a RadGrid. My code has to generate a Column Editor for the TextBox a different one for the ComboBox. The problem is that the event is fired even if I haven't pressed the edit button yet. I can assure it because I did debug it. This happens only when I add the part of code that follows:
 if (e.Column is GridDropDownColumn)......

Here there is the C# code:

protected void RadGrid_Processes_CreateColumnEditor(object sender, GridCreateColumnEditorEventArgs e)
{
    Unit width;
    String str;

    if (e.Column is GridBoundColumn)
    {
        width = e.Column.HeaderStyle.Width;
        str = (e.Column as GridBoundColumn).DataField;
        int indexEditing=0;
        bool even = true;
        
        switch (entityType)
        {
            case "COMP":

                if (str.Equals("Code"))
                {
                    e.ColumnEditor = new TextBoxColumnEditor(10, true, str, width, true, true, hfCodes.Value, even);
                }
                break;

            default:
                break;
        }
    }

    if (e.Column is GridDropDownColumn)
    {
        str = (e.Column as GridDropDownColumn).DataField;
        switch (entityType)
        {
            case "CTRL":
                if (str.Equals("FK_ControlType"))
                {
                    e.ColumnEditor = new DropDownColumnEditor(true, str, true);
                }
                break;

            default:
                break;
        }
    }
}

Here there is the ASP.NET code:

        <telerik:RadGrid ID="RadGrid_Processes" runat="server"
            AutoGenerateColumns="False" DataSourceID="LinqDataSource_Entities"
            oninit="RadGrid_Processes_Init"
            onitemcreated="RadGrid_Processes_ItemCreated" GridLines="None"
            onitemcommand="RadGrid_Processes_ItemCommand"
            onitemdatabound="RadGrid_Processes_ItemDataBound"
            onprerender="RadGrid_Processes_PreRender"
            onneeddatasource="RadGrid_Processes_NeedDataSource"
            ondatabinding="RadGrid_Processes_DataBinding" onload="RadGrid_Processes_Load"
            OnCreateColumnEditor="RadGrid_Processes_CreateColumnEditor"    >
            <SelectedItemStyle CssClass="rgAltRow" />
            <MasterTableView DataKeyNames="Id"
                    EditMode="InPlace" CommandItemDisplay="Bottom" InsertItemDisplay="Bottom" >
                <EditFormSettings>
                    <FormTableItemStyle HorizontalAlign="Left" />
                    <FormTableAlternatingItemStyle HorizontalAlign="Left"/>
                </EditFormSettings>
                <ItemStyle CssClass="rgRow" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"
                    Wrap="True" />
                <AlternatingItemStyle CssClass="rgAltRow" Font-Bold="False" Font-Italic="False"
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                    HorizontalAlign="Left" Wrap="True" />
                <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"
                    Wrap="True" />
            </MasterTableView>
    </telerik:RadGrid>


Thanks in advance.

Kind regards,

Dario
Dario Zanelli
Top achievements
Rank 1
 answered on 05 Feb 2010
1 answer
150 views
Hi, all!

I have a Tabstrip with some tab. I have a contextmenu also what I use for the right click on each tab (RadContextMenu's

ContextMenuControlTarget ControlID

 

property). But at one tab I do not want to show the ContextMenu.
My problem is that in the TabStrip's OnClientContextMenu event I can not cancel the contextmenu to open and in the ContextMenu's OnClientShowing event I do not know which tab triggerd the event so I can not cancel the desired event.
Any suggestion?

Thanks.

Yana
Telerik team
 answered on 05 Feb 2010
1 answer
145 views
I'm getting an error when I try to extend the RadTextBox using the ajax control toolkit PasswordStrength extender.

Is there any work-around already created for this?  Is this something that may be fixed in the future?

Extender control '' cannot extend 'txtPassword'. Extender controls of type 'AjaxControlToolkit.PasswordStrength' cannot extend controls of type 'Telerik.Web.UI.RadTextBox'.




Dimo
Telerik team
 answered on 05 Feb 2010
3 answers
293 views
Hi: Have you seen the NumericBox used by Microsoft Money 2007.
Its a good idea, it is a numeric box, when you press any operator key (+,-,*)
it drops down a calculator.

Best Regards
Darío K
Dimo
Telerik team
 answered on 05 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?