Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 views

Hello, I have a database with a numeric field (State) that has the following values: 0, 1, 2, 3 and 4. In the Template Filter I have associated a combobox with the text associated with each value.

I want to see the text both in the field and in the filter, but I do not get it. You can help me see what I have wrong. Thank you

<telerik:GridTemplateColumn DataField="Estado" HeaderText="Estado" UniqueName="Estado" DataType ="System.String"    SortExpression="Estado" GroupByExpression="Estado Group by Estado" ReadOnly "true"><br>                               
<ItemTemplate><br>                               
<asp:Label runat="server"<br>                                   
ID="Estado" <br>  Text= '<%# DataBinder.Eval(Container.DataItem, "Estado") %>'><br>                                </asp:Label> <br>
</ItemTemplate><br>
<FilterTemplate><br>                                   
<telerik:RadComboBox RenderMode="Lightweight" ID="RcEstado" Width="90px" <br>                                        SelectedValue='<%# CType(Container, GridItem).OwnerTableView.GetColumn("Estado").CurrentFilterValue %>'       runat="server" OnClientSelectedIndexChanged="Estado_SelectedIndexChanged"><br>                                        <Items><br>
<telerik:RadComboBoxItem Text="Todo" Value="" Selected="True" /> <br>                                            <telerik:RadComboBoxItem Text="Sin incidencia" Value="0" /><br>                                            <telerik:RadComboBoxItem Text="El código de farmacia no existe en la base datos."Value="1"/><br>
<telerik:RadComboBoxItem Text="La clave de acceso no coincide" Value="2" />                                    <telerik:RadComboBoxItem Text="No se ha encontrado ninguna clave de acceso que no esté caducada." Value="3"
<telerik:RadComboBoxItem Text="La clave está caducada." Value="4" /><br>                                        </Items>
</telerik:RadComboBox><br>                                   
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"><br>                                       
<script type="text/javascript">
function Estado_SelectedIndexChanged(sender, args) {<br>                                           
var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
tableView.filter("Estado", args.get_item().get_value(), "EqualTo");<br>                                                                                  </script><br>                                   
</telerik:RadScriptBlock><br>                               
</FilterTemplate><br>                           
<EditItemTemplate><br>                           
<telerik:RadDropDownList ID="DropDownList4" runat="server" AutoPostBack="true" DataValueField="Activa" SelectedValue='<%#Bind("PingSrv") %>' OnSelectedIndexChanged="DropDownList4_selectedindexchanged"><br>                                <Items><br>
<telerik:DropDownListItem Text="El código de farmacia no existe en la base de datos." Value="1"
<telerik:DropDownListItem Text="La clave de acceso no coincide" Value="2" /><br>                                    <telerik:DropDownListItem Text="No se ha encontrado ninguna clave de acceso que no esté caducada." Value="3"
<telerik:DropDownListItem Text="La clave está caducada." Value="4" /><br>                            
</Items><br>
</telerik:RadDropDownList><br>                       
</EditItemTemplate><br>                         </telerik:GridTemplateColumn>
Attila Antal
Telerik team
 answered on 30 May 2019
9 answers
565 views

I'm sure the answer is something simple. I am trying to set my chart's legend cursor (mouse pointer) to "default" after the chart has already been created. I can't seem to figure out the correct syntax. Your help will be greatly appreciated.Thanks in advance.

var radHtmlChartObject = $find("<%=RadHtmlChart1.ClientID %>"); //the standard control object
var kendoChart = radHtmlChartObject.get_kendoWidget(); //the Kendo widget

//Examples that work correctly

kendoChart.options.legend.position = "top";
kendoChart.options.legend.labels.background = "green";

//None of these work for me:
kendoChart.options.legend.item.cursor = "default";
kendoChart.options.legend.item.cursor.style = "default";
kendoChart.options.legend.item[0].cursor = "default";
kendoChart.options.legend.item[0].cursor.style = "default";
kendoChart.options.legend.items.cursor = "default";
kendoChart.options.legend.items.cursor.style = "default";

 

Rumen
Telerik team
 answered on 30 May 2019
2 answers
189 views

I am using RadFilter to filter results in a RadGrid. For whatever reason, it will not filter my results in the rad grid. If I used the asp Grid option though, it does work. Is there a setting I am missing? Pictures attatched show that I should be getting results when I filter for cartoon, using the RadGrid and RadFilter, but nothing comes up. 

 

My code is as follows: (didn't give filter or grid ID names, I am just trying to get it to work at the moment.) 

 

<telerik:RadFilter ID="RadFilter1" runat="server" FilterContainerID="RadGrid1">
    </telerik:RadFilter>
    <br />
    <br />
 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ListViewFilter" Height="80px">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
        <MasterTableView AutoGenerateColumns="False" DataSourceID="ListViewFilter">

            <Columns>
                <telerik:GridBoundColumn DataField="EE" FilterControlAltText="Filter EE column" HeaderText="EE" SortExpression="EE" UniqueName="EE">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Interest" FilterControlAltText="Filter Interest column" HeaderText="Interest" SortExpression="Interest" UniqueName="Interest">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Like_or_Dislike" FilterControlAltText="Filter Like_or_Dislike column" HeaderText="Like_or_Dislike" ReadOnly="True" SortExpression="Like_or_Dislike" UniqueName="Like_or_Dislike">
                </telerik:GridBoundColumn>
            </Columns>

        </MasterTableView>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="ListViewFilter" runat="server" ConnectionString="<%$ ConnectionStrings:Interests.My.MySettings.dbInterests %>" SelectCommand="FilterList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>

 

 

Calin
Top achievements
Rank 1
 answered on 29 May 2019
1 answer
844 views
Hello,

on my pages where i use RadAjaxPanel, RadAjaxLoadingPanel, RadGrid, RadPanelBar, RadComboBox, RadMenu and RadScriptManager sometimes i got the following script error:

Sys.ScriptLoadFailedException: The script '/Telerik.Web.UI.WebRessource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_HiddenField&compress=1 .......... could not be loaded.

I'am using ASP .NET 2.0 and RadControls for ASP.NET AJAX 2009.2.701.20. I read about this problem in an other thread but it was for an much older version of the RadControls. So what should i do to solve this problem?
Rumen
Telerik team
 answered on 29 May 2019
5 answers
621 views
I am using ASP.NET 2.0 in VS2008 using telerik AJAX Q3 2008.

I am using a page with several Telerik controls including RadWindow RadGrid etc. RadTextBox rad ToolTip

when I call txtBox.Focus from the server side where txtBox is a RadTextBox I get the error

Sys.ScriptLoadFailedException. The script /Script.Resource.Axd could not be loaded.

What is up?

If I don't call the Focus() method of the RadTextBox I do not get the javascript error.





Rumen
Telerik team
 answered on 29 May 2019
1 answer
117 views

I have a RadGrid with a gridhyperlinkcolumn.  I want to set the url differently depending on a datakey value.  How can i do this? here is my code snippet

  <telerik:RadGrid ID="RadGrid1" runat="server" datakeynames="applicationid" allowsorting="true" DataSourceID="LOISubmitted" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both">
                    <GroupingSettings CollapseAllTooltip="Collapse all groups" />
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="true" />
                    </ClientSettings>
                    <MasterTableView DataSourceID="LOISubmitted" DataKeyNames="applicationid" AllowMultiColumnSorting="true"  CommandItemDisplay="top" Font-Names="Trebuchet MS">
                           <CommandItemSettings ShowExportToExcelButton="true" showaddnewrecordbutton="false"/>
                        <Columns>
                       
                         <telerik:GridHyperLinkColumn DataNavigateUrlFields="applicationid, applicationtype"  itemstyle-width="40%" DataTextField="fiscalorgname" HeaderText="Fiscal Organization" SortExpression="fiscalorgname" UniqueName="fiscalorgname"  ></telerik:GridHyperLinkColumn>
                            <telerik:GridBoundColumn DataField="behalfof" HeaderText="On Behalf of" SortExpression="behalfof" UniqueName="behalfof" FilterControlAltText="Filter behalfof column" ItemStyle-width="30%"></telerik:GridBoundColumn>
                        
                        
                                <telerik:GridBoundColumn DataField="applicationperiod" HeaderText="Application Period" SortExpression="applicationperiodid">  </telerik:GridBoundColumn>
                        </Columns>
                       
                    </MasterTableView>
                </telerik:RadGrid>

Attila Antal
Telerik team
 answered on 29 May 2019
1 answer
168 views

I thought this would be a simple task. So, apparently I'm either missing something or it is not so easy.
I would like to utilize the filter menu not to filter existing data, but rather as a means to select a value to populate all the cells of that column.
I can do this easily with separate dropdownlists positioned above the grid header. But to me, this looks clunky so I want to utilize the filter menu.

I have several columns that require the same functionality.
I.e the cells are initially empty or set to some other value. I would like to fill them with the value selected in the filter. In one case, the cells are actually dropdownlists. Neither the filter menu items nor the column values are data bound.
I created a custom filter with custom filter menu items. I simply want to determine for which column the filter was selected so I can then perform the code which fills in the cells with the selected value.

In the Page_Init() I create the custom menu items and add an .ItemClick handler.
When I select an item from the filter menu the ItemClick is fires as expected.
I can get the selected value from e.Item.Value from the RadMenuEventArgs e paremeter. However, I’ve searched for an hour and I can’t find anywhere in the RadMenuEventArgs e or object sender  parameter to determine from which column the ItemClick was fired.

Attila Antal
Telerik team
 answered on 29 May 2019
3 answers
172 views

I would like to have a monthview where the rows for empty weeks are collapsed, but weeks with appointments expand their height to fit the max number of appointments in that row. I would like the appointments to have a custom height (100px).

For example: If Tuesday of a week has 3 appointments the row for that week would be (3*100px) + date header. Otherwise if a week doesn't have appointments the height would be the height of the date header. 

let me know if you need more info or screen shots.

 

thanks,

 

Peter Milchev
Telerik team
 answered on 29 May 2019
5 answers
144 views

In a web form .net application, I need to allow users to be able access a 'generic' template letter that can be viewed in Karen, Burmese, and Nepali. 

What I know is the following:

1. I know if I place the following in the html, '<?xml version="1.0" encoding="utf-8" ?>', the radeditor should be able to handle the languages listed above, correct? If not correct, would you tell me what I need to do for the languages to be recognized?

2. If I need to place something like '<?xml version="1.0" encoding="utf-8" ?>' in the html for the radiator to know foreign languages are being used, can you tell me in the html where this needs to be placed? I am assuming before the <html></html> tags.

3. I am asking the following question since I need to download specific fonts for Karen and Burmese in a Word 2016 for the words to appear in the Word editor. Thus for the radeditor, would I need to place these fonts in the readeditor? If so, can tell me how to add the Karen and/or Burmese fonts to the radeditor and how the radeditor needs to be programmed to access these fonts? 

**Note: The users only need to view the Karen, Burmese, and Nepali words. They do not need to edit the words. The words will be loaded to the radeditor for them.

 

Rumen
Telerik team
 answered on 29 May 2019
5 answers
312 views

Hello, using keyboard, tabbing thru each date but I could not see the focus, how can I set the focus on each date I tab thru? I used this " RadCalendar1.SelectedDate = DateTime.Now" but it only give me the focus of the current today date.  Thanks.

  Protected Sub PopulateCalendar(ByVal UserID As Integer)

        Dim AppointmentList As New List(Of AppointmentDTO)

        AppointmentList = AppointmentManager.GetList_ByUserIDs(UserID)      

      
        Me.AppointmentCount = AppointmentList.Count

        For Each appt As AppointmentDTO In AppointmentList
            Dim NewDay As New RadCalendarDay(RadCalendar1)
            'NewDay.Date = New DateTime(2010, 11, 12)
            NewDay.Date = New DateTime(appt.StartTime.Year, appt.StartTime.Month, appt.StartTime.Day)
            NewDay.IsSelected = False
            NewDay.ItemStyle.CssClass = "rcSelected"
            NewDay.ToolTip = "Appointment scheduled today"
            RadCalendar1.SpecialDays.Add(NewDay)

        Next
       
       RadCalendar1.SelectedDate = DateTime.Now
       
    End Sub


--

       <telerik:RadCalendar ID="RadCalendar1" runat="server" TitleFormat="MMMM yyyy"  Width="100%"
                     ShowRowHeaders="false"    UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false" EnableViewSelector="false">
        <ClientEvents OnDateClick="Calendar_OnDateClick"></ClientEvents>
                     <WeekendDayStyle CssClass="rcWeekend"></WeekendDayStyle>
                     <CalendarTableStyle CssClass="rcMainTable"></CalendarTableStyle>
                     <OtherMonthDayStyle CssClass="rcOtherMonth"></OtherMonthDayStyle>
                     <OutOfRangeDayStyle CssClass="rcOutOfRange"></OutOfRangeDayStyle>
                     <DisabledDayStyle CssClass="rcDisabled"></DisabledDayStyle>
                     <SelectedDayStyle CssClass="rcSelected"></SelectedDayStyle>
                     <DayOverStyle CssClass="rcHover"></DayOverStyle>
                     <FastNavigationStyle CssClass="RadCalendarMonthView RadCalendarMonthView_Office2007"></FastNavigationStyle>
                     <ViewSelectorStyle CssClass="rcViewSel"></ViewSelectorStyle>
    </telerik:RadCalendar>















Rumen
Telerik team
 answered on 28 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?