I have 2 RadGrids on the page one above the other
I use data entity for data source and The first RadGrid data source is this
protected void RadGrid1_NeedDataSource(object sender, Web.UI.GridNeedDataSourceEventArgs e)
{
var result = from r in DbContext.LinkAnalysis
where r.LinkAnalysisCreator == dbuser
select r;
RadGrid1.DataSource = result.ToList();
}
The second Rad Grid Data source is this
protected
void
SubjectRadGrid_NeedDataSource(
object
sender, Web.UI.GridNeedDataSourceEventArgs e)
{
var results = from r
in
DbContext.Subjects
where r.LinkAnalysisId == linkId
select r;
SubjectRadGrid.DataSource = results.ToList();
}
When the page first loads the SubjectRadGrid shows no records. This is okay but when a user clocks on one of the row in the RadGrid1 I want SubjectRadGrid to display the child objects for the selected row.
I obtain the "linkId" variable for the second RadGrid using this code
public
void
RadGrid1_SelectedIndexChanged(
object
sender, EventArgs e)
{
GridDataItem item = (GridDataItem)RadGrid1.SelectedItems[0];
string
ID = RadGrid1.SelectedValue.ToString();
//Retrieving primary key field values for selected items
linkId = Convert.ToInt16(ID);
SubjectRadGrid.Rebind();
}
This works works and if I place a break point in the SubjectRadGrid_NeedDataSource code I can see the data, during the Rebind, I need is being pulled. But no data still does not show up in the SubjectRadGrid.
What am I missing here?
Hi,
I would like to build a multi-month calendar, with initially max. 3 columns and as many rows as needed for a given period. That in itself can be accomplished with the MultiViewRows and MultiViewColumns properties of RadCalendar.
However, I would like the calendar-grid to behave 'responsive'. So when the available horizontal space gets narrower than needed for the 3 columns, I would like the calendars that don't fit in the availabel space anymore to 'wrap' to the next line.
Is that possible? And if so, how can it be achieved?
Best regard, Marja Ribbers
Hello, i'm new to this forum..
I have a question: I would like to know how pass data to EditForm.ascx during itemcommand event?
in the code below you can see what i'm trying to do
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled = true;
GridKASKO.EditIndexes.Clear();
e.Item.OwnerTableView.EditFormSettings.UserControlName = "~mypath\\InsertTax.ascx";
// I WANT TO PASS a VALUE INTO InsertTax.ascx
e.Item.OwnerTableView.InsertItem();
}
else if (e.CommandName == RadGrid.EditCommandName)
{
e.Item.OwnerTableView.IsItemInserted = false;
e.Item.OwnerTableView.EditFormSettings.UserControlName = "~mypath\\EditTax.ascx";
}
Thanks in advance,
<telrik:RadTabStrip runat=
"server"
ID=
"uiTabs"
DataSource=
"<%#this.RetrieveSubpageData()%>"
OnDataBinding=
"uiTabs_OnDataBinding"
MultiPageID=
"uiPages"
SelectedIndex=
"0"
DataTextField=
"PageTitle"
>
</telrik:RadTabStrip>
<telrik:RadMultiPage runat=
"server"
ID=
"uiPages"
SelectedIndex=
"0"
>
</telrik:RadMultiPage>
Hi,
Can I add custom MenuItem "Add Permission" to Folder or File of FileExplorer?? and on Click on that Menu Item I want to open a popup or new Window where I can pass the ItemID as querystring or something of selected Folder. Here is my code
<telerik:RadFileExplorer VisibleControls="TreeView,Toolbar,ListView,Grid,FileList,ContextMenus"
runat="server" ID="RadFileExplorer1" OnClientItemSelected="OnClientItemSelected"
EnableOpenFile="true">
</telerik:RadFileExplorer>
protected void Page_Load(object sender, System.EventArgs e)
{
RadFileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.jpeg"};
RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;
RadFileExplorer1.Configuration.ViewPaths = new string[] { "Files" };
RadFileExplorer1.Configuration.UploadPaths = new string[] { "Files" };
RadFileExplorer1.Configuration.DeletePaths = new string[] { "Files" };
}
Hello,
When I upload new image the image is uploaded, but after the upload the ImageManager refreshes and display the warning that the same filename allreday exists: "A file with a name same as the target already exists!".
How can I prevent this? I don't have a file with the same name. I thing that the problem is in refreshing that is happening after upload.
Thanks