Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
322 views
Hello,

I want to change the default button with a RadButton.  This button opens a RadWindow.

My previous code was:
<asp:ImageButton ID="btnFunctie" runat="server" onclientclick="ShowDialog();return false;" CssClass="imgbtn" Height="16px" Width="16px"/>

New code:
<telerik:RadButton ID="btnFunctie" runat="server" onclientclicking="ShowDialog();return false;"></telerik:RadButton>

The new code gives a Javascript error and its definetly with the  -- onclientclicking="ShowDialog();return false;" --

Can you help me out with this?  I have no knowledge with Java.

Kind Regards,
Kris

Danail Vasilev
Telerik team
 answered on 06 Jun 2013
2 answers
101 views
Hi ,

I am having issue with RadRating control , It renders fine if the browser is zoomed to 100 %. But in chrome if the browser is zoomed 90 % or below 1 out of 5 stars will go missing. 

I can see that the 5th start is there in source code but pushed to a new line and goes hidden, I checked Demo page of RadRating control  (http://demos.telerik.com/aspnet-ajax/rating/examples/gridrating/defaultcs.aspx) and this issue is there as well. 

It will be very rare someone zooming their browser to 90 % but it will be better to make sure even when that happens control will be  rendered fine. 

Steps to reproduce the issue:

1. Take the demo page in chrome
2. Set zoom to 90% 
3. Reload the page

I tried setting CSS zoom on both control and the whole body but it is not helping. Setting a CSS zoom  of 50 % on control will show all 5 stars  but then the stars will be too small. It will be great if someone can suggest me a workaround to fix this. 

Thanks,
Rahul

UPDATE:

I manage to hack the code by setting width of RadRating div from 104px to 112px using jQuery on page load. Still it will be great to know a nice and neat way to fix this.
Rahul
Top achievements
Rank 1
 answered on 06 Jun 2013
3 answers
163 views
Hello,

On page load I want to give a RadComboBox focus but still display the emptymessage. When I start typing, I want the emptymessage to disappear. Is this possible?
Nencho
Telerik team
 answered on 06 Jun 2013
1 answer
147 views

I've got a masked textbox on a page to add a new contact that no matter what isn't returning any value? Here's the control in the markup:

<telerik:RadMaskedTextBox ID="txtWorkNumber" runat="server"  CssClass="input_text" Skin="" EnableEmbeddedSkins="false" Width="88%"   ></telerik:RadMaskedTextBox>

Then on page load I apply the mask based on country, but 99% of the time it's this code:

strMask = "###-###-####"
strDMask = "(###) ###-####"
 
 txtWorkNumber.Mask = strMask
 txtWorkNumber.DisplayMask = strDMask

SInce we are dealing with a phone number, it's a required field and the value regardless of when I try to read it (tested in multiple places) ended up looking like this

txtWorkNumber.TextWithLiterals = "--"

This code used to work, so wondering if it's something that changed since we recently updated to the latest version after being almost a year behind in updates.
Viktor Tachev
Telerik team
 answered on 06 Jun 2013
2 answers
122 views
I have a page where I need to search for a record. This also allows to update the record and saving changes.
This error was detected by an user where has to search and update lot of records and he does this in a really fast way.

But, I could reproduce the same problem only searching for the same record a few times. So basically, what I had to do was enter a random number, press search... and after get the information I press search again...and again ...and again... a few more times until get the error message.


SCRIPT28: Out of stack space 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.403.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcbc5876-5d5e-4774-955e-2ecda3d55cd3%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3ac172ae1e%3af46195d3%3a9cdfc6e7%3a2003d0b8%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a86526ba7%3ab7778d6c%3aaa288e2d%3a7165f74%3a19620875%3a490a9d4e%3abd8f85e4%3a58366029, line 6 character 12015

I've tryied to see the code on that line/character and is pointing for the following code:

// MicrosoftAjax.js
...
return Array.apply(null,a)}

In this link there is the whole file:
https://www.dropbox.com/s/y3klsn0jrt9wvwv/telerik_webresource_error.txt

How can I troubleshoot better this?

Thanks

Tiago
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
52 views
Hello
In my development environment, my rad chart series all render with correct coloring. When viewing from the production server, the series that are red display as yellow. Any ideas or suggestions would be greatly appreciated.
Thank you,
Michael
Rosko
Telerik team
 answered on 06 Jun 2013
