hi,
I am using radwindow but when it opens then some part of border is not visible.
As you can see attached image in which "Search" radwindow is opened but its bottom-right-corner border is invisible.
Behind the "Search" radwindow there is light blue colored editor, its basically IBM Daeja Viewone plug-in.
If i move this "Search" radwindow away from DaejaViewone then border appears.
Also when i set "ShowContentDuringLoad" property "true" then also border appears even if radwindow opens over DaejaViewone.
So please provide me the solution for getting visible radwindow border over Daeja Viewone.
<CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true"></CommandItemSettings>
I'm having a problem with the grid of the RadFileExplorer not refreshing after I've created a new directory and added it to the viewpaths and treeview of the fileexplorer. What I'm trying to accomplish is to create a directory for a file to be uploaded by the RadFileExplorer, but I want to prefix the directory name with the current system date. I'm using a RadTextBox to allow the user to enter the variable portion of the directory name. The fileexplorer grid will refresh as expected until after I create the new directory. Once I create the new directory, the grid does not refresh. I've searched for and found possible solutions in the forums, like using the clearFolderCache and refresh methods, but they did not work. Any Ideas?
The page element looks like the following:
<telerik:RadTextBox ID="RadDirSuffix" runat="server" OnTextChanged="RadDirSuffix_TextChanged" AutoPostBack="True" LabelWidth="64px" Resize="None" Width="160px"></telerik:RadTextBox>
Click on Upload to browse for the file you wish to upload.
<telerik:RadFileExplorer Runat="server" ID="RadFileExplorer1" OnItemCommand="RadFileExplorer1_ItemCommand" OnClientFolderChange="OnClientFolderChange" ></telerik:RadFileExplorer>
and the code behind is as follows:
protected void RadDirSuffix_TextChanged(object sender, EventArgs e)
{
RadTextBox tb = (RadTextBox)sender;
string userdir = "Safeco";
string targetdir = Properties.Settings.Default.TargetDirectory + "/" + userdir + "/" + FilePrefix.Text + tb.Text;
// Check to see if the directory exists and create it if not
if (!(Directory.Exists(Server.MapPath(targetdir))))
{
Directory.CreateDirectory(Server.MapPath(targetdir));
}
// point the telerik file explorer to the new directory
RadFileExplorer1.Configuration.ViewPaths[0] = targetdir;
RadFileExplorer1.Configuration.UploadPaths[0] = targetdir;
RadFileExplorer1.Configuration.DeletePaths[0] = targetdir;
// add new directory to treeview
RadTreeNode root = RadFileExplorer1.TreeView.Nodes[0];
RadTreeNode newDir = new RadTreeNode();
newDir.Text = FilePrefix.Text + tb.Text;
newDir.Selected = true;
root.Nodes.Add(newDir);
}

