Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views

Hi

I am using the RadRating list control.  Once the user has entered there data - I would like to show what they have chosen on the next page.  The value they have chosen is storing just fine.  But when they are on the next page I want to show the rating they choose.  I thought the RadRating1.SelectedItem.Value might do the trick but this does not set the item that has been selected.

Any ideas how I show the item they selected on another page - but using the same RadRating control

Thanks in advance

 


Indy
Top achievements
Rank 1
 answered on 15 Nov 2016
5 answers
301 views
Hi,

I have telerik Rad Grid Control. I want disabled row to be checked even if someone check/uncheck select all functionality. So I have written below Jquery code to handle it.

$(document).ready(function () {
        $("#SelectColumnSelectCheckBox").click(function () {
            var checked = this.checked;                      
            if (checked == false) {
                $("#ctl00_MainContent_gridRules_ctl00 tbody tr").each(function () {
                    if ($(this).attr('disabled') == "disabled") {
                        $(this).find("input").attr('checked', 'checked');
                    }
                });
            }
        });
    });

I want to change the hardcoded value of grid (ctl00_MainContent_gridRules_ctl00) and Select all checkbox (SelectColumnSelectCheckBox) to clientID.

I have tried <%=Radgrid.ClientID%> but that does not work.

Does anyone know how to get the clientID of the telerik RAD grid?

Please give me reply sooner as this is urgent for me.

Thanks in advance.

Regards,
Devendra.
Marin Bratanov
Telerik team
 answered on 15 Nov 2016
4 answers
79 views

Hi,

I have a "Rneame" context menu on my treeview that gets handled client-side and initiates node.startEdit(); The node goes into edit mode & the user can edit the text and hit enter and all looks fine on-screen.

The problem come during postback though - the node in code-behind still has the old name?

 

function tvwListData_ClientContextMenuItemClick(sender, args) {
 
    var tree = $find("<%= tvwListData.ClientID %>");           
    var node = args.get_node();           
 
    tree.trackChanges();
 
    var item = args.get_menuItem();
    switch (item.get_value()) {
 
        case "Rename":
            node.startEdit();
            break;
 
        case "Delete":
            node.get_parent().get_nodes().remove(node);
            break;
    }           
    tree.commitChanges();
}
Ivan Danchev
Telerik team
 answered on 15 Nov 2016
2 answers
236 views

Hi,

I have a RadGrid inside the EditForm of the main RadGrid:

<telerik:RadGrid runat="server" ID="RadGrid1">
  <EditFormSettings EditFormType="Template">
    <FormTemplate>
      <div>
        <asp:Panel runat="server" ID="Panel1">
          <table><tr><td>
            <telerik:RadGrid runat="server" ID="InnerRadGrid"></telerik:RadGrid>
          </td></tr></table>
        </asp:Panel>
      </div>
    </FormTemplate>
  </EditFormSettings>
</telerik:RadGrid>

 

How can I reach via javascript the InnerRadGrid

I tried using 

RadGrid1.Controls.Add(new LiteralControl("<script type='text/javascript'>window['InnerRadGrid'] = '" + InnerRadGrid.ClientID + "';</script>"));
 var grid = document.getElementById(window['InnerRadGrid']);

 

in RadGrid1_ItemCreated() but id doesn't work.

 

I need it because in the header of some TemplateColumn in the InnerRadGrid I have a checkbox which, when toggled, shoul select/deselect every checkbox in that column. If there is another way to reach this functionality, it'd be fine.

 

Thank you, regards

Nick

Nick
Top achievements
Rank 1
 answered on 15 Nov 2016
3 answers
138 views

On the Telerik site, hyperlinks are not encoded when saving the link in Linkmanager, see screenshot #1.

 

In our application the %20 are once more encoded to %2520 when OK-ing the Linkmanager, see screenshot #2.

 

All ContentFiltering is set Standard, just like the demo site...I am using EditorDialogs/LinkManager.ascx though.

 

Marc

 

Vessy
Telerik team
 answered on 15 Nov 2016
1 answer
262 views

Hi All,
I’m facing a performance problem with a new website that we have developed. After checking the website with Gtmetrix I got bad results for the bellow

Leverage browser caching
Specify a cache validator
Defer parsing of JavaScript

I’m also attaching a Print Screen. I did a research over the web but I didn’t find a solution for my problem.

Do you have any Suggestion?

Marin Bratanov
Telerik team
 answered on 15 Nov 2016
3 answers
125 views
How can I force new item to be saved before user clicks "add new" again. Sometimes user press "add new" by accident and the data will be lost.
Eyup
Telerik team
 answered on 15 Nov 2016
1 answer
421 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
143 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
105 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?