Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
hi all

i am using radupload in my webform
i want to initiate upload after some process to happen

e.g.
i am having a database named dataemp
in that a table tb1
having fields
id = auto number
name = text
address = text
photodir = text
photoname = text

now what i want to do is that after filling form
name: textbox
address: textbox
photo: radupload

when user fills the form
after that he clicks submit button
at that time
insert name and address in database
get id from dataemp.tb1

and then in picture directory at server i want to create a directory named id(fetched from dataemp.tb1)
and then i want radupload to upload file in that directory i.e picture/<id>/

all of the things i have done but having some problem that process flow should be
  1. insert into database
  2. get id from database
  3. create dir
  4. initiate upload


please needed help ASAP
Vesko
Top achievements
Rank 2
 answered on 10 Feb 2010
5 answers
433 views

Forum,

I have been unable to find a solution for PageSizeChanged Event for Detail Tables.  The below two code snippets show the RadGrid PageSizeChanged event functionality for Master Table PageSizeChange event.  I am using this functionality for User Profile settings and need the Detail Tables.  Let me know if there is a solution for this issue...

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="edsValuation" GridLines="None" 
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" AllowFilteringByColumn="true" 
        OnPageSizeChanged="RadGrid1_PageSizeChanged"   
        PagerStyle-AlwaysVisible="true">  
</Format Code Block> 
 
 
protected void RadGrid1_PageSizeChanged(object source, GridPageSizeChangedEventArgs e)  
        {  
            Profile.LayoutProfile.StoreGridTableViewPageSize(RadGrid1.MasterTableView, e.NewPageSize);  
        } 

Thanks,
Bryan

Telerik.Web.UI - 2009.2.826.35

Pavlina
Telerik team
 answered on 10 Feb 2010
2 answers
171 views
I'm using a RadDateTimePicker control and in my app the user can configure whether to allow Date and Time, Date only or Time only. I am able to set the Date popup and Time popup as hidden when needed, but I can't figure out how to hide the Date or Time in the input portion of the control. Is this possible, or do I need to use 3 controls to achieve this (DateTimePicker, DatePicker and TimePicker)?

Thanks,
Lucas
Lucas Harron
Top achievements
Rank 1
 answered on 10 Feb 2010
2 answers
243 views
I have a Radtreeview that sits inside a RadGrid. For some reason the expand/collapse buttons of the Treeview are not working. I can expand the Treeview initially, however the NodeExpand event never fires.(a postback does occur to the server, and I have several buttons on the node that work also.) Once the node has been expanded, the collapse button stops functioning, and clicking on it does nothing.(no postback to server). I have the ExpandMode set to ServerSide. However, if I change the Expandmode to Clientside it continues to work. I really need the control to work with ExpandMode set to serverside, to reduce the loading for large Tree's
Aaron Mell
Top achievements
Rank 1
 answered on 10 Feb 2010
9 answers
395 views
I'm binded the result of a wcf service call to a grid on the client side. All good. I'm also trying to put tooltips on various columns in the grid (also clientside). Putting the tooltips on isn't the problem. The problem starts when I go to page 2. The tooltip IDs for page 1 still exist and so the tooltip breaks. So question is how do you remove the tooltips from the tooltipmanager on the clientside. I've seen the way to so this on the server side i.e. RadToolTipManager1.TargetControls.Clear(); But there doesn't seem to be an equivalent on the client side.
Any help would be appreciated.
Thanks
Svetlina Anati
Telerik team
 answered on 10 Feb 2010
1 answer
122 views
Hi,

I had a group by grid working well and then added a nested view to allow extra details to be displayed for a selected item.  It all works - expanding collapsing groups until I expand one of the nested views - then the group expansion/collapse is broken until I refresh the view.