How set the first item in my RadComboBox font.bold = true when i call "RadComboBox1_SelectedIndexChanged"?
I dont now what the RadComboBoxItem have text or value. Load dynamic....
Only that i want server side set the first item font bold to true, but first when i call SelectedIndexChanged
Hi,
I have to design a "send mail functionality" using Telerik Rad Grid. I want 4 columns in it.
1st Column: under Edit Item Template: "To"
2nd Column: under Edit Item Template: "CC"
3rd column: under Edit Item Template: "Subject"
4th Column: under Edit Item Template: "Content/Msg"
When I click on "Add" button, I shall able to manually enter above 4 fields in "Edit Item Template" of Rad Grid Template columns.
When I click on "Save" button these columns should be visible inside Rad Grid "Item template/Columns"
I tried to design the .aspx code, based on functionality:
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><body> <form id="form1" runat="server"> <div><telerik:RadGrid ID="RGGST" runat="server" AutoGenerateColumns="false"> <mastertableview commanditemdisplay="None" autogeneratecolumns="false" datakeynames="MailID" insertitempageindexaction="ShowItemOnCurrentPage" ShowFooter="True"> <CommandItemSettings AddNewRecordText="New" /> <Columns> <telerik:GridTemplateColumn UniqueName="MailTo" HeaderText="ID"> <ItemTemplate> <asp:Label ID="DeptProject" Text='<%# Eval("ChatTo") %>' runat="server"></asp:Label> </ItemTemplate> <EditItemTemplate> <wssawc:PeopleEditor AllowEmpty="true" ValidatorEnabled="true" ID="peTo" runat="server" ShowCreateButtonInActiveDirectoryAccountCreationMode="true" SelectionSet="User" SharePointGroup="To" Width="275px" MultiSelect="true" AutoPostBack="false" CommaSeparatedAccounts='<%# Bind("ChatTo") %>' /> <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="To is required." ClientValidationFunction ="validateSecond" EnableClientScript="true" Display="None" ControlToValidate="peTo" SetFocusOnError="true"></asp:CustomValidator> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="MailCc" HeaderText="Project/Phase/Dept Code"> <ItemTemplate> <asp:Label ID="ProjPhaseDeptCode" Text='<%# Eval("ChatCc") %>' runat="server"></asp:Label> </ItemTemplate> <EditItemTemplate> <wssawc:PeopleEditor AllowEmpty="true" ValidatorEnabled="true" ID="peCc" runat="server" ShowCreateButtonInActiveDirectoryAccountCreationMode="true" SelectionSet="User" SharePointGroup="Cc" Width="275px" MultiSelect="true" AutoPostBack="false" CommaSeparatedAccounts='<%# Bind("ChatTo") %>' /> <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="To is required." ClientValidationFunction ="validateSecond" EnableClientScript="true" Display="None" ControlToValidate="peCc" SetFocusOnError="true"></asp:CustomValidator> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="MailSubject" HeaderText="Subject"> <ItemTemplate> <asp:Label ID="GSTTaxCode" Text='<%# Eval("ChatSubject") %>' runat="server"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtChatSubj" runat="server"></asp:TextBox> <%--<RequiredFieldValidator ForeColor="Red" Text="*This field is required"></RequiredFieldValidator>--%> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="MailContent" HeaderText="Content"> <ItemTemplate> <asp:Label ID="GSTTaxCode" Text='<%# Eval("ChatContent") %>' runat="server"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtChatSubj" runat="server"></asp:TextBox> <%--<RequiredFieldValidator ForeColor="Red" Text="*This field is required"></RequiredFieldValidator>--%> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings> <EditColumn ButtonType="ImageButton" /> </EditFormSettings> <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox" /> </mastertableview> </telerik:RadGrid> </div> </form></body>Please reply how to achieve it? Thanks in advance.
I am using Telerik RadGrid in my project.
I have a "Datetime" column (CreatedDate) in RadGrid, in which records are shown from SQL Database using DataSource.
<asp:ObjectDataSource ID="odsDocumentHistoryAdmin" runat="server" SelectMethod="Query" TypeName="atQuest.Projects.ABC.IPRRequest" SortParameterName="orderBy"> <SelectParameters> <asp:ControlParameter ControlID="ddlStatus" Name="status" PropertyName="SelectedValue" Type="Int32" ConvertEmptyStringToNull="true" /> <asp:ControlParameter ControlID="txtSearch" Name="searchValue" PropertyName="Text" Type="String" ConvertEmptyStringToNull="true" /> </SelectParameters></asp:ObjectDataSource><telerik:RadGrid ID="qgDocumentHistoryAdmin" runat="server" DataSourceID="odsDocumentHistoryAdmin" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" CellSpacing="0" GridLines="None" Width="100%" Skin="Outlook"> <ClientSettings AllowDragToGroup="True" /> <GroupingSettings CaseSensitive="false"></GroupingSettings> <MasterTableView AllowFilteringByColumn="true" AllowMultiColumnSorting="false" AutoGenerateColumns="false" CommandItemDisplay="Top" DataKeyNames="RequisitionNo" EnableGroupsExpandAll="true" GroupLoadMode="Client" PageSize="50"> <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="true" /> <SortExpressions> <telerik:GridSortExpression FieldName="RequisitionNo" SortOrder="Descending" /> </SortExpressions> <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox" Position="Bottom" PageSizes="50,100,150,200" /> <Columns> <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Submit Date" SortExpression="CreatedDate" UniqueName="CreatedDate" FilterDelay="2000" ShowFilterIcon="false" DataFormatString="{0: dd/MM/yyyy hh:mm:ss tt}"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ExportSettings SuppressColumnDataFormatStrings="True" IgnorePaging="True" ExportOnlyData="True" Excel-Format="ExcelML" OpenInNewWindow="True" FileName="eAPDocHistory" Excel-FileExtension="xls"> </ExportSettings> </telerik:RadGrid>Few records in Database "DateTime" column have NULL value and few records have proper date and time.
When I run my Web Page, everytime I get "01/01/0001 12:00:00 AM" datetime format in RadGrid "DateTime" column, for all the records.
Despite of proper records in Database, output is not as per expectation.
I am new to ASP.NET as well as Telerik Controls. Please reply what I am missing in my code.
Thanks in advance.
Hi all, I wanted to use a radgrid as a way to enter data for a couple columns (Using DropDown's) and the CommandItem as the button to insert new rows.
I don't want to attach a Datasource to this, I just want to enter data, then loop through the rows and insert to SQL. I saw other posts about this with no answer or links to broken pages.
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateEditColumn="True" CellSpacing="0" GridLines="None">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataSourceID="sdsDisks">
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridDropDownColumn FilterControlAltText="Filter Disk_Speed column" HeaderText="Disk Speed" UniqueName="Disk_Speed">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridDropDownColumn>
<telerik:GridDropDownColumn FilterControlAltText="Filter Disk_Size_In_GB column" HeaderText="Disk Size in GB" UniqueName="Disk_Size_In_GB">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridDropDownColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
hi,
i want to add some custom information in image manager upload panel. in image manager upload panel ,there is information like max file size allowed,File extension allowed. i also want add some message below or above this message and i want to remove override check box because i always rename the uploaded file to unique name . please see the attachment.
how can we do that ?
Thanks on advance.
BesT LoLo

GridDropDownColumn - is it possible to set datasource instead of datasourceID?
In the sample I see
DataSourceID="SqlDataSource4"
But I'd like to bind the column in the code behind.
Our situation is a little unique. We have developed a framework which allows us to create dynamic grids that load based on the customer's needs and everything is generated on the pageinit and then loaded into a placeholder.
Right now we have to bind our dropdowns in the itemdatabound, which works but we could easily build it all in if we could set the datasource rather than just a datasourceid (but maybe there's a solution?)
Here's our method that creates the dropdown column (method is called in a foreach loop that loops through each column that needs to be generated, the code below is just one method of many that generates different column controls):
/// <summary>/// Generates a dropdown field/// </summary>/// <param name="grid">radgrid where column is added</param>/// <param name="column">column properties</param>private static void CreateDropdownCol(RadGrid grid, SCSowFormColumn column){ List<TableStructure> testList = new List<TableStructure>(); GridDropDownColumn col = new GridDropDownColumn(); col.UniqueName = column.SCSFC_Name; col.DataField = column.SCSFC_Name; col.HeaderText = column.SCSFC_ColumnHeaders; col.FilterControlWidth = Unit.Pixel(column.SCSFC_Width - 35); col.HeaderStyle.Width = Unit.Pixel(column.SCSFC_Width); col.AllowFiltering = column.SCSFC_AllowFilter; if (column.SCSFC_Required) { col.ColumnValidationSettings.EnableRequiredFieldValidation = column.SCSFC_Required; col.ColumnValidationSettings.RequiredFieldValidator.InitialValue = "(Select...)";//initial value is the text that is displayed col.ColumnValidationSettings.RequiredFieldValidator.ErrorMessage = " *Required"; col.ColumnValidationSettings.RequiredFieldValidator.Display = ValidatorDisplay.Dynamic; col.ColumnValidationSettings.RequiredFieldValidator.CssClass = "IPROD_ERROR_MESSAGE"; } //checkto see if the column should be shown in itemview mode col.Display = !column.SCSFC_DoNotDisplay; //check to see if the column should be shown in edit mode col.ReadOnly = column.SCSFC_ReadOnly; //WOULD BE NICE IF WE COULD DO:
//List<TestList> list = new List<TestList>();
//col.DataSource = list;
//col.ListTextField = "Name";
//col.ListValueField = "ID";
//multi column single line edit forms col.EditFormColumnIndex = column.SCSFC_ColumnIndex; grid.MasterTableView.Columns.Add(col);}
Anyone have any ideas?
