We are evaluating “Telerik RAD Controls for ASP.NET AJAX” for one of our applications. We are planning to use “Telerik RadGrid” widely in all applications. We are trying to implement a functionality using RADGRID, the functionality description is given below.
By clicking on button (Like Save Button), We need to find whether RADGrid has encountered any change in the bind data. This has to be implemented at both client and server side. Please let us know the best approach.
private void DisplayFax()
{
faxImage.ImageUrl = GetRandom();
}
protected void faxImage_OnImageLoading(object sender, ImageEditorLoadingEventArgs e)
{
EditableImage img = new EditableImage(GetMemoryStreamOfFile());
e.Image = img;
e.Cancel = true;
}
<
asp:UpdatePanel
ID
=
"previewFaxUpdatePanel"
runat
=
"server"
UpdateMode
=
"Conditional"
RenderMode
=
"Inline"
>
<
ContentTemplate
>
<
telerik:RadImageEditor
ID
=
"faxImage"
OnImageLoading
=
"faxImage_OnImageLoading"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
Skin
=
"Windows7"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
telerik:RadScheduler
ID
=
"calendarView"
runat
=
"server"
Skin
=
"Office2010Silver"
DataEndField
=
"End"
DataKeyField
=
"VaultID"
DataStartField
=
"Start"
DataSubjectField
=
"Subject"
SelectedView
=
"MonthView"
RowHeight
=
"20px"
TabIndex
=
"4"
ReadOnly
=
"true"
ShowFullTime
=
"true"
Width
=
"100%"
ShowFooter
=
"false"
OnAppointmentCreated
=
"calendarView_AppointmentCreated"
CustomAttributeName
=
"Location"
Height
=
"500px"
>
<
TimelineView
UserSelectable
=
"false"
/>
<
MonthView
VisibleAppointmentsPerDay
=
"4"
/>
</
telerik:RadScheduler
>
Hello Experts,
I am using Radgrid - which as Add a new record.
i am using this code to implement Add New Record:
-----------------------------------------
<CommandItemTemplate >
<asp:Button ID="btnInsertRecord" Text="Insert Record" Runat="server" CommandName="InitInsert" Height = "25" Width="100" Font-Bold="true" ></asp:Button>
</CommandItemTemplate>
-----------------------------------
In the Add mode - The grid columns are displayed in vertical format(one below the other), can we make it to display in Horizontal format....
If possible please give me sample code...
Thanks
var
item = e.get_item()
item.set_text(
'<p class="rcbItemKey"><input type="checkbox">'
+ item.get_value() +
'</p><p class="rcbItemData">'
+ item.get_text() +
'</p>'
);
ChartSeries chartSeries = new ChartSeries("Altitude", ChartSeriesType.Line);
chartSeries.Appearance.ShowLabels =
false;
incrementCount = 1;
for (int i = 0; i < listData.Count; i = i + incrementCount)
{
chartSeries.AddItem(
new ChartSeriesItem(listData[i].x, listData[i].y));
}
RadChart2.AddChartSeries(chartSeries);
RadChart2.ChartTitle.TextBlock.Text = title;
RadChart2.PlotArea.XAxis.AxisLabel.TextBlock.Text =
"Distance (Miles)";
RadChart2.PlotArea.XAxis.AxisLabel.Visible =
true;
RadChart2.PlotArea.XAxis.IsZeroBased =
true;
RadChart2.PlotArea.YAxis.AxisLabel.TextBlock.Text = yAxisLabel;
RadChart2.PlotArea.YAxis.AxisLabel.Visible =
true;
RadChart2.PlotArea.YAxis.IsZeroBased =
false;