Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views

I am using the java script function below to highlight a row on the client side once a control in the row was selected.   It appears to be working but the the styles look like the picture below..  a very thin border around the row that is barely noticeable is selected.   How can I made it so the whole row will change color when the row is selected

 

           var grid = $find("<%=GridView_InboxDocuments.ClientID %>");
            var masterTable = $find("<%=GridView_InboxDocuments.ClientID%>").get_masterTableView();
            var dataItems = masterTable.get_dataItems();
            var count = dataItems.length;
            var link;
                       
            for (var i = 0; i < count; i++) {
                link = dataItems[i].findElement(controlName);
                if (link.text == eFilingId) {
                    grid.set_activeRow(dataItems[i].get_element());              
                }                
            } 

Eyup
Telerik team
 answered on 25 Apr 2016
1 answer
96 views

I have a dependency I need to show online; the problems I am facing seem to be better developed in other versions on the tool set than this. There also seems to be a lack of example code in vb.net as well as c# (unless I am missing something)

1. Browser size/resizing - I need to be able to resize the diagram view port based on the window size. Nothing about this at all? This seems strange as the client side API for other controls are very rich in what you can do with them using JavaScript.

2. My diagram is very large and does not fit the whole map in the viewport. I can user Ctrl + Move mouse to pan; but ideally this needs scroll bars. This can be achieved through other implementations of diagram Silverlight for instance. But not here?

3. Need to be able to attach a context menu to each shape and/or connection; also a context menu on the other space would be nice.

4. Can the connections be attached to a centre point whilst disabling the abilities to...

    a. Disable the deletion of a diagram shape and connection

    b. All connections start and end at centre points, all other connection points are removed

    c. Disable the creation of connections between points.

 

Really the diagram tool is great honestly; but lacks a lot of features that you have done for other versions of the telerik toolset.

Danail Vasilev
Telerik team
 answered on 25 Apr 2016
6 answers
210 views
Hello,
I have a gridboundcolumn with attribute FilerDelay set to 1. The filter works correctly, after 1 second the autopostback is done and the filter command is "EqualTo".  The problem is that if I wish to remove the filter by selecting from the filter list the "NoFilter" voice, on ItemCommand method, the argument of the command remains "EqualTo" instead of "NoFilter". So I can't remove the filter set before.  Every other choises(GreaterThen, Less.....etc) apart from "NoFilter" work correctly and are 'recognised' inside the ItemCommand method.
Could you please help me with this problem?
Thank you very much.
Marina
Maria Ilieva
Telerik team
 answered on 25 Apr 2016
1 answer
144 views

For some reason, when I add the option to use checkboxes on my listbox, the text for the items become bold. Is there any way to prevent the text from becoming bold? I'm using the Bootstrap theme.

Thanks!

Veselin Tsvetanov
Telerik team
 answered on 25 Apr 2016
3 answers
181 views

Hi

How to work with model boxes i have radbutton when i click on button open model box , click again button if model box is open close that else open model box .

find the attachments have better idea what exact scenarios i want any suggestions.

Thanks,

SR.

 

SR
Top achievements
Rank 1
 answered on 25 Apr 2016
1 answer
245 views

We have to use RadToolTipManager for RadGrid control,

We observed that tooltip seems to be working for IE10 although not working in MS Edge browser.

Please note the below specified version as we have with us:

Telerik.Web.UI.dll (2014.1.403.35)

Respective screenshots have been attached herewith for your reference.

Look forward to hearing back from your support at the earliest.

 

Marin Bratanov
Telerik team
 answered on 25 Apr 2016
1 answer
194 views

Hi

I have a radbutton when i click button open radwindow under the button i have done this using open element id of OpenerElementID set the properties as left=1100px and top=40px window opens exact position but when i zoom out and zoom in the browser percentage window position is not related to button .

any suggestions find the attachment.

Thks.

SR.

 

 

 

Marin Bratanov
Telerik team
 answered on 25 Apr 2016
4 answers
228 views
Hello,

I was wondering is there a way to highlight the column that the grid is currently being filtered on?



Similar to what we have for sorting:
 
<SortingSettings SortedBackColor = "Aqua" />
 

