Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
110 views
Hi, I wanted to know if there was a way to edit the default template for the tasks.I have explored client templates but you lose the percent complete functionality when you do this and I'd like to keep that. Specifically visually seeing the percent complete highlight as well as adjusting the percent complete by moving the slider. If there was a way to add custom text to the default task, that would be perfect. 
Sam
Top achievements
Rank 1
 answered on 26 Jul 2016
1 answer
248 views

Hi There,

I have a 3-Month view RadCalender in my page, however, the control  crossed the border of my page. As shown in the attached screenshot, I would like to set the RadCalendar inside the the Red area. I figured that the width of the Calendar control can only set to the value larger than "280px". The control size does not change at all when I set the width value to "220px". Is there any way to make the RadCalendar fit my page?

My second question is, the look and feel of the RadCalendar in my page is not the same as shown in the Telerik RadCalendar demos, please see the attached screenshot files. I use the same code as the Telerik demos, how to make it looks the same as the demos? Please help.

Any suggestions is much appreciated. 

 

Meng
Top achievements
Rank 1
 answered on 26 Jul 2016
8 answers
424 views
Hi,
I have a RadGrid (parent) which is having another radGrid (child) inside the NestedViewTemplate.
I am providing the datasource of parent from code behind need datasource.

How can I bind the child radgrid from codebehind based upon the a column/datakey value of the parent grid?

In below code I have to fill the child grid with the  values sent by OAHSSQ column.



<telerik:RadGrid ID="radGridShippedOrders" runat="server" GridLines="None" AllowPaging="True"
            PageSize="10" AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="true"
            HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="radGridShippedOrders_NeedDataSource" 
            OnItemDataBound="radGridShippedOrders_ItemDataBound" OnItemCommand="radGridShippedOrders_OnItemCommand"
            Width="800px" AllowMultiRowSelection="False" AllowFilteringByColumn="true" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
            
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                 <Pdf PageTitle="Shipped Orders" />
            </ExportSettings>


            <MasterTableView GroupLoadMode="Client" CommandItemDisplay="Bottom" DataKeyNames="OAHSSQ" Name="MTVShippedOrders">
                <CommandItemTemplate>
                    <asp:Button ID="DownloadPDF" runat="server" CommandName="ExportToPdf" Text="Export" />
                </CommandItemTemplate>
                <CommandItemSettings ShowExportToExcelButton="true" />
                <Columns>
                    <telerik:GridBoundColumn UniqueName="OACONO" HeaderText="OACONO" DataField="OACONO">
                    </telerik:GridBoundColumn>                
                    <telerik:GridBoundColumn UniqueName="OAINNO" HeaderText="OAINNO" DataField="OAINNO">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAORNO" HeaderText="OAORNO" DataField="OAORNO">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAORGN" HeaderText="OAORGN" DataField="OAORGN">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAHSSQ" HeaderText="OAHSSQ" DataField="OAHSSQ">
                    </telerik:GridBoundColumn>
                                     
                </Columns>
                
                <NestedViewTemplate>
                
                    <telerik:RadGrid ID="radGridInvoiceHeader" runat="server" GridLines="None" AllowPaging="True"
                        PageSize="20" AllowSorting="True" AutoGenerateColumns="true" ShowStatusBar="true"
                        HorizontalAlign="NotSet" AllowMultiRowEdit="false" 
                        Width="100%" AllowMultiRowSelection="False" AllowFilteringByColumn="false">
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                    </telerik:RadGrid>

</NestedViewTemplate>
                                
                
            </MasterTableView>
             <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True">
            </ClientSettings>
             <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>
Makunda
Top achievements
Rank 1
 answered on 26 Jul 2016
0 answers
117 views

Today I ran into an issue with a grid that is linked to a LinqDataSource via DataSourceId and no ViewState.

Initially, everything works fine but after a postback (paging, sorting, filtering), the Selecting event of the LinqDataSource is fired twice, once before page_load and once after. The problem is that this will cause an expensive query to run twice.

Anybody experienced this problem? With ViewState enabled, everything works fine.

Thanks, Martijn

martijnb
Top achievements
Rank 1
 asked on 26 Jul 2016
1 answer
74 views
I found example code RadSchedule and webservice, but example using xml data. Please for example code using RadSchedule ajax vs WCF web service with provider database (not xml data file).
Peter Milchev
Telerik team
 answered on 26 Jul 2016