Any ideas?  Here's a portion of the code...

 

 

        <telerik:RadGrid ID="HitRadGrid" runat="server" 
            AllowCustomPaging="True" 
            AllowMultiRowSelection="True"   
            AllowPaging="True"   
            AllowSorting="False"   
            AutoGenerateColumns="False" 
            ShowGroupPanel = "false" 
            SortingSettings-EnableSkinSortStyles="false" 
            SortingSettings-SortedAscToolTip = "Ascending" OnItemDataBound="GridItemDataBound" 
            SortingSettings-SortedDescToolTip="Descending" GridLines="None"   
            Skin="Web20">  
            <PagerStyle Mode="NextPrevAndNumeric" ></PagerStyle>  
            <MasterTableView  
                AutoGenerateColumns="false"   
                AllowSorting="false" GroupLoadMode="Client" 
                AllowCustomSorting="true"   
                AllowMultiColumnSorting="true"   
                ClientDataKeyNames="Reference" 
                DataKeyNames="Reference" AllowNaturalSort="False">  
                <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="Year" />                             
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="Year" SortOrder="Descending"/>                           
                        </GroupByFields> 
                    </telerik:GridGroupByExpression> 
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="Author" />                           
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="Author" SortOrder="Ascending"/>                              
                        </GroupByFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
                <Columns> 
                    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">  
                        <HeaderStyle Width="32px" /> 
                    </telerik:GridClientSelectColumn> 
                    <telerik:GridHyperLinkColumn UniqueName="TitleColumn" DataTextField="Title" HeaderText="Title" DataNavigateUrlFields="Reference"></telerik:GridHyperLinkColumn> 
                    <telerik:GridBoundColumn UniqueName="AuthorColumn" DataField="AUTHOR" HeaderText="Author" /> 
                    <telerik:GridBoundColumn UniqueName="DateColumn" DataField="DATE" HeaderText="Date" /> 
                    <telerik:GridHyperLinkColumn UniqueName="RelatedColumn" Text="Related..." DataNavigateUrlFields="Related"></telerik:GridHyperLinkColumn> 
                </Columns> 
                <NestedViewSettings> 
                    <ParentTableRelation> 
                        <telerik:GridRelationFields DetailKeyField="Reference" MasterKeyField="Reference" /> 
                    </ParentTableRelation> 
                </NestedViewSettings> 
                <NestedViewTemplate> 
                <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">  
                    <div class="contactWrap">  
                        <fieldset style="padding: 10px;">  
                            <legend style="padding: 5px;"><b>Detail info for document:&nbsp; &nbsp;<%#Eval("Title") %></b>  
                            </legend> 
                            <table> 
                                <tbody> 
                                    <tr> 
                                        <td> 
                                            <table> 
                                                <tbody> 
                                                    <tr> 
                                                        <td> 
                                                            Reference:  
                                                        </td> 
                                                        <td> 
                                                            <%#Eval("reference") %> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            Location:  
                                                        </td> 
                                                        <td> 
                                                            <%#Eval("LOCATION") %> 
                                                        </td> 
                                                    </tr> 
 
                                                </tbody> 
                                            </table> 
                                        </td> 
                                    </tr> 
                                </tbody> 
                            </table> 
                        </fieldset> 
                    </div> 
                </asp:Panel> 
                </NestedViewTemplate> 
                <NoRecordsTemplate> 
                    No Results Found  
                </NoRecordsTemplate> 
            </MasterTableView> 
            <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" AllowGroupExpandCollapse="true" > 
                <Resizing AllowColumnResize="true" EnableRealTimeResize="true" /> 
                <Selecting AllowRowSelect="true"></Selecting> 
            </ClientSettings> 
            <SortingSettings EnableSkinSortStyles="False" SortedAscToolTip="Ascending"   
                SortedDescToolTip="Descending" /> 
        </telerik:RadGrid> 
 
        <div class="searchMsgDiv">  
            <asp:Label ID="MessageLabel" runat="server" EnableViewState="false" Visible="false" /> 
        </div> 
    </asp:Panel> 
</div> 

 

Radoslav
Telerik team
 answered on 10 Feb 2010
2 answers
110 views
Hi,
I know you can enter totals in the footer row
Dim boundItem As GridFooterItem = CType(e.Item, GridFooterItem)  
dim str as String = "200.00" 
boundItem("SubTotal").Text = str  
 
but I need to show the taxes as well as the shipping costs and a Grand total. The taxes need to be dynamic as clients will have to set up their own taxes. Is it possible to put a repeater in the footer of a radgrid. I know it can be done by concatenating a string with <br> tags but there must be a better way.
This is what I want to achieve:

Total:             $200.00
P.S.T.:             $16.00
G.S.T.:             $10.00
Shipping:         $21.00
Grand Total:  $247.00
Rob Venable
Top achievements
Rank 1
 answered on 10 Feb 2010
1 answer
64 views
Hi, I am using RadEditor version 2009.3.1016 and I get this issue infrequently in IE8. Is this common? Has it been addressed in a later version. It looks like the height 100% on the cell wrapping the content area is calculating it size before the toolbars are loaded, but sometimes the toolbars load first. I am not positive however. Thanks!

Rumen
Telerik team
 answered on 10 Feb 2010
8 answers
162 views
Hello,

In our project we have background image and color defined for the BODY tag within global stylesheet. When I put RAD Editor on the page the text area of the editor inherits image and background color. How to specify different image/color for the text area of the editor?

I've tried to modify EditorContentArea.css to specify those attributes but it doesn't seem to work.

Thank you.
Rumen
Telerik team
 answered on 10 Feb 2010
40 answers
3.5K+ views
Has anyone seen the following error before?  It comes up randomly when opening a RadWindow, usually after building a project/solution.  I have not been able to track down what causes it to appear.

Server Error in '/XXX/YYY' Application.

Value cannot be null or empty.
Parameter name: handler

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: handler

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 
[ArgumentException: Value cannot be null or empty.
Parameter name: handler]
   System.Web.UI.ScriptComponentDescriptor.AddEvent(String name, String handler) +187
   Telerik.Web.ScriptObjectBuilder.DescribeComponent(Object instance, ScriptComponentDescriptor descriptor, IUrlResolutionService urlResolver, IControlResolver controlResolver) +1029
   Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(WebControl control) +115
   Telerik.Web.UI.RadWebControl.GetScriptDescriptors() +5
   Telerik.Web.UI.RadWebControl.System.Web.UI.IScriptControl.GetScriptDescriptors() +10
   System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +92
   System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) +22
   Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() +24
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +33
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +52
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +198
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +189
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +25
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +167
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +217
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +52
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +198
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +189
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +25
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +52
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +198
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +594
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +88
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +25
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +52
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +198
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5792

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

Yavor
Telerik team
 answered on 10 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?