Thanks,

Sadiq N.
Eyup
Telerik team
 answered on 25 Apr 2016
2 answers
275 views

I'm trying to export a radgrid to a pdf with pictures that are embedded inside of it.  I currently have a radgrid, and one of the columns is using a grid template column with a radlistview control, and a binary image control inside of that.  Everything renders ok, but the pdfexport won't seem to export images.  My goal with the grid template column is to load a list of photo's in each cell, but also be able to export this to a pdf.

 

protected void QuesGrd_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
 
        using (var db = new IASurvey.Core.IADbContext())
        {
 
            GridDataItem item = (GridDataItem)e.Item;
            Guid AnswerId = Guid.Parse(item["ansId"].Text);
            HyperLink link = (HyperLink)item["link"].Controls[0];
            var answerphoto = db.Photos.Where(p => p.PhotoAnswerId == AnswerId);
            var answerlist = answerphoto.ToList();
            RadListView lv = item.FindControl("RadListView1") as RadListView;
            if (lv != null)
            {
                lv.DataSource = answerlist;
            }
 
            if (answerphoto.Any())
            {
                link.Text = "View/Print Photo(s)";
                string url = "~/PhotoOpen.aspx?AnswerId=" + AnswerId;
                link.Target = "_blank";
                link.NavigateUrl = (url);
                //link.Attributes.Add("onclick", "javascript:window.resizeTo(600,600);");
            }
            else
            {
                link.Text = "No Photos";
            }
        }
 
    }
}

protected void QuesGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.ExportToPdfCommandName)
    {
        foreach (GridHeaderItem item in QuesGrid.MasterTableView.GetItems(GridItemType.Header))
        {
 
            item.Style["font-size"] = "15pt";
            foreach (TableCell cell in item.Cells)
            {
                cell.Style["font-size"] = "6pt";
                cell.Style["vertical-align"] = "middle";
            }
        }
        isPdfExport = true;
        ConfigureExport();
    }
}
 
 
protected void QuesGrid_ItemCreated(object sender, GridItemEventArgs e)
{
    if (isPdfExport && e.Item is GridHeaderItem)
    {
        GridHeaderItem headerItem = (GridHeaderItem)e.Item;
        headerItem.Style["font-size"] = "16pt";
        headerItem.Style["color"] = "#ffffff";
        headerItem.Style["background-color"] = "#BD0034";
        headerItem.Style["height"] = "40px";
        headerItem.Style["horizontal-align"] = "center";
        headerItem.Style["vertical-align"] = "middle";
        headerItem.Style["font-weight"] = "bold";
        headerItem.Style["text-align"] = "center";
 
        foreach (TableCell cell in headerItem.Cells)
        {
 
        }
    }
}
 
public void ConfigureExport()
{
    QuesGrid.ExportSettings.IgnorePaging = true;
    QuesGrid.ExportSettings.ExportOnlyData = true;
    QuesGrid.ExportSettings.OpenInNewWindow = true;
    QuesGrid.ExportSettings.UseItemStyles = true;
    QuesGrid.ClientSettings.Scrolling.AllowScroll = false;
    QuesGrid.ExportSettings.FileName = "Survey (" + DateTime.Now + ")";
}

 

<telerik:GridTemplateColumn UniqueName="photo" HeaderText="Photo(s)"
     <ItemTemplate
     <telerik:RadListView ID="RadListView1" runat="server" DataMember="Binary" GroupItemCount="10" PageSize="10">
        <ItemTemplate>
            <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue='<%#Eval("Image") %>' Width="200px" Height="200px" ResizeMode="Fit" />
            <p class="pagebreakhere">
                 
        </ItemTemplate>
 
        </telerik:RadListView>
    </ItemTemplate
</telerik:GridTemplateColumn>

RJ
Top achievements
Rank 1
 answered on 25 Apr 2016
1 answer
254 views

I have a telerik:RadTreeNodeBinding within a telerik:RadComboBox.

Is there a way to format the parent node in bold text of a databound radtreeview?

Thanks,

Roger

 

 

Roger
Top achievements
Rank 1
 answered on 22 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?