Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Is there any way to fire the event ItemCreated manualy from codebehind via VB.NET.

I need this for my applikation.

Thanks

Christian
Christian
Top achievements
Rank 1
 answered on 26 Mar 2009
6 answers
283 views
I'm sure there is an easy answer, but how do I clear a grid which has been data bound? I have a condition in NeedsDataSource where I may need to clear the grid. I have tried setting the data source to null but any records which are already in the grid still appear. There is also no Clear() method.

Thanks
Sebastian
Telerik team
 answered on 26 Mar 2009
5 answers
126 views
Hi Telerik Team,

I am having a problem with the export feature of RadGrid. Whenever I export my radgrid data to excel in IE6, an error occurs.
Error message: 'C:\Documents and Settings\Von\Local Settings\Temporary Internet Files\Content.IE5\VMOJZLKL\Employee Record Report[1].xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. If you are trying to open the file from your list of most recently used files, make sure that the file has not been renamed, moved, or deleted.

The bigger problem is whenever I try this feature using Firefox, it works perfectly.

Here is my code:
protected void btnExport_Click(object sender, EventArgs e)
    {
        grdEmployeeInfo.Page.Response.ClearHeaders();
        grdEmployeeInfo.Page.Response.Cache.SetCacheability(HttpCacheability.Private);
        grdEmployeeInfo.MasterTableView.ExportToExcel();
    }

May I request some help with this?
Thanks a lot!

Regards,
Von



Brendan Vogt
Top achievements
Rank 1
 answered on 26 Mar 2009
2 answers
184 views
I called the below function using the registerstartupscript block, but the alert returns null, so i couldnot read the object..
please help me to get out from this   

function State_Onload()
    {
    var CurrCode = $find("<%= txtCountry.ClientID%>");
    var state = $find("<%= txtStPrTe.ClientID%>");   
    var objStatelkp = document.getElementById("<%= imgSPTlookup.ClientID%>");  
    
    alert(CurrCode);
    alert(state);
    alert(objStatelkp);
    
    var cCode =  CurrCode.get_value();
    
        if (cCode == null)
        {
                        objStatelkp.style.display = 'none';
                        state.disable();       
        }
                    else if (cCode == 'US' || cCode == 'CA' || cCode == 'PR')
                    {
                        objStatelkp.style.display = 'block';
                        state.disable();
                    }
                    else
                    {
                        objStatelkp.style.display = 'none';
                        state.enable();
                    }
    }
Arputharaj
Top achievements
Rank 1
 answered on 26 Mar 2009
1 answer
190 views
Hi,

I have 3 level nested detail table herarchy like a Locations has multiple branches and each branches has multiple devices.

Now my aspx looks like below.


<telerik:RadGrid ID="grdLocations" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

 AllowAutomaticUpdates="True" AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="True"

 AutoGenerateEditColumn="True" DataSourceID="LinqDataSourceLocations" GridLines="None"

 Skin="Gray">

 <MasterTableView DataSourceID="LinqDataSourceLocations" DataKeyNames="LocationID">

 <DetailTables>

 <telerik:GridTableView runat="server" DataSourceID="LinqDataSourceBranches" DataKeyNames="BranchID">

 <ParentTableRelation>

 <telerik:GridRelationFields MasterKeyField="LocationID" DetailKeyField="LocationID" />

 </ParentTableRelation>

 <DetailTables>

 <telerik:GridTableView runat="server" DataSourceID="LinqDataSourceDevices">

<ParentTableRelation>

<telerik:GridRelationFields DetailKeyField="BranchID" MasterKeyField="BranchID" />

 </ParentTableRelation>

 </telerik:GridTableView>

 </DetailTables>

 </telerik:GridTableView>

 </DetailTables>

 </MasterTableView>

 </telerik:RadGrid>

 <asp:LinqDataSource ID="LinqDataSourceLocations" runat="server" ContextTypeName="InsightDataContext"

 Select="new (LocationName, LocationID)" TableName="LocationMasters">

 </asp:LinqDataSource>

 <asp:LinqDataSource ID="LinqDataSourceBranches" runat="server" ContextTypeName="InsightDataContext"

 Select="new (BranchID, BranchName, LocationID)" TableName="BranchMasters" Where="LocationID == @LocationID">

 <WhereParameters>

 <asp:ControlParameter ControlID="grdLocations" Name="LocationID" PropertyName="SelectedValue"

 Type="Int32" />

 </WhereParameters>

 </asp:LinqDataSource>

 <asp:LinqDataSource ID="LinqDataSourceDevices" runat="server" ContextTypeName="InsightDataContext"

 Select="new (DeviceName, DeviceID, BranchID)" TableName="DeviceMasters" Where="DeviceID == @DeviceID">

 <WhereParameters>

 <asp:Parameter Name="DeviceID" Type="Int32" />

