I want to set a skinid for only raddatepicker and raddatetimepicker.
As per the documentation, it is possible to specify not only the global value for skin but per control skin values
<
add key="Telerik.Calendar.Skin" value="Outlook" />
and
<
add key="Telerik.RadDatePicker.Skin" value="Outlook" />
and
<
add key="Telerik.RadDateTimePicker.Skin" value="Outlook" />
but none of these settings have worked.

Hi Telerik Team,
I am using RadFile Upload, i cant able to set the file name property of the radupload,because it is read only. but my situation is i have multiple rad upload to upload multiple files. here i have all my files which have to be uploaded in the same path. so what i need is when user browse for the first file in the first rad upload i want the other radupload filename to be filled automatically For eg: in tab file upload when user browses the tab its supporting files which are at the same location have to be automatically filled at the filenames of the other radupload.
|
|
public class AppTemplate : ITemplate
{
private DataTable dtfinalResult = new DataTable();
private ScriptManager _ScriptManager;
public AppTemplate(DataTable dtResult, ScriptManager ScriptManager)
{
dtfinalResult = dtResult.Copy();
_ScriptManager = ScriptManager;
}
public void InstantiateIn(Control container)
{
ImageButton imgexport = new ImageButton();
imgexport.CommandName = "Export";
imgexport.ImageUrl = "/_layouts/images/smallOutlook.gif";
imgexport.Width = new Unit(20);
//Exclude from the Ajax
//_ScriptManager.RegisterPostBackControl(imgexport);
//imgexport.Attributes.Add("onclick", string.Format("realPostBack(this, \"\"); return false;"));
//container.Controls.Add(imgexport);
Literal subject = new Literal();
subject.DataBinding += subject_DataBinding;
container.Controls.Add(subject);
CalendarPlus calendarplus = new CalendarPlus();
}
private void subject_DataBinding(object sender, EventArgs e)
{
Literal subject = (Literal)sender;
IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer;
//Access the appointment object and set its AllowEdit property:
SchedulerAppointmentContainer aptCont = (SchedulerAppointmentContainer)subject.Parent;
Appointment app = aptCont.Appointment;
int APPID = int.Parse(app.ID.ToString());
app.AllowEdit = false;
DataView dvFinalresult = dtfinalResult.DefaultView;
dvFinalresult.RowFilter = "FieldID=" + APPID;
DataTable dtCurrentApp = dvFinalresult.ToTable();
DateTime dtevent = DateTime.Parse(dtCurrentApp.Rows[0]["EventDate"].ToString());
string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject"));
if (dtCurrentApp.Rows.Count > 0)
{
subject.Text = "<span id=\"spanID\" curDivDate=\"" + dtevent.ToString().Replace("/","_").Replace(" ","_")+ "\" title='' onmouseover=\"wsc_showmenu(this); return false\" ><A HREF=\"javascript:void(window.open('" + dtCurrentApp.Rows[0]["URL"].ToString().Trim() + "'))\">" + strSubject + "</a></span>";
}
else
{
subject.Text = strSubject;
}
}
}
| <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"> |
| <HeaderTemplate> |
| <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| Protected Sub ToggleRowSelection(ByVal sender As Object, ByVal e As EventArgs) |
| CType(CType(sender, CheckBox).Parent.Parent, GridItem).Selected = CType(sender, CheckBox).Checked |
| Dim State As String = CType(RadGrid1.MasterTableView.Items(0).FindControl("CheckBox1"), CheckBox).Checked.ToString |
| If State = "True" Then |
| SqlDataSourceArticulos.UpdateParameters(0).DefaultValue = 1 |
| SqlDataSourceArticulos.UpdateParameters(1).DefaultValue = RadGrid1.SelectedValues("Solicitud") |
| SqlDataSourceArticulos.UpdateParameters(2).DefaultValue = RadGrid1.SelectedValues("NumPartida") |
| SqlDataSourceArticulos.Update() |
| Else |
| SqlDataSourceArticulos.UpdateParameters(0).DefaultValue = 0 |
| SqlDataSourceArticulos.UpdateParameters(1).DefaultValue = RadGrid1.SelectedValues("Solicitud") |
| SqlDataSourceArticulos.UpdateParameters(2).DefaultValue = RadGrid1.SelectedValues("NumPartida") |
| SqlDataSourceArticulos.Update() |
| End If |
| RadGrid1.Rebind() |
| CType(RadGrid1.MasterTableView.Items(0).FindControl("CheckBox1"), CheckBox).Checked = State |
| End Sub |
| <telerik:GridTemplateColumn AllowFiltering="false" |
| HeaderStyle-Width="25px" |
| ItemStyle-Width="25px" |
| UniqueName="QuickViewColumn"> |
| <ItemTemplate> |
| <asp:HyperLink runat="server" ID="hl1" style="text-decoration:underline; |
| color:Blue; |
| cursor:pointer;">view |
| </asp:HyperLink> |
| <telerik:RadToolTip ID="rtt1" runat="server" |
| IsClientID="true" |
| Width="600" |
| Height="300" |
| Skin="WebBlue" |
| Position="TopRight" |
| RelativeTo="Element" |
| Sticky="true" |
| ContentScrolling="Y" |
| ShowCallout="false" |
| OffsetX="20" > |
| <%# DataBinder.Eval(Container, "DataItem.Content") %> |
| </telerik:RadToolTip> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
<
telerik:RadGrid runat="server" ID="rgAgencyUsers" GridLines="None" DataKeyNames="AgencyUserID" DataSourceID="LinqDataSource1" >
<
MasterTableView DataKeyNames="AgencyUserID" AllowMultiColumnSorting="True" CommandItemDisplay="Top">
<
Columns>
.......
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
</
telerik:RadGrid>