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
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.
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.
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.
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?
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
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
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
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.
Hello, I would like to automatically assign colors to event's in my scheduler based on the category of the events. I have a limited number of category of events that are pre identified and exist in my database, I want to assign each category a specific color, and automatically assign the background colors to each event when the user loads up the page and navigates through the schedule. I followed this (http://demos.telerik.com/aspnet-mvc/scheduler/templates) demo however this method isn't working for me because I have a read action that creates my model dynamically and filters on the server side, before rendering the view. I'm working with .NET MVC and views are in razor syntax. Any help or resources would be greatly appreciated.
Thanks