<%--<asp:ControlParameter Name="DeviceID" PropertyName="SelectedValue"

 Type="Int32" />--%>

 </WhereParameters>

 </asp:LinqDataSource>

 

Here you can see I have placed 3 LinqDataSources for three tables. Now thing is I could write WHERE parameter for my branches table as I could got grdLocations and which has DataKeys as LocationID. But I could not get its detail table's DataKey value i.e. BranchID for my last LinqDataSource (Inner detail table's datasource control could not get its parent's ID).

What should I do in this?

Thanks & Regards,
Divyesh Chapaneri
Tsvetoslav
Telerik team
 answered on 26 Mar 2009
1 answer
79 views
Hi

I'm evaluating v2008.3.1314.35 of the Telerik controls. One of the key features I am looking at is the File Explorer. I've tried to follow the demo instructions, but I can't see the VisibleControls property of FileExplorer, nor can I find the members of the Enumeration that are used to set it (i.e. I get compile errors when I try to access them).

Do I need to do something special to get this to work? Is this feature in the version I am using?

Thanks

Nick.
Fiko
Telerik team
 answered on 26 Mar 2009
5 answers
135 views
once i open my modal window, theres an 'X' image that appears in the background at the top most left corner...
how do i remove that 'X' from appearing..please advice
i have attached below the screenshots ....

Thanks

error 1 
error 2 
Error 3
Fiko
Telerik team
 answered on 26 Mar 2009
3 answers
121 views
Greetings,

I'm having a bit of a problem with a RadGrid.  I have a page used by Admins with a grid that has several fields, but has a specific field with IDs for users.  Above the grid, I have a RadToolbar, with 8 buttons.  One of the buttons will take the Admin to a profile page, where you can view/edit a user's info.  The problem is with this profile page, there is no way back to the page you were just on, so if you selected the wrong user or don't wish to edit their info, the only way back is to use the IE back button, or to renavigate your way back to the previous page.

The problem occurs when you try and use the IE back button.  The page will redisplay, with the RadGrid moving the selected row up to the first row.  That is fine, but the grid keeps the previous person's selected ID.

Ex.  You have 5 people in the grid.  You select number 4 and choose to edit their profile.  Upon the button firing, you go to the profile page, only to not wish to do anything to the user's info, so you click back, thus returning you to the previous page.  Now the first person in the grid is selected.  Instead of reselecting someone, you decide to edit number 1's profile.  Upon the button being clicked, you are taken to the profile page, but instead of number 1's info, you see number 4's.  It is as if the grid cannot comprehend that the person selected is different, and the Ids haven't changed.

My question is, is there a way to set the selected row to the person whose last ID was selected when the IE back button is pressed, or is there a way to just reset the ID to the first person when the grid is brought back using the IE back button?  Thank you.

Chad Johnson
Iana Tsolova
Telerik team
 answered on 26 Mar 2009
1 answer
128 views
Hi,

  I'm having problem with the grid and window.

  I created a template so that clicking the button will open the screen, however I have to click the first column to click the column of the template so that this way of accessing the screen window.

  How this can be?
Yavor
Telerik team
 answered on 26 Mar 2009
1 answer
147 views
Hello,

Is it possible to move the axis of rotation for Xaxis labels?  Currently I have a collection of strings with varied lengths as labels on the x axis. I'd like to set the rotation to -45 so they stack up diagonally along the axis.  Currently, the strings are rotated with the axis of rotation in the middle, so unless I set the AlignedPostion to Center, the strings still overrun each other.

 I'd like to set the aligned position to right so they line up tight to the axis, and somehow tell them rotate along the right most edge too. Is this possible?
Dessy
Telerik team
 answered on 26 Mar 2009
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?