Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
568 views
Hello,

We are planning to buy the telerik packages. Therefore, I downloaded the ASP .NET AJAX pacakge and made an intergration test. Unfortunatly I got the following error when the page is loaded "Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."

We are using the latest build of AjaxControlToolkit from CodePlex (.NET 3.5) in an ASP .NET 3.5 application. The page wich throws the error contains a ModalPopupExtender control from the AjaxToolkit.

After many searching on the forums, I found that the solution is to add MicrosoftAjax.js and MicrosoftAjaxWebForms.js in order to help the RadScriptManager to load the scripts needed by the AjaxToolkit.

I've tried this solution but unfortunatly, it didn't work. I also downloaded many samples in the forums regarding this issue but they didn't worked and folks on the related forums like this one seems to face the same issue with the samples/fixes provided.

Leaving the AjaxToolkit is not an option because it's used on many pages and doing that will require a lot of work.

Would it be possible to provide a fix or a sample application with the modalPopupExtender (ASP .NET 3.5) working please?

Kind regards,
Kate
Telerik team
 answered on 24 Sep 2012
6 answers
59 views
I found if I add some expressions and don't specify the width, it will have some break such as attached image. The key point is that I don't know what's width is good to set because I don't know how many expression will be added by customer. 
Marin
Telerik team
 answered on 24 Sep 2012
5 answers
1.2K+ views
Hello,  I'm a bit of a scrub when it comes to the radgrid controls, but slowly I am learning.  

Currently I have a radgrid that loads it's data everytime on runtime (essentially I have nothing in my aspx file except for the creation and it calling NeedDataSource) and everything that get's formats, and loads the data in NeedDataSource.  Thus it's run everytime a refresh is done or a different page is called.  I think there's a much more efficient way of doing it than my way so suggestions on this are more than welcome, however my main current issue is below.

I have about 18 columns currently,  I want people to be able to filter on 6 of them and to not be able to filter (to have the filter menu just not appear) on 12 columns.  Ideally how would I do this?

