Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
163 views
I need to HttpPostedFile Object to pass it in some function I use. Is it possible to retrieve it? I can only see UploadedFile Object and it won't work. I do not have access to change the function I want to send the HttpPostedFile.

Thanks,
Veselin Vasilev
Telerik team
 answered on 02 Sep 2008
2 answers
158 views
For example: I want to hide any HTML element by using fade out animation in Telerik Websource Javasctip library. Following code block is giving a Javascript  error.

<form id="form1" runat="server"
    <telerik:RadScriptManager ID="scriptManager" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <asp:Label ID="lbl" runat="server" Text="Deneme deneme test deneme" BackColor="#CCFFCC" 
            BorderColor="#33CC33" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" 
            Font-Overline="False" Font-Size="XX-Large"></asp:Label> 
    </div> 
    <script language="javascript" type="text/javascript"
     
    $telerik.addExternalHandler(window,"load",function(){ 
         
        $TWA.FadeOutAnimation("<%=lbl.ClientID %>",5000,12,0,100,false); 
         
    });     
     
    </script> 
    </form> 

[Exception... "'Sys.ArgumentTypeException: Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Telerik.Web.Animation.Animation'.
Parameter name: instance' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]
http://localhost/test/ScriptResource.axd?d=xaFaZSmTqsDtn6RXGPYEctl5heZz2bXadFYPgQtWAk8ViMG9nWQU_wdUuNvUR01T_jvUqe2AegLMn6_E0rdmjj7dhQUGW3XwIyQHc95wbiU1&t=51124636
Line 6342

sunsystem
Top achievements
Rank 1
 answered on 02 Sep 2008
1 answer
90 views
IE 6 SP2
Telerik.Web.UI version: 2008.2.723.20
(Runtime Version: v2.0.50727)

This bug is identical to:
http://www.telerik.com/community/forums/thread/b311D-bdakdk.aspx

except that it applies to the RadGrid (Telerik.Web.UI.GridScrolling), not the RadSplitter.

When an iframe containing a grid is closed immediately after the iframe contents are loaded (but before the DOM is ready?), a race condition can occur where a javascript error is thrown:

Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method

The error is thrown from Telerik.Web.UI.GridScrolling.dispose() when:
 $removeHandler(window,"resize",this._onResizeDelegate)
is called before the setTimeout in Telerik.Web.UI.GridScrolling._initializeDimensions() can fire.

Thanks & HTH,
Russell
Nikolay Rusev
Telerik team
 answered on 02 Sep 2008
4 answers
156 views
Hi,

I am trying to make a GridBoundColumn in the radgrid not to be visible when in insert mode.

I was able to make the textbox for the column to behave not to be visible. But the label attached to it is still visible.

I did as below to make the textbox not to be visible in the itemdatabound event ,

if

(e.Item is GridEditFormInsertItem && e.Item.IsInEditMode)
{
GridEditFormInsertItem insertItem = (GridEditFormInsertItem)e.Item;

TextBox

txtDesc = (TextBox)insertItem["Description"].Controls[0];
txtDesc.Visible =
false;

}

How to make the label attached to it also not to be visible?
Please help. Urgent

Regards

Sujith
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2008
4 answers
136 views
Hi,

              I am using filtering functionality. I have set AllowFilteringByColumn="True" Still the filtering is not working.

I have binded the grid in page load event.

If I write the binding code in not ispostback then the grid does not appears after the filtering is done.

If I write the code in postback event of page load grid appears but without filtered data.

Please tell me which property should I set or I am doing binding of grid in some wrong event. Shall I bind grid in event other than page load?

Thanks,
Rahul
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2008
4 answers
161 views
I've run into a weird little problem with page sizes and a custom pager template.
I'm using the javascript supplied in the sample http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx
to change page number and page size, which works perfectly fine.
The problem is that when I construct the Grid initially (i.e. !IsPostBack) I'm setting grid.PageSize and grid.MasterTableView.PageSize to 30 (our preferred default).
That works fine until I hit a page change link when the page size subsequently resets itself back to the default value 10.
If I change the page size from the client, the new page size is retained on subsequent post-backs, otherwise it remains at 10.
It looks like the viewstate value of the page size is somehow not picking up the server side change despite it being done before the grid is added to the control tree.

Is there any way around this problem, perhaps something else I can set server side which will fix it?
I can provide a simple example if that helps.
Princy
Top achievements
Rank 2
 answered on 02 Sep 2008
2 answers
259 views
I am looking at the sample http://demos.telerik.com/ASPNET/Prometheus/TreeView/Examples/Functionality/CheckBoxes/DefaultCS.aspx
and it says that
"This example also demonstrates  the use of the OnClientNodeChecked event, which allow fine-tuning of the RadTreeView behavior. This event is used to check/uncheck all child nodes if the parent node is checked/unchecked."

But this sample does not use the OnClientNodeChecked event. Instead it uses the CheckChildNodes property.

But I am actually looking for the Javascript to "uncheck" all of child nodes if it is unchecked (it sounds like the way the example used to work). But not to auto-check all child nodes if checked. Does this example still exist?

Thanks!
Jay
Top achievements
Rank 1
 answered on 01 Sep 2008
6 answers
208 views
Come on, I'm using the latest ASP.NET AJAX and Ive never experience such of hard time deploying controls.  I have try other components and they usually add to your project the images need it .. etc.. why these controllers don't and i have to take extra steps to get them going, how annoying.

I read some where that i good options is to setup a virtual directory so i don't have to worry over and over about all the files need it,  and guess what !!!! people don't explain correctly the steps on how to accomplish this so the controllers will find the necessary files.

Telerik developers ??








Carlos
Top achievements
Rank 1
 answered on 01 Sep 2008
1 answer
226 views
I'm using a treeview bound to an object data source which calls a stored proc with an order by in the select statement. It doesn't look like I'm able to control the display order of items within the same level. Any tips on how to do that?
Atanas Korchev
Telerik team
 answered on 01 Sep 2008
4 answers
158 views
my RadGrid has this child DetailTable:

<DetailTables>           
    <Telerik:GridTableView  
        Width="100%" 
        Name="offenderCharges"  
        DataKeyNames="OffenderChargeID"  
        AutoGenerateColumns="false"  
        EditMode="EditForms"  
        Caption="&nbsp;"  
        CommandItemDisplay="Top"  
        CommandItemStyle-Font-Bold="true"  
        NoDetailRecordsText="No Charges"  
        CssClass="setMargin"
         
        <ParentTableRelation> 
            <Telerik:GridRelationFields MasterKeyField="OffenderID" DetailKeyField="OffenderID"/> 
        </ParentTableRelation> 
         
        <CommandItemSettings AddNewRecordText="Add new Charge" RefreshText="" RefreshImageUrl="~/1.gif" /> 
                             
        <Columns> 
            <Telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="editColumn" ItemStyle-ForeColor="#333333" ItemStyle-Font-Bold="True" /> 
            <Telerik:GridButtonColumn CommandName="Delete" ButtonType="LinkButton" Text="Delete" UniqueName="deleteColumn" ConfirmText="Delete charge?" ConfirmTitle="Delete" ItemStyle-ForeColor="#333333" ItemStyle-Font-Bold="True" /> 
            <Telerik:GridBoundColumn HeaderText="OffenderChargeID" UniqueName="OffenderChargeID" DataField="OffenderChargeID" Visible="False" ReadOnly="true"/> 
            <Telerik:GridBoundColumn HeaderText="OffenderID" UniqueName="OffenderID" DataField="OffenderID" ReadOnly="true" Visible="false"/> 
            <Telerik:GridDropDownColumn HeaderText="Charge" UniqueName="Charge" DataField="ChargeID" DropDownControlType="RadComboBox"/> 
            <Telerik:GridDropDownColumn HeaderText="Victim #" UniqueName="VictimNumber" DataField="VictimNumber" DropDownControlType="RadComboBox"/> 
            <Telerik:GridDropDownColumn HeaderText="Relationship" UniqueName="Relationsip" DataField="OffenderVictimRelationshipTypeID" DropDownControlType="RadComboBox"/> 
        </Columns> 
    </Telerik:GridTableView>                 
</DetailTables> 

...problem is, the attribute CommandItemStyle-Font-Bold="true" doesnt work. none of the CommandItemStyles seem to work (font bold, italic, background color, etc).

they work in my MasterTableView, but not in the DetailView.

im using the office2007 skin.

any idea whats up?


thanks,
matt
sd
matt
Top achievements
Rank 1
 answered on 01 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?