Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
369 views
If a particular filter operation does not yield any results, we would like to be able to set focus on the last filter field that the user put data into. For example, suppose I have a "Status" column with options of "All","Active","Inactive". If a user picks "Inactive" and there are no records matching that criteria I would like to set focus on the filter control for the "Status" column.

I may just be missing something obvious, but I'm not having luck with this so far.

Thank you!
Eyup
Telerik team
 answered on 07 Aug 2015
1 answer
193 views

 I'm trying to add JavaScript to allow users to select today's date by pressing "T" key.  I've copied the following code from elsewhere in this forum.  Sorry, I cannot find original post.   The below code does exactly what what we want except the t is showing up in the text.  For example, "8/4/2015t" is what is being displayed.  

 Is there a way to prevent key press from being propagated?  Below is demo code that I'm working with.

<telerik:RadDatePicker ID="DatePicker1" runat="server" >
     <DateInput ClientEvents-OnKeyPress="DateTextBoxKeyPress"/>
</telerik:RadDatePicker>

 

function DateTextBoxKeyPress(sender, args) {
 
    var s1 = args.get_keyCharacter().toUpperCase();
 
    if (s1 === "T") {
 
        var datePicker = sender;
        var date = new Date();
 
        date.setDate(date.getDate());
        datePicker.set_selectedDate(date);
    }
}

Eyup
Telerik team
 answered on 07 Aug 2015
1 answer
359 views
Telerik Team,

We are using telerik rad grid and have implemented custom paging on it. Hence grid maintains page index while filtering and sorting. Now the issue is say for example page size is 50 and we have 150 records the three page will appear. Now if user go to page number 3 and filters any column which returns only 1 records. Obviously when grid rebinds it will only have one page. One page number shows on the grid. But grid shows no records. Now if I click on page number 1, of course it shows records.

I checked by debugging, in this case PageCount property shows 1 which is less than the out CurrentPageIndex.

How do we dynamically reset the page number from code behind. We don't want to always set page index to 0. Hope this makes sense. Thank you.

Pathan  L.
Rahul
Top achievements
Rank 1
 answered on 07 Aug 2015
3 answers
296 views

As of Q2 2015 SP1 the popup element of RadToolTip cannot be shown if the content is empty. This is a result of an important improvement—http://feedback.telerik.com/Project/108/Feedback/Details/54180.

This change will affect implementation where content of tooltip is populated via the OnClientShow event. The proper usage is handling the OnClientBeforeShow event in order for the tooltip to show up.

You can also examine this online demo (http://demos.telerik.com/aspnet-ajax/tooltip/examples/databasetooltipswithoutlod/defaultcs.aspx) to further see such an implementation.

Geoff
Top achievements
Rank 1
 answered on 07 Aug 2015
1 answer
68 views
I had a hierarchical grid with edit command at both the master and detail table (I only got 1 detail table) and it was working fine. Both edit command fire via Ajax Call using the AjaxManager

However, once I upgrade to the latest version, I found that my edit command don't work on detail table (ONLY detail table) anymore. Master table view is unaffected.
Clicking the command button on detail table will cause the detail table failed to bind. The detail table event did fire but the output contain no rows.

I tried revert to previous version (2015.2.623) WITHOUT changing any code and things is back to normal. I guess the latest build break something.
Pavlina
Telerik team
 answered on 07 Aug 2015
2 answers
278 views

Hi!

I need your help one more time. I want to puts a button or hyperlink (or something for the user can interact for do any action to the radscheduler) but I don't know how to do it.

I read a lot of manuals and this told me that I have to write any code in javascript, but then when I run the project, it doesn't works...

Can anyone tell me or explain me how I can insert a button or hyperlink in the header of the radscheduler control? And then, the button will have events or I have to add in code.

I wait your responses :)

Regards!

Ivan Danchev
Telerik team
 answered on 07 Aug 2015
3 answers
190 views
Hi,

i have undefined values when i try to define my own columns, when AutoGenerateColumns = "true" it works fine.

<telerik:RadGantt ID="RadGantt1" runat="server" SelectedView="MonthView" Skin="Silk"  ReadOnly="true" AutoGenerateColumns="false" ListWidth="351px" DataSourceID="TaskSource" DependenciesDataSourceID="DependenciesSource" >
            <YearView UserSelectable="true" />
            <DayView UserSelectable="false" />
            
            <Columns>
                <telerik:GanttBoundColumn DataField="Naziv" DataType="String" Width="120px" AllowEdit="true"></telerik:GanttBoundColumn>
                <telerik:GanttBoundColumn DataField="DatumOd" DataType="DateTime"  Width="40px" ></telerik:GanttBoundColumn>
                <telerik:GanttBoundColumn DataField="DatumDo" DataType="DateTime"  Width="40px" ></telerik:GanttBoundColumn>
            </Columns>
            
            <DataBindings>
                <TasksDataBindings
                    IdField="IdAkcije"  
                    StartField="DatumOd" EndField="DatumDo"
                    ParentIdField="Dependence" SummaryField="Summary"
                    TitleField="Naziv"
                    PercentCompleteField="PercentComplete"  />
                <DependenciesDataBindings
                     IdField="IdAkcije"
                    PredecessorIdField="PredecessorID"
                    SuccessorIdField="SuccessorID"
                    TypeField="Type" />
            </DataBindings>
            <Localization HeaderMonth="<%$ GetString: 24_Py_Mjesec %>" HeaderWeek="<%$ GetString: 00_Pub_Week %>" />
        </telerik:RadGantt>
    </div>

    <asp:SqlDataSource runat="server" ID="TaskSource" ConnectionString="<%$ ConnectionStrings: HrNet.Core.SqlServer %>" SelectCommandType="StoredProcedure" SelectCommand="gorGanttPregled" ProviderName="System.Data.SqlClient">
    </asp:SqlDataSource>

    <asp:SqlDataSource runat="server" ID="DependenciesSource" ConnectionString="<%$ ConnectionStrings: HrNet.Core.SqlServer %>" SelectCommandType="StoredProcedure" SelectCommand="gorGanttDependanciesPregled" ProviderName="System.Data.SqlClient">
    </asp:SqlDataSource>
Sypher
Top achievements
Rank 1
 answered on 06 Aug 2015
5 answers
762 views

Hi,

 

I am using Telerik.Web.UI.RadAsyncUpload v4.0.30319

ContentType for MSG Files are always returning as null. I tried uploading file with HtmlInputFile control, and that retrieves it fine. How can I get it to work with RadAsyncUpload ?

 

Note: I have the mime type (.msg application/vnd.ms-outlook) set in my local IIS where I am running my site.

 

Thanks

Purna

Greg
Top achievements
Rank 1
 answered on 06 Aug 2015
2 answers
139 views

I want to be able to have a checkbox on the page that when checked, the RadGrid uses paging, when unchecked, the RadGrid shows all results. How can I accomplish this? 

 

Thank you for your help.

TS
Top achievements
Rank 1
 answered on 06 Aug 2015
4 answers
188 views
Trying to set RadSearchBox Datasource in  Grid ItemDataBound event but only get message saying DataSource not set.
Hristo Valyavicharski
Telerik team
 answered on 06 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?