Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
272 views
How would I have some processing of the file take place after, before, or instead of saving the file when I am placing the submit button inside the upload div with the javascript pageLoad function like in the documentation?

I can see how to access the file in the documentation, but this is done in the submit buttons event handler.  How can I do some custom processing on the file if I am placing the submit button inside the upload div with the javascript pageLoad function?

Please help.

Thanks,
Nick
Genady Sergeev
Telerik team
 answered on 24 Jun 2009
4 answers
152 views
Hi,

I tried to add code to define the position to the several docks that I have on the same page, but I'm having some problems.
I used the example on this link: http://www.telerik.com/help/aspnet-ajax/dock_dockcontrolcreation.html because it's similar to what I want to create, but it doesn't work.
My intention is, on the same page, have several docks that are in .ascx files.
On the default page I have a radDockLayout and inside this control I have the .ascx files:

<

 

telerik:RadDockLayout ID="RadDockLayout1" runat="server" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout">

 

 

<uc5:barraLateral ID="BarraLateral1" runat="server" />

 

 

<uc2:TodosConteudos ID="TodosConteudos1" runat="server" />

 

 

<uc3:MeusConteudos ID="MeusConteudos1" runat="server" />

 

 

<uc4:UltimosConteudos ID="UltimosConteudos1" runat="server" />

 

 

</telerik:RadDockLayout>

 



And in the default code page I have the following code:

using

 

System;

 

using

 

System.Collections;

 

using

 

System.Collections.Generic;

 

using

 

System.ComponentModel;

 

using

 

System.Data;

 

using

 

System.Drawing;

 

using

 

System.Web;

 

using

 

System.Web.SessionState;

 

using

 

System.Web.UI;

 

using

 

System.Web.UI.WebControls;

 

using

 

System.Web.UI.HtmlControls;

 

using

 

Telerik.Web.UI;

 

public

 

partial class _Default : System.Web.UI.Page

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

}

 

 

//Store the info about the added docks in the session.

 

 

private List<DockState> CurrentDockStates

 

{

 

get

 

{

 

List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStates"];

 

 

if (Object.Equals(_currentDockStates, null))

 

{

_currentDockStates =

new List<DockState>();

 

Session[

"CurrentDockStates"] = _currentDockStates;

 

}

 

return _currentDockStates;

 

}

 

set

 

{

Session[

"CurrentDockStates"] = value;

 

}

}

 

protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)

 

{

CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();

}

 

protected void Page_Init(object sender, EventArgs e)

 

{

 

for (int i = 0; i < CurrentDockStates.Count; i++)

 

{

 

RadDock dock = new RadDock();

 

dock.ID =

string.Format("RadDock{0}", i);

 

dock.ApplyState(CurrentDockStates[i]);

RadDockLayout1.Controls.Add(dock);

}

}

 

protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)

 

{

 

foreach (DockState state in CurrentDockStates)

 

{

e.Positions[state.UniqueName] = state.DockZoneID;

e.Indices[state.UniqueName] = state.Index;

}

}

}



I don't want to create new docks, I just want to save the position of the docks that are on those .ascx files, but I can't save because they are not on the default page. How can I solve this problem without copy all the code from the .ascx files to the defaul page?
Cátia
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
121 views
Hi All,

There is border that around the all items but excluding the rotor button, 

1) the border only appear when the rotortype is with control buttons
2) the border is assoicated with the skin, when skin change the color change.

I cannot find how to control this border, hide change color or so.

Please advise

Thanks

Jerry
 
Martin
Telerik team
 answered on 24 Jun 2009
1 answer
118 views
Hello,
If I resize a radWindow outside the browser window, it is starting to behave strange.
Have a radWindow in a page, grab one of the borders and take it to the edge of the browser window. continue dragging in that direction. once you pass the browser window bounds, the window id expanding by itself and cant be controlled.

Is this a known issue? Is there a solution to this behavior?

Thanks,
Elad.
Georgi Tunev
Telerik team
 answered on 24 Jun 2009
