Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
466 views
I have a Link button in rad grid template column, on clicking on link i should get a radpopup window. Tried on the clientside not working then tried on server side too .. no luck.
server side event:
 <telerik:GridTemplateColumn UniqueName="MetricGroup" DataField="MetricGroup">
                    <ItemTemplate>                         
                         <asp:LinkButton ID="lnkMetricGroup" runat="server"  OnClick="lnkMetricGroup_Click"
                                Text='<%# DataBinder.Eval(Container.DataItem,"MetricGroup") %>'></asp:LinkButton>   
               
                    </ItemTemplate>
      protected void lnkMetricGroup_Click(object sender, EventArgs e)
        {
            string name = "";
            LinkButton btn = (LinkButton)sender;
            name = btn.Text;               
            String url = "SalesActivity.aspx?MetricGroup=" + name;
            UserListDialog.NavigateUrl = url;
         }  

 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="UserListDialog" runat="server" Title="Details" Height="320px"
                Width="310px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                Modal="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>


Please let me know on how to proceed on this.

Thanks.
Arun
Top achievements
Rank 1
 answered on 28 Jul 2017
0 answers
95 views
How to make Radtreeview line to solid?
Suvankar
Top achievements
Rank 1
 asked on 27 Jul 2017
3 answers
167 views

So paging was working now it doesn't.  Here is the code and grid layout:

GRID

<telerik:RadGrid ID="grdReport" runat="server" AllowPaging="True" AllowSorting="False" ExportSettings-IgnorePaging="true" AutoGenerateColumns="False" PageSize="20" Skin="Office2010Blue" OnPageIndexChanged="grdReport_PageIndexChanged">
                                <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
                                <ExportSettings FileName="TestRejectReport" IgnorePaging="True">
                                </ExportSettings>
                                <MasterTableView>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Line" FilterControlAltText="Filter Line column" HeaderText="Line" UniqueName="Line">
                                            <HeaderStyle HorizontalAlign="Center" Width="20px" />
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Process" FilterControlAltText="Filter Process column" HeaderText="Process" UniqueName="Process">
                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                            <ItemStyle HorizontalAlign="Center" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Product" FilterControlAltText="Filter Product column" HeaderText="Product" UniqueName="Product">
                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                            <ItemStyle HorizontalAlign="Center" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Tested" FilterControlAltText="Filter Tested column" HeaderText="Tested" UniqueName="Tested">
                                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Passed" FilterControlAltText="Filter Passed column" HeaderText="Passed" UniqueName="Passed">
                                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Failed" FilterControlAltText="Filter Failed column" HeaderText="Failed" UniqueName="Failed">
                                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Yield" FilterControlAltText="Filter Yield column" HeaderText="Yield" UniqueName="Yield">
                                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Top5" FilterControlAltText="Filter Top5 column" HeaderText="(Count) Top n Rejects" UniqueName="Top5">
                                            <HeaderStyle HorizontalAlign="Center" Width="800px" />
                                            <ItemStyle HorizontalAlign="Left" Wrap="true" />
                                        </telerik:GridBoundColumn>                               
                                    </Columns>
                                </MasterTableView>                       
                            </telerik:RadGrid>

 

CODE:

I load a datatable (I did see the data in it) and then bind in a button event

grdReport.DataSource = dtReport;
grdReport.DataBind();

Session["Report"] = dtReport;
Session.Timeout = 30;

 

 protected void grdReport_PageIndexChanged(object sender, GridPageChangedEventArgs e)
        {
            //**********
            //pagination
            //**********
            DataTable dt = (DataTable)Session["Report"];
            grdReport.DataSource = dt;
            grdReport.Rebind(); // DataBind();  // note I have tried DataBind and Rebind here
        }

I get no grid when a page is selected.

Thanks for your help in advance.

Mark

Mark
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
38 views

I'm having an issue where on some of the clients when they type in the RadAutoComplete the last character they type isn't registering. I'll attach screen shots from two machines with the same search term and different results. Has anybody else reported this behavior? I'm just loading the search list in code behind it is really straight forward.

<telerik:radautocompletebox runat="server" Style="width: 200px;" id="acbInsured" MaxResultCount="20" DataTextField="CompanyName"     DataValueField="ClientKey">
</telerik:radautocompletebox>

 public void SetInsuredSearchDatasource(IEnumerable<Contact> searchResults)
        {
            acbInsured.DataSource = searchResults.ToArray();
            acbInsured.DataBind();
        }

 

