Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
253 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
168 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
204 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
319 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
230 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
249 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
311 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
295 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
2 answers
207 views
On my site, from the main page a user will click and a RadWindow will open (set a Modal), and when the user clicks in the window, a second RadWindow opens (contained in the first RadWindow, and also a Modal).  From this second window, if a user clicks one of three buttons, there should be a confirmation dialog (handled through a radconfirm dialog).  Unfortunately, the dialog is not shown (it's probably hidden behind one of the two RadWindows).  I tried playing with the z-indexes but can't figure out how to get the confirmation dialog to be shown.  How can I get my confirmation dialog to be the top-most window?
Mike
Top achievements
Rank 1
 answered on 22 Apr 2016
4 answers
316 views

Is it possible to get a DatePicker as the editor when doing client-side batch editing? I've tried:

<telerik:GridDateTimeColumn DataField="FirstPaymentDate" PickerType="DatePicker" HeaderText="1st Pmt. Due" UniqueName="FirstPaymentDate" HeaderStyle-Width="100px" ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false" />

 and

<telerik:GridTemplateColumn HeaderText="1st Pmt. Due" UniqueName="FirstPaymentDate" DataType="System.DateTime" HeaderStyle-Width="100px" ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false"><br>                                <ItemTemplate><br>                                    <asp:Label runat="server" ID="date"Text='<%# Eval("FirstPaymentDate") %>'><br>                                    </asp:Label><br>                                </ItemTemplate><br>                                <EditItemTemplate><br>                                    <telerik:RadDateTimePicker ID="picker1" runat="server" DbSelectedDate='<%# Bind("date") %>'><br>                                    </telerik:RadDateTimePicker><br>                                </EditItemTemplate><br>                            </telerik:GridTemplateColumn>

 and in neither case do I get a DatePicker control when I click to enter edit mode.

I've searched extensively and haven't been able to find an example that does this. Is it possible? Can someone provide or point me to an example?​

Augusto
Top achievements
Rank 1
 answered on 22 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?