Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views

Hi,

 

I am using AJAX Telerik ASP.NET Radgrid in Batch Edit Mode. I have a template column which has radtextbox or radnumeric text box as edit template.

When I edit the cell and click outside, regular expression validator is not firing, even though range and required validators are working perfectly.

Any specific reason or i am missing something?

Viktor Tachev
Telerik team
 answered on 27 Sep 2016
1 answer
193 views

Hi,
I want to format the date in a "dd.MM.yyyy" I've already tried several options but none that work.

The date is stored in the table as Datetime2.

 

<telerik:RadListView runat="server" ID="rlvEmployes" ClientDataSourceID="rcdsEmployes">
            <LayoutTemplate>
                <div class="RadListView RadListView_Default">
                    <ul class="employes-list" id="itemPlaceholder" runat="server" style="list-style-type:none;">
 
                    </ul>
                </div>
            </LayoutTemplate>
            <ClientSettings>
                <DataBinding>
                    <ItemTemplate>
                        <li>
                            <div class="itemTemplate" data-employe-id="#= ZamestnanecID #">
                                <div class="header">#= Prijmeni # #= Jmeno #</div>
                                <div class="content">
                                    <table>
                                        <tr>
                                            <td>
                                                <span class="label">Aktivní:</span>
                                            </td>
                                            <td>
                                                <input type="checkbox" #= Aktivny ? 'checked="checked"' : '' # />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <span class="label">Datum narození:</span>
                                            </td>
                                            <td>
                                                <span class="info">#= format(DatumNarozeni, "{0:dd/MM/yyyy}") #</span>
                                            </td>
                                            <td>
                                                <span class="label">Číslo OP:</span>
                                            </td>
                                            <td>
                                                <span class="info">#= CisloOP #</span>
                                            </td>
 
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="editTemplate" style="display:none;">
                                <telerik:RadTextBox runat="server" Text='#= ZamestnanecID #'></telerik:RadTextBox>
                            </div>
                        </li>
                    </ItemTemplate>
                </DataBinding>
            </ClientSettings>
        </telerik:RadListView>

 

Where I make mistakes?

Viktor Tachev
Telerik team
 answered on 27 Sep 2016
1 answer
941 views

Hi,
I am using a rad org chart.  Basically I want to apply certain CSS styles based on a condition.
I have figured out how to just override a css styles:

