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

Hi I am trying to add add a RadComboxBox to my RadGrid filtertemplate in a bound column.  For some reason in the code behind I can not access the RadComboBox.  It keeps coming back null.  I'm not sure what I'm doing wrong.  Here is my code.

<telerik:GridBoundColumn SortExpression="Product_Name" HeaderText="Product Name" DataField="Product_Name" UniqueName="ProductName">
                             <FilterTemplate>                                 
                                <telerik:RadComboBox runat="server" ID="cmbProductName" CheckBoxes="true" ClientIDMode="Static" 
                                     AppendDataBoundItems="true" DataValueField="Product_Name" EnableCheckAllItemsCheckBox="true">                                
                                </telerik:RadComboBox>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>

 

 foreach (var cat in CatProdList)
            {               
                var itemCategory = new RadComboBoxItem(cat.Category.Name);

                var option = cat.ProdAttributesTuple.GroupBy(a => a.Item2.Attribute.Value).ToList();
                foreach (var attr in option)
                {
                    if (e.Item is GridDataItem)
                    { 
                        RadComboBox cmbProductName = (RadComboBox)e.Item.FindControl("cmbProductName");                      

                        var item = new RadComboBoxItem(attr.Key);

                        cmbProductName.Items.Add(item);                    
                    
                    }
                        
                }
            }     

Eyup
Telerik team
 answered on 03 Sep 2015
1 answer
94 views