9 answers
717 views
HI ALL

Every time I update to a new version of Telerik Radcontrols we get the "Failed to create designer" view error back,before instal my version is 2012.2.607.40  and now 2012.2.912.40

we have attached an image herewith


devolpment team 
(Rohan & Hasindu)
Ibrahim
Top achievements
Rank 1
 answered on 26 Jul 2016
0 answers
120 views

Hi

We use RadGrid as a single Grid for many tables.

We bind the radGrid at runtime at the OnInit event, and showing the values is not an issue, it works fine.

We have for example table of Users with some columns such as: Name, ID, Phone number and UserType, this UserType column holds a foreign key number in DB, but those keys represent text from another table, let's say "UserTypeTable".

The grid should show the text - so we bind the grid with a view, and it works great.

The problem starts when we need to allow to edit, then we should know whether it's a "Normal" field or "ForeignKey" field and if it's ForeignKey field, it should be a combobox with relevant values.

Same about filters, for normal fields the filter is normal, but for ForeignKey fields, the filter should be combobox.

All this should be dynamically and work at runtime.

Is it possible at all?

 

Thanks,

Eliran

yigal
Top achievements
Rank 1
 asked on 26 Jul 2016
2 answers
523 views

I have two RadDatePicker control for Start Date and End Date selections. The tabbing should be in order from Start Date textbox (tabindex=1), then to Start Date calendar icon(tabindex=2), then to End Date textbox(tabindex=3) and to End Date calendar icon(tabindex=4).

My issues were every time I hit the Start Date calendar icon and select a date, the focus always appear on the Textbox of Start Date and the tabbing start in Start Date textbox. Even I hit the End Date calendar icon and after selecting a date, the tabbing start in Start Date textbox again.

I want the focus stay in the calendar icon every time I select a date, so that the tabbing will be in order.

Please help...I spent a lot of time of searching a solutions in the internet and can't find anything that I can use. Thanks in advance....

<tr>
   <td width="160px">Start Date</td>
    <td>
                                <telerik:RadDatePicker ID="dtFrom" runat="server" title="Start Date Entry" TabIndex="1" >
                                    <DatePopupButton ToolTip="Open Start Date Calendar popup" />                                    
                                    <Calendar ID="Calendar1"  runat="server" NavigationNextToolTip="NextMonth" NavigationPrevTooltip="PreviousMonth" FastNavigationNextToolTip="NextMonth3" FastNavigationPrevToolTip="PreviousMonth3" EnableKeyboardNavigation="true" TabIndex="2" CalendarCaption="Start Date Calendar">
                                    </Calendar>   
                                </telerik:RadDatePicker>
                                <asp:RequiredFieldValidator ID="rvStart" runat="server" ErrorMessage="Travel Start Date is Required" ControlToValidate="dtFrom"></asp:RequiredFieldValidator>

    </td>
  </tr>
   <tr>
   <td>End Date                                                     
    </td>
    <td>
                                <telerik:RadDatePicker ID="dtTo" name="dtTo" runat="server" title="End Date Entry" TabIndex="3">
                                    <DatePopupButton ToolTip="Open End Date Calendar popup" />
                                    <Calendar ID="Calendar2" runat="server" NavigationNextToolTip="NextMonth" NavigationPrevTooltip="PreviousMonth" FastNavigationNextToolTip="NextMonth3" FastNavigationPrevToolTip="PreviousMonth3" EnableKeyboardNavigation="true" TabIndex="4" CalendarCaption="End Date Calendar">
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Travel End Date is Required" ControlToValidate="dtTo"></asp:RequiredFieldValidator>

</td>
 </tr>

 

G
Top achievements
Rank 1
 answered on 26 Jul 2016
2 answers
206 views

I'm trying to have persistent notifications, in other words notifications that show until the user clicks the x (close) button on the notification.  Is there a recommended way to capture this event server side along with the value from the notification being clicked so that I can record these notifications as being seen?

 

Seems similar to what this person was asking:  http://www.telerik.com/forums/how-to-clear-notification-client-server-on-hide-manual-close

 

I see the mention of using the menu to add actions, this isn't exactly what I need... but even there I can find no example of sending anything server side with these actions, only client side.

 

