Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I'd like to use a RadMenu in a Repeater with the NavigateUrl properties set from fields in the current record, but I don't seem to be able to find a way of making it work - any help much appreciated.

John

(irrelevant code removed - there are other fields displayed withing the <td>)

 
<table>   
     <tr>   
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="FeatureSource">   
            <ItemTemplate>   
                <td>   
                                <telerik:RadMenu ID="RadMenu1" runat="server">   
                                    <Items>   
                                        <telerik:RadMenuItem runat="server" Text="map" NavigateUrl='<%#Eval("FeatureMapUrl")%>'>   
                                        </telerik:RadMenuItem>   
                                        <telerik:RadMenuItem runat="server" Text="what goes on" NavigateUrl='<%#Eval("FeatureListUrl")%>'>   
                                        </telerik:RadMenuItem>   
                                        <telerik:RadMenuItem runat="server" Text="diary" NavigateUrl='<%#Eval("FeatureDiaryUrl")%>'>   
                                        </telerik:RadMenuItem>   
                                    </Items>   
                                </telerik:RadMenu>   
                 </td>   
            </ItemTemplate>   
        </asp:Repeater>   
    </tr>   
 </table>   
 

 

John Hadjioannou
Top achievements
Rank 1
 answered on 24 Jul 2009
1 answer
96 views
Hi I have error when use multi sorting and entitydatasorce when I sdorting two or more columns

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"
        DataSourceID="EntityDataSource1" GridLines="None" EnableLinqExpressions="true" >
<MasterTableView autogeneratecolumns="False" AllowSorting="true" datakeynames="idklient"
            datasourceid="EntityDataSource1" AllowMultiColumnSorting="true" />

<asp:EntityDataSource ID="EntityDataSource1" runat="server"
        ConnectionString="name=srDbEntities" DefaultContainerName="srDbEntities"
        EntitySetName="customers">
    </asp:EntityDataSource>
   
When use SqlDataSource its OK

Please help

Pavlina
Telerik team
 answered on 24 Jul 2009
1 answer
95 views

Hi,
      I want to scroll the columns inside a rad grid when i click on Next/Previous buttons provided on the page. Can anybody help, how to do this in client side without using horizontal scrollbar?

Thanks & Regards,
siv.

Dimo
Telerik team
 answered on 24 Jul 2009
1 answer
83 views
I read all the threads on exports and still didn't find an answer.

I have a RadGrid on the page populated by a web service.
Something like:                
<DataBinding Location="~/MyWebService.asmx" SelectMethod="GetDataAndCount" EnableCaching="true" />

Whenever I try to export I'm getting an empty document. No data whatsoever but the column titles are in place though.

I've got sense it's somehow related to the client-side binding. Is there a workaround?

Daniel
Telerik team
 answered on 24 Jul 2009
1 answer
75 views

Hello,

we upgraded the RadEditor for MOSS from version 5.2.2.0 to 5.5.0.0,

In the previous version we personalized the document manager by setting the 'ExternalDialogsPath' to 'EditorDialogs\documentManager.ascx',

and in this file we modified the 'DocumentTargetCombo' to open documents in new window by default.

but in the latest version (5.5.0.0) the 'documentManager.ascx' file doesn't have the 'DocumentTargetCombo'

 

is there a solution or workaround to do this?

Stanimir
Telerik team
 answered on 24 Jul 2009
4 answers
133 views
I am trying to export a grid with a parent and 2 children to excel.  This is inside a SharePoint web part.  I have used your examples as a starting place.  Here is the relavent code, I think.

 

protected override void OnInit(EventArgs e)

 

{

 

base.OnInit(e);

 

Page.ClientScript.RegisterStartupScript(

typeof(ParentChildGrid), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true);

 

 

if (this.Page.Form != null)

 

{

 

string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];

 

 

if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")

 

{

 

this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";

 

}

}

 

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);

 

 

