Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
540 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
219 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
1 answer
360 views

We are trying to update our Excel exports by changing the Export Format to XLSX, due to the current issue with exporting RadGrid to HTML - http://www.telerik.com/forums/html-based-export-format-is-not-working-in-excel-2010

However, I am unable to export RadGrid Template Columns containing RadNumericTextBox fields.   The Excel cells return blank.  How can I get the export to show the values on screen.

I have tried to set the GridItem Text value during ItemDataBound as shown in this example:  http://www.telerik.com/forums/export-excel-gridtemplatecolumn-radcombobox#-N46Be62GESFQDNwu0-vbA

but it does not affect the Export.    

 

Any help is appreciated, 

Thanks.

 

Kostadin
Telerik team
 answered on 26 Jul 2016
4 answers
180 views

Hello,

I am using an telerik editor in my project.

I have placed a table with 6 rows and 6 columns. Have selected middle 3 rows for changing an alignment.

On aligning left\right\center it align only first and last rows among the selected tds in a table.

I want to align all the selected text in tds to the specific alignment, which is not working.

Please find the attached file for the screenshot of alignment issue.

Kindly help.

 

Nandita
Top achievements
Rank 1
 answered on 26 Jul 2016
2 answers
136 views

I have a list of tiles that get created dynamically and I want to display them in a left to right order but when adding the tiles the outcome is as below.

It does not fill the first row and then proceed to the next one, it seems to do two tiles across, two tiles down and then it repeats.

If I add TileRows="1" then it enumerates all tiles on the same row, I want it to drop to the next row once it reaches the right edge of the screen.

How do I get the correct behavior?

Silviu
Top achievements
Rank 1
 answered on 26 Jul 2016
1 answer
71 views

I want to create a radgrid for student gpa's per semester and the yearly cumulative. It would look like this


Academic Term         GPA
Detailed GPA
Fall 2014-2015       3.00
Springs 2014-2015    3.5
Cumulative GPA 
2014-2015 4

The data will come from SQL server
I can't seem to figure out how to do this with a radgrid.  Is it possible?

I haven't gotten any working files.  

Thanks

Pierre
Top achievements
Rank 1
 answered on 26 Jul 2016
6 answers
342 views

Hi,

I'm creating a RadWindow from the code behind and adding some controls via the ContentContainer.  When I run the page up I can see that the window exists on the page along with an inner div (called C) that contains all of my controls.  However when click the button to display the window it appears empty.  All formatting such as title, size behaviours etc are looking correct on the window.  It just has no content.

I have got ReloadOnShow set to false so there is no danger of it clearing the data.

Anything else that I might have missed that could cause this?  Not posting code at this stage as it is part of a very complex generation tool that I am working on and getting an appropriate small snippet of code would be tricky.  

Regards

Jon

 

Jon
Top achievements
Rank 1
 answered on 26 Jul 2016
1 answer
163 views

hi all

I want to check checkbox column in parent row and update column in  rows in  child grid

example:when check hasbeakfast column is true then child rows in breakfast column to 1

please Attention  image attachment 

Konstantin Dikov
Telerik team
 answered on 26 Jul 2016
3 answers
123 views

Hi Telerik!

I wounder If it Possible to assign two or more different details tables to one grid?

actually I want to have conditional details tables depends on master's selected row that makes me able to sweep theme base on Data key name's value of master.

Pierre
Top achievements
Rank 1
 answered on 26 Jul 2016
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?