I create web pages for an IT department to monitor many servers.  I use Telerik Rad Controls for ASP.NET.  My problem is that the pages need to read a lot of data and are not quick to respond.  For example, on the Page_Load I query 50 servers (often using asynchronous tasks) to display the information in a RadGrid.  This takes a while and feels unresponsive.  I think I want to be able to display a page immediately and then fill it in as data is returned.  In addition when I make a change to a single server I sometimes query all the servers again to update the RadGrid and display the page again.  Specifically this example could be a question of how to update only parts of a RadGrid (which a recent post said can't be done), but this is just an example.  I may be going about this all wrong.      

What I really want to know is if there are Telerik programs besides Rad Controls for ASP.NET or things within Rad Controls that I should be using/learning to make my pages more responsive (I can't even seem to display an hourglass icon).  I have used UpdatePanels with some effect.  I have also looked into SignalR.  I see many Telerik examples that seem to do what I want, but then end up not working, which could just be my fault.  What products should I be looking into?  I need to use Windows IIS web servers, but not necessarily ASP.NET, but I would like to keep using that if possible.

Thanks,

Scott

Konstantin Dikov
Telerik team
 answered on 03 Sep 2015
2 answers
449 views
Hello,

Requirement : User should be allowed to resize the column width manually(similar to how Excel columns can be adjusted by dragging the line between the columns to the left or right)

What I have implemented : I am using the "Resizing" property on the client side(attached Grid.ascx) and is working as expected.

Issue : After using "Resizing" I am able to resize the column. But, once I reduce the size of the width, the cell contents doesn't get hidden as per the width size. Please see the attached screenshot for better clarity.

As per my analysis, in the code behind ItemDataBound event, I am assigning css class dynamically which is causing this issue. Please see the Grid.ascx.vb in the attached rar file.

Please let me know if you need anything else.

 

Thanks,

Sam
Angel Petrov
Telerik team
 answered on 03 Sep 2015
2 answers
194 views

Hello,  

I have RadComboBox inside A RadGrid Batch. I need to get DataKeyValue of the row on SelectedIndexChanged of the RadComboBox.

I tried to use : RadComboBox.Parent to get the GridDataItem also I tried RadComboBox.NamingContainer. Both methods didn't work.

Thanks for helping.

Regards,

Abitar

Abitar
Top achievements
Rank 1
 answered on 03 Sep 2015
3 answers
194 views
Hi everyone
Could someone please be kind and provide a example of the RibbonBar in a MVC application?
And i know that i can only use client-side programming with it.

Thanks
Sebastian
Telerik team
 answered on 03 Sep 2015
4 answers
1.0K+ views

I have 2 situations..............

Number 1 : 

        <div id="container">      
        <input type="text" 
               class="k-textbox" 
               class="k-input k-textbox"
               pattern="\d{10}"
               data-pattern-msg="enter a value according to the pattern"
               />
      <input type="button" value="validate" id="validateButton"/>
    </div>                  

    <script type="text/javascript">
      $("#container").kendoValidator();

      $("#validateButton").click(function () {
        $("#container").data("kendoValidator").validate();
      });
    </script> 

       This is working correctly. Please see​ above input type is text .

 

Number 2 : 

        <div id="container">      
        <input type="number" 
               class="k-textbox" 
               class="k-input k-textbox"
               pattern="\d{10}"
               data-pattern-msg="enter a value according to the pattern"
               />
      <input type="button" value="validate" id="validateButton"/>
    </div>                  

    <script type="text/javascript">
      $("#container").kendoValidator();

      $("#validateButton").click(function () {
        $("#container").data("kendoValidator").validate();
      });
    </script>​

 This is not working . Please see above input type is number.

 

So is  "data-pattern-msg" is not supported for the input type "number" ???

 

 

Rosen
Telerik team
 answered on 03 Sep 2015
3 answers
207 views
Hi

How can I add an item requested event to combobox from client click of a button?
Priyanka
Top achievements
Rank 1
 answered on 03 Sep 2015
1 answer
108 views

I'm finding that if our users have the Pinterest browser plugin installed they end up with (sometimes a lot) of additional code added to their HTML content they are working on.  The extra content looks like this:

<p><span style="line-height: 1.5;"><a href="//www.pinterest.com/pin/create/extension/" style="height: 20px; width: 40px; position: absolute; opacity: 0.85; z-index: 8675309; display: none; cursor: pointer; border: medium none; background-color: transparent; background-image: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAYAAAD/Rn+7AAADU0lEQVR42s2WXUhTYRjHz0VEVPRFUGmtVEaFUZFhHxBhsotCU5JwBWEf1EWEEVHQx4UfFWYkFa2biPJiXbUta33OXFtuUXMzJ4bK3Nqay7m5NeZq6h/tPQ+xU20zugjOxR/+7/O8539+5znnwMtNTExwJtMb3L/fiLv3botCSmUjeCaejTOb39AiFothfHxcFIrHY8RksZjBsckJcOIRMfFsHD/SsbExUYpnI8DR0dGUGjSb0byhEJp5Uqg5CTSzc2CQleJbMEj9/ywBcGRkJEk9DQqouEVQT1sK444yWI9UonmTjGqauVLEIlHa9x8lAMbj8SSpp0rwKGMVvg8P46vbg0C7na8z8JsMcgHe7jlEa+edRhiLy8n/TUMfu6EvLElk+U0WtGwrTrdfAGQf5J8iiK4LVzDU28t8JtMSocf8E+l68myaNFXm/6rXslLK7ay5TOunuRvZWpJuvwAYjUaTpOIWoquuAZ219RTaxKYp9BbjycoN5FvL9qH9TBX5rvoGdJythvXYSTxdtRnWylO/ZdqrLsGwszzhWQ593z2KlAwCYCQSSZJ6ehZ0W7bD9VBLgN0NCqr3qR7R2rBrL3pu3Sb/7nDlz2uy6cG0OXk0GTbZXzNp8trsPAQdTj6frlWzN2DcXZGKQQAMh8NJ6rpyHe+PnkCr/CAFdZyvpfpjuvkifLF9wIt1Wwlo0OHie1RvWrKa93RjzfzliTzPKz3ltB0/Tevmwp14wGUgHAzSOoUEwFAolFaaBSuhnslPRkJexUJtZ6v5HtUeLswl33n1BgEY5fvhs9sJ3FAiT+QYyyvoAQJuD0KBAFRTJNAuz5/s3gJgMBhMJwrVFRThM5tY5zUF/A4X1f2fvQTRLCuBreoim0YmAbqNJryvPEXeeq46kaNdkQ/1HCncbJKPs9ZSv2VHGfWsZ2hfkhKAfr8/pdxWKx4wwD69PmVfNSOL+lr2w+gYqHpWDtXt1xQ8AMlWU0e1lqLd/APRHoP8AJqWrQG9gYxcPMsvSJUvAA4MDKTUJ7MZLaVy8v+qT21tcDx/OemePr0RTkNrur4A6PP5xCgBsL+/X4wiQDpuuVxOeL1eMYmYeDY6sOp0z+B0OuHxeEQhxkJMFosJiSO/UinOI/8Pc+l7KKArAT8AAAAASUVORK5CYII=&quot;); top: 1909px; left: 432px;"></a></span><br></p><p></p>

 

 and this can be repeated, 2, 3, 15+ times depending on how many times it's edited.  There isn't any way that we can prevent users from installing this plugin, and there isn't any way that we can prevent users from using the editor if they have this plugin, so we have to figure out a way to work around it.  Ideally i guess we'd need some kind of filter to auto remove this, but i guess we'd need something server side as well.  I'm going to take a stab at it, but i was wondering if this has come up before.  i'm surprised that i didn't see any mention of this anywhere else in the forum.

Thanks!

-Mark

 

Ianko
Telerik team
 answered on 03 Sep 2015
1 answer
106 views

Hi Guys

I am looking for some ideas to fix an issue after server move. Both old and new servers are windows 2008 R2 with iis 7 / asp.net 4.0.

I have a grid in which one of the columns in the edit dialog has an editor in which an image can be uploaded. It has been working fine for a year at least, so the code is OK. However in the new location, only the 'upload' part now works. When 'Insert' is selected, the editor toolbar greys out, and hangs. If I then select 'cancel' to close the editor, that process hangs and I have to close the page to escape. There does not seem to be an error generated in the windows logs.

Obviously I don't want to mess with existing code, which is working fine on the old server, (and I am supposed to be retired now...) so I am thinking along the lines of permissions or other iis settings.

Can anyone one help?!

The permissions are enough for the image to be uploaded, so where else should I be looking?

Thanks for any help here.

Clive

P.S The site is using Telerik asp.net ajax version Q3 2013

Ianko
Telerik team
 answered on 03 Sep 2015
4 answers
176 views
Hi

We would like to be able to set the expires header for files uploaded using the cloudupload, but I could not find any info on this in the Documentation. I am already implementing a Custom Amazon S3 Provider if this is of any use.

Thanks in advance.
Sypher
Top achievements
Rank 1
 answered on 02 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?