Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
350 views
Hi,

We are using RadContextMenu and wants to set RadMenuItem height dynamically and also reduce the width of left Grey bar on context menu. Please help us.

Please find the attached screen shot for more clarification. 

Thanks,
Rahul
Kate
Telerik team
 answered on 19 Sep 2011
4 answers
194 views

HI

 

i got a  website in VS 2005  using telerik controls


but when we open this project it gives me compilation error .'OpenAccessDataSource' is not defined.

do we need to install the telerik demo if yes which one we have to download .

Sebastian
Telerik team
 answered on 19 Sep 2011
8 answers
170 views
hello,

   I have a grid that when I am setting its edit column button type of imageButton,like this:
 
<telerik:GridButtonColumn UniqueName="Delete" ImageUrl="~/Images/NewDesign/icons-table-delete.png" ButtonType =ImageButton CommandName="Delete" >

</telerik:GridButtonColum

if ButtonType =ImageButton Button doesn't get to RadGrid1_ItemCommand

I know the solution:
to do DataBind if not postback.

But to me it does not help, because I have a search button each time to refresh the data grid and must be DataBind even in case postback.

What should I do?(My code in vb.net)

Thanks Ayelet

Pavlina
Telerik team
 answered on 19 Sep 2011
0 answers
64 views
Hello,

I'm using 2 radgrids (pending orders - shipped orders) with drag and drop rows feature. I would like to save the data of the second grid (shipped orders) to a database table, insert, update and delete rows and export all the rows to an excel file. How could i make this; I would be much grateful, if you provide me some sample of code along with the information.

Thank you very much.
George
Top achievements
Rank 1
 asked on 19 Sep 2011
5 answers
141 views
Hi
I'm using Radgrid and its working fine.
I have one requirement.

In my radrgid I have the column called "Description" and it will contain huge text.
But in grid it showing the some of the content only.
Can I break the lines after some characters like after 20 characters like that.
I have used Itemstyle-width and headerstyle-width but nothing has worked.

please help me how to resolve this issue.
Winni
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
89 views
How do i add appointments from within code-behind. Something like the following:

Dim startdate As DateTime = DateTime.Parse("9/16/2011")
        For i As Integer = 1 To 12
            startdate = startdate.AddMonths(1)
            ' pseudo code:
                  MyScheduler.Appointments.Add(startdate)
        Next

Meaning, no source code (database, generic list etc. etc.). Just a simple loop.

Thank you
Ivana
Telerik team
 answered on 19 Sep 2011
1 answer
111 views
Dear Al,

Currently I'm building a Form which dynamicly renders all the properties for a object. Therefore I create RadTabStrip and MultiPage both programmaticly I can in the rendered html that everything is created, however I am unable to switch the pages using the tabstrip.

What's going wrong overhere?

Thanks in advance


// First create the required means
 MultiPageStrip = new RadMultiPage() { ID = "Object_Form$MultiPageStrip", ClientIDMode = System.Web.UI.ClientIDMode.Static };
 TabStrip = new RadTabStrip() { MultiPageID = "Object_Form$MultiPageStrip" };