1 answer
101 views
Hello

I work for a UN organisation, where I am trying to create a dashboard, where a manager can drill into details about staff based on the kind of salary system they are on.

I have attached the chart I have created, for reference.

This chart I populate with a data source created declaratively in the .aspx file. I the chart in crated with a group by base in the salary system.

This creates the chart as is seen in the attachment. it automatically puts in the text codes for the salary system, for each column. cool functionality BTW, thank you! Now, I would like to create the drilldown, so that if a user clicks a column, then he/she gets details information about the distribution, of what is called grades, within each salary system.

For that I have created a second data source, with the same Control parameter that is used for the initial chart, this is a country, selected from a dropdown list, and a additional parameter, that I would like to be the text that is located below each of the columns.

I assumed that I could use the below code, to fill in that parameter:
protected void MyRadChart_Click(object sender, Telerik.Charting.ChartClickEventArgs args)
    {
        if (args.SeriesItem != null)
        {
            staffCountByGrade.SelectParameters[1].DefaultValue = args.SeriesItem.Name;
            MyRadChart.DataSourceID = "staffCountByGrade";
        }
    }
 The SelectParameter[0] comes from the dropdown list.

What I get is text lie Item 1, Item 2, and so on. Is the no way I can get at the text that the chart has automatically put in from the initial data source?
Rosko
Telerik team
 answered on 06 Jun 2013
4 answers
105 views
I am probably missing something simple. I have a master page with the RadAjaxManager, I created a brand new content page and added the RadAjaxManagerProxy. I added a button and a label. When I click the button, I put the current date on the label. Simple

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button_ClearFilters">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Label_Today" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<asp:Button ID="Button_ClearFilters" runat="server" Text="Clear filters" OnClick="Button_ClearFilters_Click"></asp:Button>
<asp:Label ID="Label_Today" runat="server" Text="Today" />

Yet for some reason, I am getting an error: 
Uncaught TypeError: Cannot read property 'id' of undefined
I would appreciate the help.
Eyup
Telerik team
 answered on 06 Jun 2013
5 answers
446 views
I have query that returns several result sets.  One of these resultsets is turned into a table and bound to a grid.  That works fine.

I have two other result sets that return lists of values; let's call them aList and bList.  I will turn these into tables as well because I believe the GridBoundColumn was designed to work best with tables.

Here is my problem.  I am already specifying a resultset as a DataSouce for the grid. 

How do I get the GridBoundColumns in the grid mapped to the aList and bList tables?

Here is how the columns are defined:

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="Office"

 

 

 

HeaderText="Offices"

 

 

 

UniqueName="chkOffices">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 

<%

 

--***********************************************--%>

 

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="TypeName"

 

 

 

HeaderText="Types"

 

 

 

UniqueName="chkTypes">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 


I have a Bind method that is binding the table to the grid and it looks like this:

 

 

private void BindDetails(DataTable Details, DataTable List, DataTable TiersList, DataTable officeList)

 

{

 

 

RadGrid grid = radGridPromoDetails;

 

grid.

 

MasterTableView.SortExpressions.Clear();

 

grid.

 

CurrentPageIndex = 0;

 

grid.

 

DataSource = Details;

 

grid.

 

DataBind();

 

}


The XML from the resultset is in the following form:
<Details>
  <field1></field1>
  <field2></field2>
  <Types></Types> -- this is the first dataset that I want to display in a drop down in a grid row.
  <Offices></Offices> -- this is the second dataset that  I want to display in a drop down in a grid row.
</Details>

Any ideas?
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
3 answers
152 views
Hello,

Maybe I am missing something?  I am trying to accomplish the automatic scrolling experienced using RotatorType="SlideShow" but with buttons so that the user can back up (left) or go forward (right).  I currently use PauseOnMouseOver="True" to stop the slideshow until the user focuses elsewhere.  That works just fine.  Do I need to use some sort of client-side script whereby an onclick event is raised when the user clicks an image (right) causing a showNext, for example?  (Is there a showPrevious?)  Is this the best approach to combine automatic scrolling, like the standard SlideShow option, with the SlideShowButtons option?

Thanks in advance for whatever advice or help you might provide.

Cheers,

Doug
Colton3310
Top achievements
Rank 1
 answered on 06 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?