Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
134 views
I created a Telerik Web application C# project in VS2013 and found out that no client-side validation occurs. Is it expected due to the Telerik project template is missing any of MS js libraries? 
Misho
Telerik team
 answered on 26 Mar 2014
2 answers
163 views
Hello there,

I have a RadHtmlChart which has multiple LineSeries series.  In the legend, when clicking on the one of the series, it neatly toggles on and off that series from the chart. This functionality is really cool; however, I've been trying to figure out what is occurring behind the scenes.   Is the chart's repaint() function being called on each click?

Here is why I'm trying to further understand this.  I have a little function that I wrote that automatically hides every nth label along the x axis depending upon the number of data points there are after I bind some data client side.  It's a work around to the overcrowding of labels that can occur along the x-axis with large data sets. See attached image if I've lost you.

Anyways, when clicking on a series in the legend, it takes away that series as it should, but all of the date labels have reappeared as shown in attached 2.  I'm looking for an event to be able to hook into so I can call my function that hides the labels.

I appreciate all input and ideas.
Avs8686
Top achievements
Rank 1
 answered on 26 Mar 2014
1 answer
301 views
I am trying to get a gridview to display a clickable icon that shows the current status of the gridview item which can be sorted and filtered. When clicked the status image should toggle between active / Inactive / Unknown images and update the appropriate item's status in the DB(immediately or after a save changes button is pressed, either way). The DB stores the status as an int where 0 = inactive, 1 = active, and any other number is unknown.  The radGrid uses an objectDataSource to access the DB which contains the int as 'Status'.

I tried to use an itemTemplate With a radButton with a buttonType of ToggleButton, a ToggleType of CustomToggle And three toggleStates (one for each status),  while the toggling between the images worked, I can't seem to bind original(default) toggleState to the 'Status' value, and being able to sort/filter based on that. 

.aspx:
01.<telerik:RadGrid ID="InvQryList" runat="server" AllowFilteringByColumn="True"
02.            AllowSorting="True" AutoGenerateDeleteColumn="True" DataSourceID="InvQryDS"
03.            Skin="Windows7">
04.            <ClientSettings EnableRowHoverStyle="True">
05.            </ClientSettings>
06.            <MasterTableView AutoGenerateColumns="False" DataSourceID="InvQryDS" FilterExpression="(it.Active != 0)">
07.              <Columns>
08.                ... Other Columns ...
09.                <telerik:GridTemplateColumn HeaderText="Active Toggle" DataField="Active">
10.                 <ItemTemplate>
11.                  <telerik:RadButton ID="ActiveToggle" runat="server" ButtonType="ToggleButton" ToggleType="CustomToggle" AutoPostBack="false"
12.                   Width="16px" Height="16px">
13.                  <ToggleStates>
14.                    <telerik:RadButtonToggleState Value="1" ImageUrl="img/spheres/green-16x16x32.png" />
15.                    <telerik:RadButtonToggleState Value="0" ImageUrl="img/spheres/red-16x16x32.png" />
16.                    <telerik:RadButtonToggleState Value="-1" ImageUrl="img/spheres/grey-16x16x32.png" />
17.                  </ToggleStates>
18.                  </telerik:RadButton>
19.                 </ItemTemplate>
20.                </telerik:GridTemplateColumn>
21.              </Columns>
22.            </MasterTableView>
23.          </telerik:RadGrid>

Any Help would be Great
 

 

 
Konstantin Dikov
Telerik team
 answered on 26 Mar 2014
0 answers
124 views
Hello

Using SqlDataSource Control Parameter for filtering my Database dynamically.
I wonder can i use Stored Procedure for controlling Database dynamically like SqlDataSource?

Thanks in advance

omer
Top achievements
Rank 1
 asked on 26 Mar 2014
7 answers
284 views
RadAsyncUpload in Grid

I noticed this on the Upload example:

"You need to ensure that any submit buttons on the page are disabled while upload is in progress. Otherwise, there is no guarantee that the files will be uploaded successfully"

How would I do that?

Marty
moegal
Top achievements
Rank 1
 answered on 26 Mar 2014
4 answers
141 views
Hey,

When using the RadEditor to markup some html5 microdata, it seems to strip out the 'itemscope' property.

So when in HTML pane pasting something like:
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
    <meta itemprop="latitude" content="1.23456" />
    <meta itemprop="longitude" content="1.23456" />
</span>

it saves it like this:

<span itemprop="geo" itemtype="http://schema.org/GeoCoordinates">
    <meta itemprop="latitude" content="1.23456" />
    <meta itemprop="longitude" content="1.23456" />
</span>

This happens both on <span> and <div> and not just on geo microdata but all items containing 'itemscope'.

In this case I'm using the RadEditor inside Sitefinity v5.1, but after confirming Sitefinity doesn't strip/filter anything and its a RadEditor issue, I'm posting the question here...

Has anyone run into this and found a workaround ?

Jochem
Petar
Top achievements
Rank 1
 answered on 26 Mar 2014
1 answer
95 views
In development when I add the Filemanager to a screen and try to open the file explorer I get the error

HTTP Error 403.14 - ForbiddenThe Web server is configured to not list the contents of this directory.

I and just trying to access a subfolder in the web directory on my machine in VS2013
Frank
Top achievements
Rank 1
 answered on 26 Mar 2014
5 answers
333 views
I am not able to bind this checkbox to a nullable bit in sql:
<EditFormSettings EditFormType="Template">
  <FormTemplate>
  <telerik:RadButton ID="btnToggle"  runat="server" ToggleType="CheckBox" ButtonType="LinkButton" Checked='<%# Bind("inBudgetPCS") %>' >
  <ToggleStates>
   <telerik:RadButtonToggleState Text="In Budget" PrimaryIconCssClass="rbToggleCheckboxChecked" />
   <telerik:RadButtonToggleState Text="Not in Budget" PrimaryIconCssClass="rbToggleCheckbox" />
 </ToggleStates>
</telerik:RadButton>
  </FormTemplate>
</EditFormSettings>
It keeps generating "Invalid cast exception"
Maria Ilieva
Telerik team
 answered on 26 Mar 2014
4 answers
1.4K+ views
What's the best way to show Yes/No for boolean columns instead of true false? I don't want to change it in the SQL, because it would affect my ability to query and sort.

Thanks,
Andrew
Stef
Telerik team
 answered on 26 Mar 2014
4 answers
276 views
Is it possible to add template columns after Page_Init? 
I have dynamic columns in a radgrid that is nested inside another radgrid that can only be calculated after the parent radgrid is bound. 
This was working fine when I was binding the parent in Page_Init, but now I am binding it with the NeedDataSource event and the template columns no longer render, since Page_Init has already fired.

Is there anything I can do after Page_Init to render the columns added?
Eric
Top achievements
Rank 1
 answered on 26 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?