Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
119 views
How can I use the values of the additional fields server side?.  I'm basically using the same code as this demo
http://demos.telerik.com/aspnet-ajax/upload/examples/additionalfields/defaultcs.aspx

then using this on the server side but the file.GetFieldValue is not working.  can you tell me what I need to do to get the values on the server side?


foreach (UploadedFile file in _RadAsyncUpload1.UploadedFiles)
            {
                string t = file.FileName;
                string q = file.GetFieldValue("Source");
            }
Ted
Top achievements
Rank 1
 answered on 25 Jan 2011
7 answers
274 views
I have a series of panels in my app.  In one of them, there are some pairs of RadListBoxes, as well as some other Telerik controls.  What's happening is I have a LinkButton which opens the panel containing the Telerik controls via an AJAX call.  This shows the panel and hides the others.  The controls all load fine.  I can interact with the controls via AJAX no problem.  The snag occurs when I click on a button I have set to override the AJAX call and perform a full-page postback, hiding the current panel and showing the original one.  When I click the LinkButton again to show the panel containing the RadListBoxes, they don't render, I only see what looks like an unordered list of the listbox items.  This is also happening with some RadComboBox items.  Please advise.  Thanks.
Dimitar Terziev
Telerik team
 answered on 25 Jan 2011
2 answers
160 views
Hey,

I'm running into some problems with the Calendar.  It's related to applying my own CSS to special days.  I basically populate the Calendar with holidays.  They are given a special css class that just has a different background colour.  I'm also using one of the predefined Skins.

On my page, I pre-select the date for the user.  If the date I'm pre-selecting is also a special day I'm running into some odd CSS issues.  It starts with the selected CSS.  If I hover over that date, it uses the Hover CSS which is correct.    But when I move my mouse off of that date it switches back to the special day CSS instead of the selected CSS.  Is there any way I can get it to keep the selected CSS when I move off of that date.
Paul
Top achievements
Rank 2
 answered on 25 Jan 2011
6 answers
140 views
Quick question: am I right in assuming that there are two different versions of RadEditor that work with SharePoint 2007?
  • the full RadEditor
  • RadEditor for MOSS

We have RadEditor for MOSS on our servers, but would like to know why we cannot use the full version. We use the RadEditor to create content for web pages that do have a couple of web parts on - is that why?

We just need a quick explanation on why we cannot use the RadEditor for ASP.NET AJAX even though we have got a couple of other controls from the suite running on our site.

Thanks.

Cindy Mertens
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
75 views
Hi Telerik Team

I'm new to Telerik controls  and I'm trying to edit and update the row in the nested grid using custom template. However I cannot get it to work properly, every time I click the edit buttom I'm loosing all the data from the nested grid. I'm using advanced binding for this solution because of both grids are bound to the business objects. Also OnUpdate event gets fired when the edit button is clicked but not Update, so not sure how sould I update the grid ?
I've tried to find some answers online but the the only thing that I was able to fing is how to work with the hierarchical grid which is not what I have.

Please download my demo project that describes the problem from the link below . (Readme.txt included)

https://www.adrive.com/public/339ffcb15bfd1d9b596af104366698a8332d93d70ee7c410a4b34f6ff7b15676.html 

Thanks
Maria Ilieva
Telerik team
 answered on 25 Jan 2011
4 answers
88 views
I have a gvidview that I am attempting to set up so that as I hover over the various rows I get a popup(ascx file)  with the info for that row
When I populate the grid and hover over the items I always receive the popup for the first row regardless which row I hover over.
Any thoughts?

Here is the code for the rowdatabound and the OnAjaxUpdate functions.

protected void gvSelected_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Vehicle v = (Vehicle)e.Row.DataItem;
string avinnumber = v.Vin;
VinRadToolTipManager.TargetControls.Add(e.Row.ClientID, avinnumber, true);
}
}

//**************** Passing Wrong value !!!!!!!!!!!!!!!!!!!!!!!!!!

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
Control ctrl = Page.LoadControl("infovin.ascx");
args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
InfoVin details = (InfoVin)ctrl;
details.Avinnumber = args.Value;
}

Here is my ToolTipManager and Grid
<telerik:RadToolTipManager ID="VinRadToolTipManager" runat="server" Position="BottomCenter"
Animation="None" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Mouse" Width="350px"
Height="150px" Style="font-size: 18px; text-align: center; font-family: Arial;"
RenderInPageRoot="true" skin="WebBlue" HideEvent="LeaveToolTip" AutoCloseDelay="0" Sticky="false">
</telerik:RadToolTipManager>

 

 

 

 

<table width = "100%">
    <tr>
       
<td align="center" valign="top"> <asp:Label id="srMessage" Font-Bold="true" ForeColor="Red" runat="server"/>
           
<asp:Panel id="multiResults" runat="server">
               
<table width="100%">
                    <tr>
                       
<td align="center">
                             <asp:Label id="lblMultiGrid" Font-Bold runat="server" />


