Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
331 views

I'm sure I'm missing something simple here! I want to load content from my database into several tabs. I have the standard RadTabStrip and RadMultiPage element set up in the aspx code.

In my backend VB code I want to add several tabs. I have this so far:

Dim tab As RadTab = New RadTab  
Me.TabStrip.Tabs.Add(tab)  
tab.Text = "Tab #3"  
 
' this bit is not doing anything at present  
Dim pageView As RadPageView = New RadPageView  
Me.TabPages.PageViews.Add(pageView)  
 

The tab gets added to the tab strip, but when I click it there is no content area. I've looked through all the examples and haven't seen anything that actually adds the tab content, only the tabs. Can anyone help?

Yana
Telerik team
 answered on 23 Jul 2010
3 answers
144 views
Hey at Telerik

I have a bit of a problem. I have a RadGrid with EditTemplate Columns.

I try to add a new Container and all goes well. I have implemented the GridInsertionObject like you described in order to avoid the missing property error.

When i Cancel the Insert operation i get the same error 'Telerik.WebControls.GridInsertionObject does not contain a property with the name mapviewer_Container1’ Error
I have attached a screendump of the error.

I have includded RadGridContainers_ItemCommand event at the bottom but as you can see from the code in it i have tried different scenarios with no luck.

 

 


<telerik:RadGrid ID="RadGridContainers" runat="server" Skin="Office2007" AllowSorting="True"

 

 

 

GridLines="None" AllowMultiRowSelection="True" OnNeedDataSource="RadGridContainers_NeedDataSource"

 

 

 

Width="800px" Visible="False" ShowStatusBar="True" OnItemCommand="RadGridContainers_ItemCommand"

 

 

 

OnCancelCommand="RadGridContainers_CancelCommand"

 

 

AutoGenerateColumns="False"

 

 

onitemdatabound="RadGridContainers_ItemDataBound">

 

 

 

<MasterTableView AllowMultiColumnSorting="True" CommandItemDisplay="Top"

 

 

 

DataKeyNames="ContainerID" EditMode="InPlace">

 

 

 

<CommandItemSettings AddNewRecordText="Tilfj ny container" RefreshText="Opdatr" />

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn CancelText="Annullr" InsertText="Indst" UpdateText="Opdatr"

 

 

 

EditText="Redigr">

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridBoundColumn DataField="ContainerID" DataType="System.Int32" HeaderText="ContainerID"

 

 

 

ReadOnly="True" SortExpression="ContainerID" UniqueName="ContainerID" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="ContainerIDParent" DataType="System.Int32"

 

 

 

HeaderText="Forldre" SortExpression="ContainerIDParent" UniqueName="ContainerIDParent"

 

 

 

Visible="True">

 

 

 

<EditItemTemplate>

 

 

 

<table cellpadding="0" cellspacing="0">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<img id="rcbContainerIDParentEditImage" src='<%= ImageController.Instance.ImagePathTreeViewRaw %><%# Eval("mapviewer_Container1.mapviewer_Icon.Icon")%>'

 

 

 

alt="" width="16px" height="16px" />

 

 

 

</td>

 

 

 

<td align="left">

 

 

 

<telerik:RadComboBox ID="rcbContainerIDParent" runat="server" Skin="Office2007" MarkFirstMatch="True"

 

 

 

HighlightTemplatedItems="True" DropDownWidth="500px" Height="200px" DataSourceID="LinqDataSource7"

 

 

 

DataTextField="Name" Width="204px" DataValueField="ContainerID"

 

 

 

OnClientSelectedIndexChanged="rcbContainerIDParentSelectedIndexChanged" SelectedValue='<%# Bind("mapviewer_Container1.ContainerID") %>'>

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

<HeaderTemplate>

 

 

 

<table cellpadding="0" cellspacing="0" style="width: 290px;">

 

 

 

<tr>

 

 

 

<td style="width: 30px;">

 

 

 

Id

 

 

</td>

 

 

 

<td style="width: 60px">

 

 

 

Billede

 

 

</td>

 

 

 

<td style="width: 200px;">

 

 

 

Navn

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<table cellpadding="0" cellspacing="0" style="width: 290px;">

 

 

 