Thanks in advance,

Mirek

 

Mirek
Top achievements
Rank 1
 answered on 26 Jul 2016
4 answers
1.0K+ views

Hi,

I am programatically creating few GridCheckBoxColumn in the grid and in the ItemCreated event of the grid i am adding the CheckedChanged event but the CheckedChanged event is not getting fired.

Can you please help me to fix this.

ASPX:

<ic:SettingGrid runat="server" ID="grRemainderMappings" DisableAddNew="true" OnItemCreated="grRemainderMapping_ItemCreated">
                                <MasterTableView>   
                                    <Columns>
                                            <telerik:GridBoundColumn UniqueName="AppointmentReasonId" DataField="AppointmentReasonId" HeaderText="AppointmentReasonId" Display="false"/>
                                            <telerik:GridBoundColumn UniqueName="ReasonCode" DataField="ReasonCode" HeaderText="Reason Code"/>
                                            <telerik:GridBoundColumn UniqueName="Description" DataField="Description" HeaderText="Description"/>
                                        </Columns>                                  
                                        <NoRecordsTemplate>
                                                <div class="ListGridNoRecords">There are no selected templates to display</div>
                                        </NoRecordsTemplate>
                                    </MasterTableView>
                                </ic:SettingGrid>

C#:

protected void grRemainderMapping_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem dItem = e.Item as GridDataItem;
                for (int i = 3; i < dtMapping.Columns.Count; i++)
                {
                    CheckBox chkbox = (CheckBox)dItem[dtMapping.Columns[i].ColumnName].Controls[0];
                    chkbox.ToolTip = "Select this template";
                    chkbox.Enabled = true;
                    chkbox.AutoPostBack = true;
                    chkbox.CheckedChanged += new EventHandler(cbxReader_CheckedChanged);
                }
            }           
        }
 void cbxReader_CheckedChanged(object sender, EventArgs e)
        {
            loadSelectedTemplates();
        }
private DataTable loadMappingGrid()
        {
            try
            {
                dtMapping = Proxy.DmAppointments.GetPracticeAppointmentReminderTemplatesMapping(this.selectedPracticeId);
                for (int j = 3; j < dtMapping.Columns.Count; j++)
                {
                    ChangeColumnDataType(dtMapping, dtMapping.Columns[j].ColumnName, typeof(bool));
                }               
                int count = this.grRemainderMappings.MasterTableView.Columns.Count;
 
                for (int i = 3; i < count; i++)
                {
                    this.grRemainderMappings.MasterTableView.Columns.RemoveAt(3);
                }
                for (int j = 3; j < dtMapping.Columns.Count; j++)
                {
                     if (dtMapping.Columns[j].ColumnName != "AppointmentReasonId" && dtMapping.Columns[j].ColumnName != "ReasonCode" && dtMapping.Columns[j].ColumnName != "Description")
                    {
                        GridCheckBoxColumn checkBoxColumn = new GridCheckBoxColumn();
                        this.grRemainderMappings.MasterTableView.Columns.Add(checkBoxColumn);
                        checkBoxColumn.UniqueName = dtMapping.Columns[j].ColumnName;
                        checkBoxColumn.DataField = dtMapping.Columns[j].ColumnName;         
                        DataRow[] dr = dtTemplate.Select("TemplateId = "+dtMapping.Columns[j].ColumnName +"");
                        if (dr.Length != 0)
                        {
                            string templateName = (string)dr[0][1];
                            checkBoxColumn.HeaderText = templateName; 
                        }                      
                        checkBoxColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center;
                    }
                }
            }
            catch (Exception ex)
            {
             this.errorMessage("Error while loading templates for practice", ex.Message, ex.StackTrace);
            }
            return dtMapping;
        }
 
 protected void Page_Load(object sender, EventArgs e)
        {
            try
            {              
                if (!this.IsPostBack)
                {                   
                    grRemainderTemplates.DataSource = loadTemplatesGrid();
                    grRemainderTemplates.DataBind();
                    grRemainderMappings.DataSource = loadMappingGrid();
                    grRemainderMappings.DataBind();
                }
            }
            catch (Exception ex)
            {
                 
            }
        }

Thanks in advance.

Regards,

Rajesh.

rajesh
Top achievements
Rank 1
 answered on 26 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?