<asp:GridView ID="gvSelected" runat="server" ItemStyle-VerticalAlign=Top align=left AllowPaging="false" onRowDataBound="gvSelected_RowDataBound" OnRowCreated="gvSelected_RowCreated" OnSelectedIndexChanged="gvSelected_SelectedIndexChanged" PageSize="15" AutoGenerateColumns="False" ShowFooter="false" Width="100%" >

        
<Columns>
           
<asp:BoundField HeaderText="VIN" DataField="Vin" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Year" DataField="Modelyear" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Manufacturer" DataField="Make" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Model" DataField="Model" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Body Style" DataField="Bodystyle" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Coll" DataField="Collsymbol" HeaderStyle-HorizontalAlign="Left"/>    
           
<asp:BoundField HeaderText="Comp" DataField="Compsymbol" HeaderStyle-HorizontalAlign="Left"/>
           
<asp:BoundField HeaderText="VSR" DataField="symbol" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="AntiTheft" DataField="Antitheft" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="Passive Restraint" DataField="Restraint" HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField HeaderText="AntiLock Brakes" DataField="Antilockbrakes" HeaderStyle-HorizontalAlign="Left"/>
        </Columns>
</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</asp:Panel>

 

 

 

 

 

Chuck Lawson
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
100 views
I've been at this for 3 days  and I'm either dense or this isn't as easy as it should be.
If you look at the RadScheduler demo (I attached a snapshot) you will see a PanelBar in the bottom left that displays the users 'calendars'. I need to build this PanelBar, dynamically, from SQL in VB and I cannot get my head around how to do this. I have tried the various demos etc and had varying degrees of luck mostly with binding the children. 
I also would like to create the checkbox item with 'autopostback' set to true but can live with client side code if required.

Can someone point me at a similar effort or supply me a sample of the code I require to do this.

 
Simon
Telerik team
 answered on 25 Jan 2011
3 answers
64 views
Very new to ajax + telerik.  I have a form with rad tree view. I have added server side event handler for NodeCheck in (code behind). The question is how should I make it call back instead of postback. Right now its a postback. 


I have a form with tree view 
 <form id="form1" runat="server">
 <telerik:RadAjaxPanel runat="server" >
            <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Height="110px">
                <Items>
                    <telerik:RadPanelItem runat="server" Text="Search by Sku" Value="SKU">         
                    
                        <Items>
                            <telerik:RadPanelItem>
                            <ContentTemplate>
                            
                                <telerik:RadTreeView   runat="server" ID="treeSku" CheckBoxes="true" OnClientNodeChecking="onNodeChecking" >                                
                                </telerik:RadTreeView>
                               
                            </ContentTemplate>
                            </telerik:RadPanelItem>
                        </Items>              
                        
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem runat="server" Text="Search by Product" Value="Product">
                    
                    </telerik:RadPanelItem>
                    
                </Items>
               
            </telerik:RadPanelBar>
            </telerik:RadAjaxPanel>
</form>


Yana
Telerik team
 answered on 25 Jan 2011
2 answers
145 views
Hi everybody,

I configured my fe control to work on a virtual directory (IIS 6.0 on a WinSRV 2003).
WindowsAuthentication set to True, Impersonation set to True.

I can upload files, create folder, DELETE folder, but I receive a js alert when I try to delete or rename a file. The message say: "The selected file could not be deleted because the application did not have enough permissions. Please contact the administrator."
I give the impersonated user full controls to the folder but nothing ...

private void initFileManager()
{
    var sBPResourcePath = getBPResourcesPath();
    var arBPResourcePaths = new string[] { sBPResourcePath };
 
    rfeFileExplorer.AllowPaging = false;
    rfeFileExplorer.Configuration.DeletePaths = arBPResourcePaths;
    rfeFileExplorer.Configuration.UploadPaths = arBPResourcePaths;
    rfeFileExplorer.Configuration.ViewPaths = arBPResourcePaths;
    rfeFileExplorer.DisplayUpFolderItem = true;
    rfeFileExplorer.EnableCreateNewFolder = true;
    rfeFileExplorer.EnableOpenFile = true;
    //rfeFileExplorer.InitialPath = sBPResourcePath;
    rfeFileExplorer.Language = _sessionInfo.CurrentCultureCode;
    rfeFileExplorer.VisibleControls = GetVisibleControls();
}
 
private FileExplorerControls GetVisibleControls()
{
    FileExplorerControls explorerControls = 0;
 
    // explorerControls |= Telerik.Web.UI.FileExplorer.FileExplorerControls.AddressBox;
 
    explorerControls |= FileExplorerControls.Grid;
 
    explorerControls |= FileExplorerControls.Toolbar;
 
    explorerControls |= FileExplorerControls.TreeView;
 
    explorerControls |= FileExplorerControls.ContextMenus;
 
    return explorerControls;
}
gianemilio redaelli
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
98 views
I am unable to add the command in the serverside code, but I can attach to the dock item clientside.

Is there some function to add a new command item?  I can't see how I would do that in the docs
Pero
Telerik team
 answered on 25 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?