<tr>

 

 

 

<td style="width: 30px;">

 

 

 

<%# Eval("ContainerID")%>

 

 

</td>

 

 

 

<td style="width: 60px;">

 

 

 

<img src='<%= ImageController.Instance.ImagePathTreeViewRaw %><%# Eval("mapviewer_Icon.Icon")%>'

 

 

 

alt="" width="16px" height="16px" />

 

 

 

</td>

 

 

 

<td style="width: 200px;">

 

 

 

<%# Eval("Name")%>

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadComboBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<table cellpadding="0" cellspacing="0" border="0">

 

 

 

<tr>

 

 

 

<td style="border: 0;">

 

 

 

<asp:Image ID="rcbIkonEditImageContainer" ImageUrl='<%# ImageController.Instance.ImagePathTreeViewForGridView((string)Eval("mapviewer_container1.mapviewer_Icon.Icon"))%>'

 

 

 

runat="server" Width="16px" Height="16px" />

 

 

 

</td>

 

 

 

<td style="border: 0;">

 

 

 

<asp:Label ID="ContainerIDLabel" runat="server" Text='<%# Eval("mapviewer_container1.Name") %>'></asp:Label>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Navn" SortExpression="Name"

 

 

 

UniqueName="Name">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Level" DataType="System.Int32" HeaderText="Level"

 

 

 

SortExpression="Level" UniqueName="Level" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="IconID" DataType="System.Int32" HeaderText="Ikon"

 

 

 

SortExpression="IconID" UniqueName="IconID" Visible="True">

 

 

 

<EditItemTemplate>

 

 

 

<table cellpadding="0" cellspacing="0">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<img id="rcbIkonEditImage" src='<%= ImageController.Instance.ImagePathTreeViewRaw %><%# Eval("mapviewer_Icon.Icon")%>'

 

 

 

alt="" width="16px" height="16px" />

 

 

 

</td>

 

 

 

<td align="left">

 

 

 

<telerik:RadComboBox ID="rcbIkon" runat="server" Skin="Office2007" MarkFirstMatch="True"

 

 

 

HighlightTemplatedItems="True" DropDownWidth="500px" Height="200px" DataSourceID="LinqDataSource1"

 

 

 

DataTextField="Icon" Width="204px" DataValueField="IconID"

 

 

 

OnClientSelectedIndexChanged="rcbIkonSelectedIndexChanged" SelectedValue='<%# Bind("mapviewer_Icon.IconID") %>'>

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

<HeaderTemplate>

 

 

 

<table cellpadding="0" cellspacing="0" style="width: 190px;">

 

 

 

<tr>

 

 

 

<td style="width: 30px;">

 

 

 

Id

 

 

</td>

 

 

 

<td style="width: 60px;">

 

 

 

Billede

 

 

</td>

 

 

 

<td style="width: 100px">

 

 

 

Filnavn

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<table cellpadding="0" cellspacing="0" style="width: 190px;">

 

 

 

<tr>

 

 

 

<td style="width: 30px;">

 

 

 

<%# Eval("IconID")%>

 

 

</td>

 

 

 

<td style="width: 60px;">

 

 

 

<img src='<%= ImageController.Instance.ImagePathTreeViewRaw %><%# Eval("Icon")%>'

 

 

 

alt="" width="16px" height="16px" />

 

 

 

</td>

 

 

 

<td style="width: 100px;">

 

 

 

<%# Eval("Icon")%>

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadComboBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

<img src='<%= ImageController.Instance.ImagePathTreeViewRaw %><%# Eval("mapviewer_Icon.Icon")%>'

 

 

 

alt="" width="16px" height="16px" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridCheckBoxColumn DataField="Enabled" DataType="System.Boolean" HeaderText="Aktiv"

 

 

 

SortExpression="Enabled" UniqueName="Enabled">

 

 

 

</telerik:GridCheckBoxColumn>

 

 

 

<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Fjern" CommandName="Delete" />

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

 

 

 

protected

 

void RadGridContainers_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == RadGrid.InitInsertCommandName)

 