2 answers
83 views
I am using a treeview with 3 levels of nodes (in the masterpage)
I want to pass the e.Node.Text variable when the user is clicking a node using the code behind method

RadTreeView1_NodeClick
to the sqldatasource select statement that resides in radgrid that is placed the page that uses the above master page.
Any ideas on how to do that? 

Stavros
Top achievements
Rank 1
 answered on 24 Jun 2009
2 answers
144 views
Hi,

I have a grid with export button. I am using Office 2007 skin and font type is "Tahoma". But when i export to word or pdf or excel, default is Times New Roman. Please let me know to keep my grid's font type as it is.

Regards,
Alex
Alex
Top achievements
Rank 1
 answered on 24 Jun 2009
2 answers
116 views
Hi, I have this strange problem.

Trying to add 100% width to the radeditor as follows:

 

Dim leditor As New RadEditor()

 

leditor.Skin =

"Black"

 

leditor.Width =

"100%"

 

leditor.EditModes = EditModes.All

leditor.NewLineBr =

True

 

...

It is simply not possible. When trying to do that I get the following error message:

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:

Line 394:        Dim leditor As New RadEditor()
Line 395:        leditor.Skin = "Black"
Line 396: leditor.Width = "100%"Line 397:        leditor.EditModes = EditModes.All
Line 398:        leditor.NewLineBr = True


Helge
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
90 views
Hi, can some ome help me.

I need to make an update once i select a row, i have a GridTemplateColumn as in Telerik Example (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectrowwithcheckbox/defaultvb.aspx) and I need to update a database field (true/false) once is checked or unchecked. is there a way to do this?


<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
Pavlina
Telerik team
 answered on 24 Jun 2009
2 answers
84 views

Hi,

I have an export function for Word, Excel, CSV and PDF. I already set rgAcquirerCardCurrency.ExportSettings.ExportOnlyData = true;

 

 

But select check box column and AutoGenerateEditColumn are still exporting. Please let me know how to hide this two columns.

<

 

telerik:GridClientSelectColumn/>

 

AutoGenerateEditColumn


Regards,
Alex

Alex
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
141 views

Hi to all,

i would like to set a checkbox to checked after a OnClientSelectedIndexChanged Event triggert by a RadComboBox Control.
All this ClientSide.

I use a RadGrid and in every Row i have a RadComboBox and a Checkbox. After a Index changed in the RadComboBox i would like to set the Checkbox.

My problem is to find the Checkbox or rather to get a instance of this object.

Here are my Code:


        function OnClientSelectedIndexChanged_RowDecision(sender, eventArgs) {  
            var item = eventArgs.get_item();  
 
            var ckhkBox = $telerik.findControl(item.get_itemData().get_element(), "chkbSelected");  
            if (ckhkBox.checked == true) {  
                alert('Checked true');  
 
            }  
            else {  
                alert('Checked false);  
 
            }  
 
        }  
 

            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None" 
                             onneeddatasource="rdgWI_NeedDataSource"   
                             PageSize="8" 
                             AllowSorting="True">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ShowHeadersWhenNoRecords="true" AllowSorting="True" ShowHeader="true" runat="server">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="WiId" UniqueName="WiId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn Display="true">  
                            <ItemTemplate> 
                                <asp:CheckBox ID="chkbSelected" runat="server" /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Decision" SortExpression=""   
                            UniqueName="Decision" Visible="false" DataField="WiRhTask" > 
                            <ItemTemplate> 
                                <telerik:RadComboBox ID="rcbDecision"   
                                    DataSource="Decision"   
                                    DataValueField="Description" DataTextField="Shortt" runat="server"   
                                    OnClientSelectedIndexChanged="OnClientSelectedIndexChanged_RowDecision" 
                                    meta:resourcekey="rcbDecisionResource1">  
                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                </telerik:RadComboBox> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 

Thank you in advance
Daniel
Telerik team
 answered on 24 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?