(I'm thinking I need to somehow grab the column name/id in the cs, check it against the 12 column names/ids and set the property to hide but am having problems with it.)

Thanks in advance.
Antonio Stoilkov
Telerik team
 answered on 24 Sep 2012
8 answers
253 views

Why does this not work?

MyGrid.PagerStyle.PagerTextFormat = "blah blah {0} {1} {2} {3} {4} {5}";
Eirik H
Top achievements
Rank 2
 answered on 24 Sep 2012
1 answer
117 views
I am working on using the RadFilter as a type of SQL expression builder for my application.  The existing RadFilter functionality gets me most of the way there and I am attempting to fill in the last bits I need which are :

  1. The ability to compare a field to another field (e.g. FieldA >= FieldB)
  2. The ability to compare date fields to dynamic values (e.g. DateFieldA >= Previous X days)
  3. The ability to compare a field to a user supplied value at runtime (e.g. FieldA = prompt input)

I know these are not really doable with the current RadFilter, but here is my theory:

  1. Customize each editor type (datetime, text, numeric and boolean) to include a control that would prompt for the type of comparison whether it is against a fixed value, database field, special date option or a prompt.  Mockup image (also attached)
  2. Wire an AJAX postback on the previous control that would reinitialize the editor with the appropriate supplemental controls.  For example, if a datetime field using value comparison, show the datetime pickers.  If a field to field comparison, show a combox box of other datetime fields.  If a special comparison show a combo box of presets (current month, previous month, etc.).  If a user prompt a simple text box for the prompt text.
  3. Output the values of each custom option in a specific format recognizable on the backend.  For example, field to field comparisons could write to the resulting expression as FieldA >= '[Field].[FieldB]', or specials as DateFieldA >= '[Special].[PreviousX]', or prompt as FieldA = '[Prompt].[Inputted prompt text]'.
  4. Parse the resulting SQL after running through the standard provider for each of these options and handle reformatting the expression through my own secondary SQL provider.

So, my first question is, does this seem possible with the current RadFilter infrastructure?  In particular I am concerned about item 2 above.  I am currently working on item 2 and it seems that the editor is initialized prior to the handling of the combo box index change event.

I would also need to make sure the system is able to appropriately handle friendly display to the screen as well as saving and loading the expression.

Thanks.

Tom
Antonio Stoilkov
Telerik team
 answered on 24 Sep 2012
1 answer
180 views
Hi,

I have a radhtml column chart that i want to change the datasource of based on the selected values of 2 dropdown lists.  i am using a radscriptmanager and have the dropdown lists listed as update controls (see code below), however when the page posts back, it loads nothing in the chart area...no x or y axis or anything. 

is it possible to update the data source of a radHTML chart dynamically?

HTML: 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true" ScriptMode="Release">

    </telerik:RadScriptManager>



<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

    <AjaxSettings>

       <telerik:AjaxSetting AjaxControlID="ddlAssetType" EventName="SelectedIndexChanged" >

        <telerik:AjaxSetting AjaxControlID="ddlChart" >

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="rcStats" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="ddlRange" >

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="rcStats" />

            </UpdatedControls>

        </telerik:AjaxSetting>

    </AjaxSettings>

</telerik:RadAjaxManager>


and this is what i am calling on the backend:

 rcStats.DataSource = list

        rcStats.DataBind()



any help would be greatly appreciated!

Thanks,

Ryan

Marin Bratanov
Telerik team
 answered on 24 Sep 2012
0 answers
187 views
I am trying like
using system.globalization
TextInfo ti = CultureInfo.GetCultureInfo("en-Us").TextInfo;

 var query1 = from bookinformation in ent.BOOKINFORMATIONs select                                                                                          ti.ToTitleCase(bookinformation.AUTHORNAME.ToLower());
                  query1 = query1.Distinct();
                  cmb1.DataSource = query1;
                  cmb1.DataBind();


but getting exception
LINQ to Entities does not recognize the method 'System.String ToTitleCase(System.String)' method, and this method cannot be translated into a store expression.
Swapnil
Top achievements
Rank 1
 asked on 24 Sep 2012
1 answer
71 views
I have a situation , I am making a scroll graph but here is some problem when I will use 
 <XAxis  DataLabelsColumn="ScannedDateString"> it will not show me value of last series at chart but when I remove this it will show me last bar!

Can some one suggest me the reason of this issue!

Thanks,
Shakti
Peshito
Telerik team
 answered on 24 Sep 2012
1 answer
157 views
Good morning,
this is my 2nd request.
Before exporting radgrid to excel I am creating a header rowin the following event:

protected

 

 

void CfnReportGrid_ExcelMLExportRowCreated(object sender, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs e)

 

{

 

 

if (e.RowType == Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.HeaderRow)

 

{

Telerik.Web.UI.GridExcelBuilder.

 

RowElement row = new Telerik.Web.UI.GridExcelBuilder.RowElement();

 

Telerik.Web.UI.GridExcelBuilder.

 

CellElement cell = new Telerik.Web.UI.GridExcelBuilder.CellElement();

 

cell.Data.DataItem =

 

"NYC DEPARTMENT OF EDUCATION";

 

cell.StyleValue =

 

"MyHeaderStyle";

 

cell.MergeAcross = e.Row.Cells.Count - 1;

row.Cells.Add(cell);

e.Worksheet.Table.Rows.Insert(0, row);
}

And then in another event I do styling this header:

 

protected

 

 

void CfnReportGrid_ExcelMLExportStylesCreated(object sender, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLStyleCreatedArgs e)

 

{

 

  Telerik.Web.UI.GridExcelBuilder.StyleElement myStyleH = new lerik.Web.UI.GridExcelBuilder.StyleElement"MyHeaderStyle");

 

myStyleH.FontStyle.Size = 25;

myStyleH.FontStyle.Bold =

 

true;

 

System.Drawing.

 

Color col = System.Drawing.ColorTranslator.FromHtml("#2C78FF");

 

myStyleH.FontStyle.Color = col;

myStyleH.AlignmentElement.HorizontalAlignment = Telerik.Web.UI.GridExcelBuilder.HorizontalAlignmentType.Center;

 

e.Styles.Add(myStyleH);

 

 

 }

My question is:I need colored each letter of "NYC" in different color:
letter "N" in green color
letter "Y" in orange color
letter "C" in blue color
And it should by on the same line.

Thanks so much for your help.

Eyup
Telerik team
 answered on 24 Sep 2012
8 answers
91 views
Hi Admin,

Here, i used Radscheduler advance form in chrome, it works when it is in maximize mode. But, if i tried to restore the window in normal mode. It has the following issues:
 * Appointment Type dropdown menu in scheduler was not showing up properly.
*  The Time drop downs in this window open too far at the bottom
*  Type Drop Down won't show up and you can't scroll.


Can u please help me to sort out this issue.

Thanks
Plamen
Telerik team
 answered on 24 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?