.rocToolbar_Metro .rocToolbarButton {   background-color: #32b330 !important;}


But I can’t figure out how to do this conditionally via the code behind, so saying if condition == 1 then apply this:

.rocToolbar_Metro .rocToolbarButton {    background-color: #32b330 !important;}


Else apply this:

.rocToolbar_Metro .rocToolbarButton {    background-color: #25a0da !important;}



I am planning to do this within the NodeDataBound event.  Any suggestions appreciated.
Thanks.

Ivan Danchev
Telerik team
 answered on 27 Sep 2016
1 answer
258 views

I would like to see if it's possible to pass the value from a container.data with rad button in an asp.repeater control.

 

<script type="text/javascript">
function open_windowtemplate_AddSection(sender, args) {
var button = sender.get_id();
alert($(button).commandarguments);
}
</script>

 

<asp:Repeater ID="rpt_Channel" runat="server" OnItemDataBound="rpt_Channel_ItemDataBound">
<ItemTemplate>
<tr>
<td colspan="4" class="MainLineItem">
<div style="float:left;">&#9632; <asp:Label ID="lbl_ChapterName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Chapter")%>'></asp:Label></div>
<div style="float:right">
<asp:ImageButton ID="imgbtn_AddSection" runat="server" AlternateText="Click to add section" ImageUrl="~/Includes/images/green_plus_add.png" Height="20px" CommandName="Add" />
<telerik:RadButton ID="radbutton_AddSection" runat="server" Text="+" CommandArgument='<%Databinder.Eval(Container.DataItem, "Channel_ID") %>'
ButtonType="StandardButton" OnClientClicked='open_windowtemplate_AddSection' AutoPostBack="false">
</telerik:RadButton>

Ianko
Telerik team
 answered on 27 Sep 2016
1 answer
126 views

Hello

I need to save a workbook to the database as a blob and then be able to open it again later. I'm trying to find an example of this and don't see one.   According to this link (http://www.telerik.com/forums/save-data-back-to-database-table) it's possible but no information is given.  The closest documentation I could find was this (http://docs.telerik.com/data-access/developers-guide/crud-operations/developer-guide-domain-model-managing-advanced-working-with-streams) but it was not specific to the spreadsheet control.  

 

Thank you

Nencho
Telerik team
 answered on 27 Sep 2016
5 answers
248 views

I'm seeing that while uploading the file, RadAsyncUpload is also sending set of additional information as part of the payload (form-data fields) like "rauPostData", "fileName", "contentType", and others data pieces (see attachment).

I'm thinking whether it is possible to add additional custom fields to the payload mainly the CSRF token which will help me evaluate the authenticity of the file upload before it gets processed on the server.

I'm doing all CSRF validation through HttpModule and hence I cannot use Custom RadAsyncUpload Handler which for me is not a viable solution as the module will not let the request reach till this point.

Is there any degree of customization which can help me through this? Any help will be truly appreciated.

Thanks,
Gururaj

Plamen
Telerik team
 answered on 27 Sep 2016
6 answers
130 views

Hi,

When I'm adding both scatterLineSeries and ScatterSeries in the same graph, scatterseries are always behind the scatterLineSeries? How I get ScatterSeries over the Scatterlineseries?

 

Regards,

Auvo

 

 

Stamo Gochev
Telerik team
 answered on 27 Sep 2016
3 answers
70 views
In a vb.net 2010 web form application, I have the telerik radeditor installed as part of the application. The version of the rad editor that is used Telerik_UI_for_ASP.NET_AJAX_2016_1_225_Dev.msi. The problem is when the vb.net web form application is being accessed by the user, the radeditor does get hidden after a few seconds. The user can see that the radeditor is being displayed and goes away.
Thus I am trying to determine what I can do to solve the problem. Is there a value in the web.config file that I can change to decrease the amount of time the radeditor is being displayed? Basically do you know what I can do to solve the problem? If so, would you tell me what I can do to solve the issue?
diane
Top achievements
Rank 1
 answered on 26 Sep 2016
12 answers
251 views
Hi,

I'am using PageLayout and Device Detection framework, version 2014.3.1024 (just released!).

The problem is: PageLayout responds incorrectly with device screen size and viewport of browsers.

For example:

- Set HiddenLg="True" for LayoutColumn, but this column is hidden with browser viewport 1025-1280 (which is actually Medium).
- Set HiddenXl="True" for LayoutColumn, but this column is hidden with browser viewport 1281 and higher (1281-1366 is actually Large, and 1367 and higher is Extra large).

This occurs with all other options and also device screen (I have tested on some mobile phones)... It seems PageLayout is always one step higher than  DeviceScreenSize enum of Detection framework. Looking inside your DeviceScreenSize enum (as pasted below), I think the problem is obviously there (perhaps?): This enum version is without ExtraSmall while PageLayout does have ExtraSmall option (Xs). So wrong mapping of value between PageLayout and DeviceScreenSize enum might cause one step different among the two.

The enum should be:

ExtraSmall = 0,
Small = 1,
Medium = 2,
Large = 3,
ExtraLarge = 4,

Please check if this is the problem.

By the way, I would suggest the following feature:

HiddenUp, HiddenDown (or whatever the name is)

In many cases (if not to say most cases), you want to set hidden to an element from a point upward or downward.
Let's say:

- Case HiddenDown:
You want to set hidden for a div with Medium, Small and ExtraSmall (display on Large and ExtraLarge), now you have to set these:
HiddenMd="True" HiddenSm="True" HiddenXs="True"

With HiddenDown="Md" would cover them all.

- Case HiddenUp:
You want to set hidden for a div with Medium, Large and ExtraLarge (display with ExtraSmall, Small), now you have to set these:
HiddenXl="True" HiddenLg="True" HiddenMd="True"

With HiddenUp="Md" would cover them all.

Actually, I have developed these features myself as additional functions of your PageLayout and they are working well, saving time and with less code.

Hope that this will come with the next version.

Thank you.
(And sorry for my bad English :()



============= DeviceScreenSize enum of Detection framework =============================================
    // Summary:
    //     The device screen size based on the its dimensions in CSS pixels
    //
    // Remarks:
    //     The default ranges are: Small (to 600) CSS pixels Medium (601-1024) CSS pixels
    //     Large (1025 - 1366) CSS pixels ExtraLarge (over 1366) CSS pixels
    public enum DeviceScreenSize
        {
        Small = 0,
        Medium = 1,
        Large = 2,
        ExtraLarge = 3,
        }
Ivan Danchev
Telerik team
 answered on 26 Sep 2016
3 answers
139 views

I have a dynamically built page with many different controls loaded onto the page.

Tthis page could have multiple rad editor on it.

 

The problem is that the page has the focus set on to the last rad editor loading on to that page.

Which events sets the focus to the content area?

the rad editor is drawn as divs

Rumen
Telerik team
 answered on 26 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?