public override void OnLoad()
        {
            SetInsuredSearchDatasource(_reportService.GetInsuredNameSearchResults());

...

 

I'm at a bit of a loss as to why it happens on some but not others (Same browser).

 

 

 

 

 

 

Sean
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
76 views
Hello there, I manually added Telerik winform controls in VS2015. I can use all the controls when I add and then when I close vs all telerik controls disappear from toolbox and again I have to add manually all the controls when I starts to work next time. Help needed ASAP.

Thank You!
sunil
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
193 views

Hello,

i use a split button, which has a RadContextMenu attached to it. Inside the RadContextMenu, there is one RadMenuItem which contains an ItemTemplate with multiple RadCheckBoxes.

How is it possible that the RadCheckBoxes inside the ContentTemplate uses the full available width? So there should be no padding/margin in the ContextMenu and the Checkbox stretches horizontally to use all of the existing space. I uploaded an example of how it looks like right now in the attachments of this post.

 

 

Code:

<telerik:RadButton EnableSplitButton="true" ID="btn4" AutoPostBack="true"runat="server" Text="Example Button Text" OnClientClicked="OnClickedRadButton" CommandName="cmdBt4"   OnClick="btn4_Click" CausesValidation="true">
</telerik:RadButton>
<telerik:RadContextMenu id="rcmBtn4" runat="server">
   <Items>
      <telerik:RadMenuItem>
         <ItemTemplate>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb1" CausesValidation="false" Checked="true" Text="als Excel-Datei (.xlsx) exportieren" AutoPostBack="false" />
            </p>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb2" CausesValidation="false" Checked="true" Text="Checkbox Text 2" AutoPostBack="false" />
            </p>
         </ItemTemplate>
      </telerik:RadMenuItem>
   </Items>
</telerik:RadContextMenu>
Steffen
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
333 views
I have a requirement to put multiple series into a chart. Each series should have a label & the item in the series should also have a label on the x-axis.
 I cannot find any samples that would help me with this and have been banging my head at it for the day.

 I've attached a sample of what our graph should look like. Any help on this would be great!


Thanks
Marin Bratanov
Telerik team
 answered on 27 Jul 2017
2 answers
85 views
I have the following grid defined, but the insert dialog is showing the title twice.  How do I suppress the second iteration of this (see picture)?
 
<telerik:RadGrid
    AllowCustomPaging="true"
    AllowFilteringByColumn="true"
    AllowPaging="true"
    AllowSorting="true"
    AutoGenerateEditColumn="true"
    CellSpacing="-1"
    GridLines="Both"
    GroupPanelPosition="Top"
    Height="690px"
    ID="AgenciesGrid"
    OnDeleteCommand="AgenciesGrid_OnDeleteCommand"
    OnItemCreated="AgenciesGrid_OnItemCreated"
    OnNeedDataSource="AgenciesGrid_NeedDataSource"
    OnUpdateCommand="AgenciesGrid_OnUpdateCommand"
    PageSize="20"
    runat="server"
    ShowFooter="true"
    ShowStatusBar="true">
    <GroupingSettings CaseSensitive="false"></GroupingSettings>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <GroupPanel Text="Drag and drop header to order by column">
    </GroupPanel>
    <MasterTableView
        AllowCustomPaging="true"
        AllowFilteringByColumn="false"
        AllowSorting="true"
        AutoGenerateColumns="false"
        CommandItemDisplay="Top"
        DataKeyNames="AgencyId"
        EditMode="PopUp">
        <RowIndicatorColumn Visible="false">
        </RowIndicatorColumn>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="editColumn">
                <HeaderStyle Width="40px" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="AgencyId" ReadOnly="true" HeaderText="AgencyId" Display="false" UniqueName="AgencyId">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyName" HeaderText="Agency" UniqueName="AgencyName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyPhone" HeaderText="Phone" UniqueName="AgencyPhone">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyContact" HeaderText="Contact" UniqueName="AgencyContact">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings InsertCaption="Add New Agency" CaptionFormatString="Edit Agency: {0}" CaptionDataField="AgencyId">
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

 

Leonardo
Top achievements
Rank 1
 answered on 26 Jul 2017
1 answer
157 views

Hey,

My problem is that I'm trying to create a RadTileList programmatically to populate an Intranet staff page.

We've developed a page in which users can choose an image of themselves, along with fill out the details we don't keep in Active Directory, and then we pull the photo, AD information and profile information and pop it into a staff page. Works beautifully, and the Telerik controls really improve the look and feel of it.

Then we wanted to make a series of image galleries for different teams, different job roles etc. We can pull the data for these groups no problem. Then the plan is that everyone gets their image put into a gallery, which we're going to use the RadToolTip functionality on to preview before they can open the page to learn all about the member of staff. Herein lies my problem, because I can't populate the RadTileList using the byte array (byte[]) images.

Below is an example of how I'm TRYING to code it. Unfortunately I have so much to do on this project and so little time to do it in that I really can't afford to be spending much longer trying to get this to work. Any chance you could provide a solution?

protected void LoadStaffList(DataTable staffList, Image notAvailable)
{
    var tileList = new RadTileList();
    var tileGroup = new TileGroup();
    var memoryStream = new MemoryStream();
    var image = Resources.photonotavailable;
    image.Save(memoryStream, ImageFormat.Png);
 
    foreach (DataRow row in staffList.Rows)
    {
        var imageTile = new RadImageTile();
        var userPhoto = row["UserPhoto"] != DBNull.Value ? row["UserPhoto"] : null;
        imageTile.DataItem = (byte[]) userPhoto ?? memoryStream.ToArray(); <-- YOU CAN'T DO THIS!!
        imageTile.Shape = TileShape.Square;
        tileGroup.Tiles.Add(imageTile);
    }
 
    tileList.Groups.Add(tileGroup);
    divTeamInformation.Controls.Add(tileList);
}

I'm assuming there's a way to use a RadBinaryImage or something else in place of the RadImageTile? Or some other way to set the data without writing the byte array to a temp file and then setting the temp file as the Image Source, because both of those would be incredibly annoying to have to do.

Any help you could provide would be massively appreciated. Apologies if it's a duplicate topic but I couldn't see one like it.

Thanks,

-Alexis

Marin Bratanov
Telerik team
 answered on 26 Jul 2017
1 answer
135 views

We have a custom application that creates a Telerik RadHtmlChart object from an external DLL method.

We also have a second custom application that uses MVC and Kendo components.

I understand that both RadHtmlChart and Kendo charts are using the same underlying server-side wrapper from the Kendo UI chart widgets.

My question is, how can I request that same external DLL using MVC/razor, and have it sent back to my view as a Kendo Chart? Is this possible? 

Vessy
Telerik team
 answered on 26 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?