// Now is the beautifull part, we are going to generate the controls, we can that easily using the describtor
 foreach (Tab Tab in this.DataSource.MetaData.UserInterfaceDescriptor.Tabs)
 {
     RadPageView PageView = new RadPageView() { ID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
     RadTab RadTab = new RadTab(Tab.Name) { PageViewID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
     RenderTab(Tab, PageView);
     MultiPageStrip.PageViews.Add(PageView);
     TabStrip.Tabs.Add(RadTab);
 }
 
 // And add the create controls
 TabStrip.SelectedIndex = 0;
 MultiPageStrip.SelectedIndex = 0;
 ControlPanel.Controls.Add(TabStrip); ControlPanel.Controls.Add(MultiPageStrip);


Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Sep 2011
1 answer
142 views
Hi,

I've been looking/following this demo:http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx

At the moment I just have one column, the following is returned from my webservice. I'm using an alert to display the webservice result.
function updateGrid(result)
      
          var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
          tableView.set_dataSource(result);
          tableView.dataBind(); 
            
          var grid = $find("<%= RadGrid1.ClientID %>");
          grid.repaint();
      }
result returns this in the alert box
[{"Test_PK":1},{"Test_PK":58}]
when it databinds it clears the grid, but if I do var result = [{"Test_PK":1},{"Test_PK":58}];
it works fine?

Any idea what I'm missing?

Thanks

Karl
Top achievements
Rank 1
 answered on 19 Sep 2011
2 answers
139 views
Hi All,
How can remove decimal number from y axis and just display integer numbers????
thanks All
ghadeer
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
69 views
Sorry I could not work out where to post this as I dont understand telerik terminology well enough yet!!

I have a RadFilter and a RadGrid on my page.  If I set the DataSourceControls explicitly, it works fine..

 

 

 

 

<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
            ConnectionString="name=Clarity2011Entities"  OrderBy="it.[DisplayName]"
            DefaultContainerName="Clarity2011Entities" EnableFlattening="False" 
            EntitySetName="tblMassMaintenanceFields" 
              
            Select="it.[FieldId], it.[DisplayName], it.[FieldName], it.[TableName], it.[NetDataType]" 
            EntityTypeFilter="tblMassMaintenanceField">
        </asp:EntityDataSource>
        <div class="filterDiv">
            <telerik:RadFilter runat="server" ID="RadFilter1" OnPreRender="RadFilter1_PreRender" DataSourceControlID="EntityDataSource1" FilterContainerID="RadGrid1" ShowApplyButton="false" />
            <asp:SqlDataSource ID="dtcRadGrid1" runat="server" ConnectionString="<%$ ConnectionStrings:BRINVConnectionString %>" CancelSelectOnNullParameter="False"   SelectCommand="Select  DisplayName FROM tblMassMaintenanceFields">
              </asp:SqlDataSource>
  
        </div>
        <telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False"   
            AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" 
            OnItemCommand="RadGrid1_ItemCommand" CellSpacing="0" GridLines="None">
            <MasterTableView IsFilterItemExpanded="false" CommandItemDisplay="Top" 
               >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
  
                <Columns>
                    <telerik:GridBoundColumn DataField="FieldId" DataType="System.Int32" 
                        FilterControlAltText="Filter FieldId column" HeaderText="FieldId" 
                        ReadOnly="True" SortExpression="FieldId" UniqueName="FieldId">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DisplayName" 
                        FilterControlAltText="Filter DisplayName column" HeaderText="DisplayName" 
                        ReadOnly="True" SortExpression="DisplayName" UniqueName="DisplayName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FieldName" 
                        FilterControlAltText="Filter FieldName column" HeaderText="FieldName" 
                        ReadOnly="True" SortExpression="FieldName" UniqueName="FieldName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TableName" 
                        FilterControlAltText="Filter TableName column" HeaderText="TableName" 
                        ReadOnly="True" SortExpression="TableName" UniqueName="TableName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NetDataType" 
                        FilterControlAltText="Filter NetDataType column" HeaderText="NetDataType" 
                        ReadOnly="True" SortExpression="NetDataType" UniqueName="NetDataType">
                    </telerik:GridBoundColumn>
                </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
                <CommandItemTemplate>
                    <telerik:RadToolBar runat="server" ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick">
                        <Items>
                            <telerik:RadToolBarButton Text="Apply filter" CommandName="FilterRadGrid" ImageUrl="<%#GetFilterIcon() %>"
                                ImagePosition="Right" />
                        </Items>
                    </telerik:RadToolBar>
                </CommandItemTemplate>
                  
            </MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>

But when I write code to create the entitydatasource I get object not set to instance of an object when the page displays..
Here is the code:

EntityDataSource ClarityEntities = new EntityDataSource();
var conEntitiesString = ConfigurationManager.ConnectionStrings["Clarity2011Entities"];
string strConnEntitiesString = conEntitiesString.ConnectionString;
ClarityEntities.ConnectionString = strConnEntitiesString;
ClarityEntities.OrderBy = "it.[DisplayName]";
ClarityEntities.EnableFlattening = false;
ClarityEntities.DefaultContainerName = "Clarity2011Entities";
//ClarityEntities.ContextTypeName =
ClarityEntities.EntitySetName = "tblMassMaintenanceFields";
ClarityEntities.Select =  "it.[FieldId], it.[DisplayName], it.[FieldName], it.[TableName], it.[NetDataType]";
ClarityEntities.EntityTypeFilter = "tblMassMaintenanceField";
RadGrid1.DataSource = ClarityEntities;
RadGrid1.MasterTableView.DataSource = ClarityEntities;
I thought the above code was the equivalent of the entitydatasource I created in the tag above?  What is different?

Sorry I am a newbie so am probably missing something obvious

TIA
Mira
Telerik team
 answered on 19 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?