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

I'm using a dropdownlist with clientdatasource. How can I rebind it to refresh its content ?

Anton
Telerik team
 answered on 15 Nov 2016
1 answer
153 views
I've a RadGrid with, in a NestedViewTemplate, another RadGrid, now I would like to refresh the external RadGrid maintaining the internal RadGrid opened, is this possible?
Konstantin Dikov
Telerik team
 answered on 15 Nov 2016
2 answers
131 views

Hi,

I have encounter a new bug with my export pdf.
It was working in 2016 R2 SP1. I was in 2016 R3 when we discovert it first and upgrading to SP1 and SP2 didn't fix it.

So i have a function in code behind that process a predefined telerik report and send it via 'Response'.

protected void ExportButton(object sender, EventArgs e)
 {
    // [...] HiddenCode [...]
 
    ReportProcessor reportProcessor = new ReportProcessor();
    Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
    instanceReportSource.ReportDocument = rpt;
    RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
    string fileName = doc + "." + result.Extension;
    Response.Clear();
    Response.ContentType = result.MimeType;
    Response.Cache.SetCacheability(HttpCacheability.Private);
    Response.Expires = -1;
    Response.Buffer = true;
    Response.AddHeader("Content-Disposition"
                            , string.Format("{0};FileName=\"{1}\""
                                            , "attachment"
                                            , fileName)     );
    Response.BinaryWrite(result.DocumentBytes);
    Response.End();
}

 

If i have a RadButton outside of the grid calling this it works. When the button is in the CommandItemTemplate I get Nothing.
Or i get just some server lag.. sometimes a js unnamed error. and that on every Browser.

Stef
Telerik team
 answered on 14 Nov 2016
0 answers
115 views
 Telerik Grids are Binding In this way Please look into attach image. its Binding with odd behavior in all browsers that is clearly mentioned in attach image. Its just for single Search ID from system . For other ID's Grids are Binding and its working fine. But not for Single ID. like 4567 on Search. And console error is prompting just against this ID not for others .Please Help me out .. Help will be Appreciated !! 
Quest
Top achievements
Rank 1
 asked on 14 Nov 2016
1 answer
91 views

Hi,

I have a treeview that is built manually (no data-bind) using the metro theme. I'd like to set some node colours to red but neither of the two options below seem to have any effect?

ret.CssClass = "red";
 
ret.BackColor = Color.Red;
Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 14 Nov 2016
3 answers
110 views

 var node = new RadTreeNode(valuedata, textdata);
                                       
node.Checked = true;                      
                   
rddtboxBuisness.EmbeddedTree.Nodes.Add(node);

 

When adding nodes to the control I cant default the checkbox to true...

am I doing anything wrong ?

Ivan Danchev
Telerik team
 answered on 14 Nov 2016
2 answers
153 views

I'm trying to add data/item to a listbox with custom ClientItemTemplate where I'm not using Text or Value but using other variables.

<telerik:RadListBox ID="AlarmListBox" runat="server" Height="100%" Width="100%" RenderMode="Lightweight" ClientDataSourceID="AlarmClientDataSource" OnClientSelectedIndexChanged="OnListItemSelected">   
    <EmptyMessageTemplate>
        <asp:Label runat="server" Text="No Alerts"></asp:Label>
    </EmptyMessageTemplate>
     <ClientItemTemplate>
          <div class="alarm">
            <div class="alarm-wrapper">
                <img src="#: src #" class="img-responsive alarm-list-image" style="float: left" ;/>
                <dl class="alarm-list-details">
                    <dt class="name">#= type #</dt>
                </dl>
                <div style="clear: left" />
                </div>
            </div>
    </ClientItemTemplate>
</telerik:RadListBox>

At first, I was using the listbox without a data source and I was able to add to the data by setting the attributes of a new listboxitem from the client-side.

Then I wanted to use a dummy REST service to test populating results.

I was able to populate the listbox using the clientdatasource using "select" only.

Now I want to be able to use both functionality, to populate the listbox from the REST service and manually. I tried to add directly to the listbox but it failed because their is no attributes and when I added items to clientdatasource using add() method but the new item did not appear in listbox.

Which method of adding an item is correct bearing in mind that I want to update the results to the REST service eventually and how can it be done.

Omar
Top achievements
Rank 1
 answered on 14 Nov 2016
2 answers
118 views

I was trying to use a listbox with clientdatasource. But since the listbox cannot be rebinded yet, I decided to switch either grid or listview.

I was having some trouble selecting an item from listview so I'm using a grid with clientitemtemplate to fit by data into a single column.

What I want is to apply the ripple effect available when selecting an item in listbox to the grid,

so when I select a cell from the column it will have the ripple effect. 

if you can please provide me with a solution.

Omar
Top achievements
Rank 1
 answered on 14 Nov 2016
2 answers
109 views
hiii,
I want to show checkboxes only for child nodes of a radtreeview that is I want to hide checkboxes for parent nodes,how i can do that?


regards
Sri
Top achievements
Rank 1
 answered on 14 Nov 2016
1 answer
120 views

Hi,

I have a RadGrid with EditFormType="WebUserControl". In my usercontrol I have a custom validator to check the value and allow to update or not.

My problem is that  _dataItem is null on the CustomValidator_ServerValidate event.
I try this code :

public object DataItem
{
    get
    {
        return (object)ViewState["DataItem"];
    }
    set
    {
        ViewState["DataItem"] = value;
    }
}

But even with ViewState DataItem is always null (in CustomValidator_ServerValidate event).

Have you a solution ?

Eyup
Telerik team
 answered on 14 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?