{

e.Canceled =

true;

 

 

System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

 

layerDataClassesDataContext =

new LayerDataClassesDataContext();

 

newValues[

"mapviewer_Container1.mapviewer_Icon.Icon"] = layerDataClassesDataContext.mapviewer_Icons.First(i => i.IconID.Equals(6));

 

newValues[

"mapviewer_Container1"] = layerDataClassesDataContext.mapviewer_Containers.First(c => c.ContainerIDParent.Equals(null));

 

newValues[

"mapviewer_Icon.Icon"] = layerDataClassesDataContext.mapviewer_Icons.First(i => i.IconID.Equals(6)).Icon;

 

newValues[

"mapviewer_Icon"] = layerDataClassesDataContext.mapviewer_Icons.First(i => i.IconID.Equals(6));

 

e.Item.OwnerTableView.InsertItem(newValues);

 

 

 

//layerDataClassesDataContext = new LayerDataClassesDataContext();

 

 

 

//mapviewer_Container container = new mapviewer_Container();

 

 

 

//container.mapviewer_Container1 = layerDataClassesDataContext.mapviewer_Containers.First(c => c.ContainerIDParent.Equals(null));

 

 

 

//container.mapviewer_Icon = layerDataClassesDataContext.mapviewer_Icons.First(i => i.IconID.Equals(6));

 

 

 

//e.Item.OwnerTableView.InsertItem(container);

 

 

 

}

 

}

Iana Tsolova
Telerik team
 answered on 23 Jul 2010
1 answer
62 views
hi,


i'm new to the telerik controls,  i want to show the ads in rotator, i used the following code but it's not working,
 
the design coding
  <telerik:RadRotator id="radNews" runat="server" ScrollDirection="Up" 
RotatorType="AutomaticAdvance" InitialItemIndex="0"  
ScrollDuration="300" ItemWidth="200px" Width="910px" Height="900px" 
ItemHeight="30px">
<ItemTemplate>
    <asp:Image ID="Image1" ImageUrl='<%#Eval("ImageUrl")%>' runat="server" />
<strong>
<a href='<%#Eva("Url")%>'></a>
</strong>
<br />
<span >Starts:</span>
<span ><%#Eval("PublishedDate")%></span>
<br />
</ItemTemplate>
<SlideShowAnimation Type="Fade" Duration="300" />
</telerik:RadRotator>


i binded the telerik:RadRotator with XML like 
DataSet ds= new DataSet();
ds.ReadXml(Server.MapPath("ad.xml"));
       radNews.DataSource = ds;
        radNews.DataBind();

My XML file is

<Ad>
    <ImageUrl>images\electronic-medical-records-systems.jpg</ImageUrl>
    
<AlternateText>ASP.NET Logo</AlternateText>
    <Keyword>A</Keyword>
  
  <Caption>This is the caption for Ad#1</Caption>
    <Title>Test</Title>
    <TargetDate>2/10/2009</TargetDate>
    <Url>www.telerik.com</Url>
    <NewWindow>True</NewWindow>
    <PublishedDate>11/1/2008</PublishedDate>
  </Ad>


If i click the ad image i want to navigate to the url given.  It's working in asp rotator if i give as target file = "Xml file name" 

Please reply me soon , i'm in need to complete soon,



Shinu
Top achievements
Rank 2
 answered on 23 Jul 2010
1 answer
276 views
Hi,

I am having an issue installing the RadEditor (RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Dev) on a SharePoint 2010 server.

I run the msi as a domain admin, that has full rights to the farm.  The installer runs, I accept the License Agreement, hit next a few times and then watch the status bar fill out.  Then it ends with the following error (see attached screen shot of the error).

I ran the installer again and logged the results of the msi out to a file.  I appended the error from the log to the bottom of this post.

Any help would be great.

Cheers,
Gary

Here is the excerpt from the log that shows the error:

MSI (s) (A4:BC) [09:43:58:033]: Executing op: ActionStart(Name=InstallSPSolution,,)
Action 9:43:58: InstallSPSolution.
MSI (s) (A4:BC) [09:43:58:096]: Executing op: CustomActionSchedule(Action=InstallSPSolution,ActionType=3073,Source=BinaryData,Target=InstallSPSolution,CustomActionData=RadControlsSP.wsp)
MSI (s) (A4:58) [09:43:58:189]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC10B.tmp, Entrypoint: InstallSPSolution
MSI (s) (A4:F4) [09:43:58:189]: Generating random cookie.
MSI (s) (A4:F4) [09:43:58:189]: Created Custom Action Server with PID 5540 (0x15A4).
MSI (s) (A4:BC) [09:43:58:252]: Running as a service.
MSI (s) (A4:BC) [09:43:58:267]: Hello, I'm your 64bit Elevated custom action server.
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSIC10B.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Calling custom action DeployWspOnSharepointCustomAction!DeployWspOnSharepointCustomAction.CustomAction.InstallSPSolution
Begin installing Sharepoint solution.
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Management.Automation.CmdletInvocationException: Cannot access the local farm.

Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again. --->

Microsoft.SharePoint.PowerShell.SPCmdletException: Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate

permissions to access the database before trying again.
   at Microsoft.SharePoint.PowerShell.SPCmdlet.BeginProcessing()
   --- End of inner exception stack trace ---
   at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
   at System.Management.Automation.PipelineNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
   at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
   at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
CustomAction InstallSPSolution returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 9:44:02: InstallFinalize. Return value 3.
MSI (s) (A4:BC) [09:44:02:783]: User policy value 'DisableRollback' is 0
MSI (s) (A4:BC) [09:44:02:783]: Machine policy value 'DisableRollback' is 0

Biliana Ficheva
Telerik team
 answered on 23 Jul 2010
1 answer
97 views

I have site finity 3.7 SP3 and after i installed the latest RAD Ajax  2010.2.713 release, i'm getting this error:

Itemselector.ascx
 <cc:CmsUrlWebEditor id="cmsUrlWebEditor" runat="server" />

Error 3 Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) C:\Program Files\Telerik\Sitefinity3.6\Websites\EM\Sitefinity\Admin\ControlTemplates\Libraries\Dialogs\ItemSelector.ascx 207

Since i expect that this control doesn't exit in Telerik.Web.UI.dll with 2010.2.713 release.

How can i fix a reference to this control on this dll ?

Waiting your support ?

Note: The cc .n itemselector.ascx is refering to this dll:
<%@ Register TagPrefix="cc" Namespace="Telerik.Cms.Web.UI" Assembly="Telerik.Cms" %>

Ivan Dimitrov
Telerik team
 answered on 23 Jul 2010
2 answers
84 views
Hello all,
I have many pages and in all am using RagGrid and contextmenu
is there any way to use the same contextmenu  or to inherit from ?

i need to use my code in all pages
protected override void OnPreRenderComplete(EventArgs e)
{
    base.OnPreRenderComplete(e);
    RadMenuItem item =  RadGrid1.HeaderContextMenu.FindItemByValue("GroupBy");
    RadGrid1.HeaderContextMenu.Items.RemoveAt(0);
    RadGrid1.HeaderContextMenu.Items.Remove(item);
    item = RadGrid1.HeaderContextMenu.FindItemByValue("UnGroupBy");
    RadGrid1.HeaderContextMenu.Items.Remove(item);
}
 any help will be appreciated
sam
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
253 views
Hi all,
    I have a req in which i have to give comma separator to numeric values inside the grid.How can we do this.

Thanks,
A2H
A2H
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
97 views

The code translation tool is not working. Intellisence shows errors; the site won't compile.

Also, don't you need the IsReusable() property?

Yana
Telerik team
 answered on 23 Jul 2010
3 answers
92 views
i used this code:
RadGrid1.MasterTableView.FilterExpression = filterExpression

and get data by this code:
Private Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = From o In en.tblSuggests Select o
End Sub

But, i have a ask.
filter operating is before get data or after Get data ?
my table having 60,000 records.

Iana Tsolova
Telerik team
 answered on 23 Jul 2010
1 answer
140 views
Is it possible to use the GridAttachmentColumn of the RadGrid inside an update panel? I would like to upload the attachments without doing a full postback. If not, do you have any suggestions of doing this with your available components?

Thanks.
Tsvetoslav
Telerik team
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?