if (scriptManager == null)

 

{

scriptManager =

new RadScriptManager();

 

 

this.Page.Form.Controls.AddAt(0, scriptManager);

 

}

}

 

 

protected override void OnLoad(EventArgs e)

 

{

 

if (!_error)

 

{

 

try

 

{

 

base.OnLoad(e);

 

 

this.EnsureChildControls();

 

 

base.OnLoad(e);

 

 

if (_ParentList != null)

 

{

 

if (_ParentList != "")

 

{

 

RadAjaxPanel panel = new RadAjaxPanel();

 

panel.ID =

"Panel1";

 

 

this.Controls.Add(panel);

 

oGrid =

new RadGrid();

 

DefineComplexGrid();

 

//DefineSimpleMasterDetail();

 

cmdExport.Click +=

new EventHandler(cmdExport_Click);

 

cmdExport.Text =

"Export";

 

 

panel.Controls.Add(oGrid);

 

RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);

 

 

if (ajaxManager == null)

 

{

ajaxManager =

new RadAjaxManager();

 

ajaxManager.ID =

"RadAjaxManager1";

 

Controls.Add(ajaxManager);

 

this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);

 

}

ajaxManager.AjaxSettings.AddAjaxSetting(oGrid, panel);

 

this.Controls.Add(cmdExport);

 

}

}

}

 

catch (Exception ex)

 

{

HandleException(ex);

}

}

}

 

 

void cmdExport_Click(object sender, EventArgs e)

 

{

oGrid.ExportSettings.ExportOnlyData =

true;

 

oGrid.ExportSettings.IgnorePaging =

true;

 

 

foreach (GridItem item in oGrid.MasterTableView.Items)

 

item.Expanded =

true;

 

oGrid.MasterTableView.ExportToExcel();

}

 



Any help you can give would be a big help, I am behind on a deadline.

Thanks,

John

Sebastian
Telerik team
 answered on 24 Jul 2009
2 answers
174 views
Hi,

I'm using RAD Grid Controls for Ajax Q1 2009 version. I need to get the column values of the currently expanding row in the "DetailTableDataBind" event of RAD Grid.

something like: SelectedRow.Column[5].Text

protected void grd_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
????????
}

Please help me out to make the things easier.

Thanks in advance
Viswa
Viswanathan
Top achievements
Rank 1
 answered on 24 Jul 2009
1 answer
136 views
Hi,

I'm new in Telerik Radcontrols.
Currently i'm using the Telerik Rad Calendar for ASP.NET AJAX in version 2009.1 311.
So far the control met my expectations but now I' faced with a new issue.
I want to change the view to always display one week only. Changing the SingleViewRows property doesn't work, because clicking on the navigation icons always navigates in month steps and not as desired to the previous or following week.

I also found an expample in code library but this is implemented for the old version. (Link)
Using the new version of the calendar control i currently have no real idea how to get this done.

I really appreciate any hints you could give me to get this done.

kind regards!

Iana Tsolova
Telerik team
 answered on 24 Jul 2009
2 answers
261 views
Hi,

I have to wrap the text in my radgrid. i have tried out all types of wrap and setting width i.e in footer, header and itemstyle. Why Itemstyle-wrap is not working/

Regards,
Medac
Princy
Top achievements
Rank 2
 answered on 24 Jul 2009
1 answer
99 views
I'm utilizing the RadTreeView control to display hierarchical data and one of my requirements is that a node can be a child of more than one parent.

Sample data from the dB would be something like:

ID    ParentID    Description
1      NULL          Parent
2      1                 ChildA
3      1                 ChildB
3      2                 ChildB

So ChildB is both child of ChildA and Parent.  When I attempt to bind the TreeView to my dataSource, I get the following error:  "These columns don't currently have unique values."

Is there a way I can utilize the TreeView w/ the set of data above?


Yana
Telerik team
 answered on 24 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?