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

I´m working on a RadGrid which have three fixed columns and several neither. The question is that if i try to group by columns, Radgrid begins to act exactly as if tablelayout="fixed". Only grouped, not in every postback.

so even if i change the width just like this thread says 
http://www.telerik.com/forums/radgrid-grouping-causing-columns-to-be-resized

I´m still having an issue because columns only expand and stretch like an acordeon. No scroll at all, act exacly as fixed.


<telerik:RadSplitter ID="RadSplitter1" runat="server">
    <telerik:RadPane ID="VSPRadPane" runat="server" Scrolling="None" OnClientResized="VSPGridCreated">
        <div style="text-align: right">
            <telerik:RadButton ID="ExportButton" runat="server" Text="Exportar a Excel" OnClick="ExportButton_Click"></telerik:RadButton>
        </div>
        <div id="VSPGridContainer" style="height: 97%;">
            <telerik:RadGrid ID="VSPMainRadGrid" runat="server" AutoGenerateColumns="false"
                AllowSorting="true" AllowPaging="true" PageSize="100"
                OnNeedDataSource="VSPMainRadGrid_NeedDataSource"
                OnUpdateCommand="VSPMainRadGrid_UpdateCommand"
                OnItemCreated="VSPMainRadGrid_ItemCreated"
                OnDeleteCommand="VSPMainRadGrid_DeleteCommand"
                OnInsertCommand="VSPMainRadGrid_InsertCommand"
                OnGroupsChanging="VSPMainRadGrid_GroupsChanging"
                EnableLinqExpressions="false"
                >

                <ClientSettings AllowDragToGroup="True">
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" FrozenColumnsCount="5" />
                    <ClientEvents OnGridCreated="VSPGridCreated" />
                </ClientSettings>

                <MasterTableView DataKeyNames="Id" AllowNaturalSort="false" HierarchyLoadMode="Client" CommandItemDisplay="Top" AllowFilteringByColumn="True"
                    InsertItemPageIndexAction="ShowItemOnCurrentPage" AutoGenerateColumns="false" ClientDataKeyNames="Id" TableLayout="Auto">
                    <Columns>
                                [...]
                     </columns>
                             <EditFormSettings EditFormType="Template" PopUpSettings-Modal="true">
                                [...]
                              </EditFormSettings> 
                </MasterTableView>
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                <GroupingSettings CaseSensitive="false"></GroupingSettings>
            </telerik:RadGrid>
        </div>
    </telerik:RadPane>
    <telerik:RadPane ID="RadPane1" runat="server" Collapsed="true" />
</telerik:RadSplitter>

Any suggestion?

Thanks.
Angel Petrov
Telerik team
 answered on 14 Nov 2014
13 answers
187 views
Hi,

I'm having an issue with treeview not displaying any items due to the .rgtTreelistContent is being rendered with style='height: 0'. 
See attachement for html.
Bozhidar
Telerik team
 answered on 14 Nov 2014
1 answer
77 views
I'm having a hard time just finding the handle to a RadButton.  I've tried every Javascript/jQuery technique I can think of but no luck.

I have RadButtons set up as checkboxes in rows of 3 in an Asp:Repeater.

On the OnClientClicked event I call a Javascript function.  The first thing it does is call sender.get_uniqueID() which returns a string like rp1$ctl05$chkSelect.

Once I have that it's a simple matter to parse the string to assemble the unique IDs of the other checkboxes in the row.

Unfortunately no technique I can think of will return a handle that will allow me to do a set_checked call on either of the other checkboxes in the row.  It's always null.

Suggestions?
Boris
Top achievements
Rank 1
 answered on 13 Nov 2014
2 answers
155 views
I am using a Ajax RadGrid to display contents, however, I want to have text show up in some columns instead of numbers. I have attached a screenshot of my grid. I may have setup my database wrong, so I'd like some help trying to correct this, please. I have a primary table called "kb" which holds the values inserted from a web form. I have about a dozen AccessDataSource tags with different select statements: one for each control on the form. So if I have a drop-down called "kbcategory" I also have an AccessDataSource which is pulling from a table called "category" for all the values. So my category table would have several rows with data like (apples, bananas, pears, etc.). My insert statement to put my form data into my "kb" table pulls the "id" values from the drop-downs in the form and enters their numeric values. So all my drop-downs in my "kb" table have number listed in them. I created a pk/fk relationship between my primary table "kb" and all the other tables.

So, now I want to display my data in a grid, but I don't want to show the numeric values of the drop-down columns. I want their respective textual values: like apples or bananas. As you can see from my screenshot I am only showing numbers in the columns named "kbcategory" and "kbsubcatid".

How can I get these columns to show text instead of numbers?

Thanks in advance.
Mitch
Top achievements
Rank 1
 answered on 13 Nov 2014
11 answers
4.5K+ views
Hi

İ m using datepicker, i want to format selected date as dd/mm/yyyy. but if day is one digit, zero must come in front of day number. for example if i select 3 may 1999, selected date must be 03/05/1999 not 3/5/1999, how can i do this?

thanx
Brian
Top achievements
Rank 1
 answered on 13 Nov 2014
13 answers
382 views
Greetings,

As the question states, I'm trying to set the default for the 'Font Name' drop down on the RadEditor.  I'd like to set the font style and size to Arial, 12pt.

Is this possible?  I have custom buttons on the editor and I know it's possible to set indexes on dropdowns but I don't know if Telerik will allow me to set such indexes for these predefined buttons.  It doesn't look like the Tools File provides any access to this area.

Thanks!
John
Abdallah
Top achievements
Rank 1
 answered on 13 Nov 2014
3 answers
108 views
Hello,

I found something strange and I need help.

I'm using Docks on page as component containers. Whole web is using Bootstrap framework. Now I have a page with full screen Dock and inside is used fixed navbar from Bootstrap (http://getbootstrap.com/components/#navbar-fixed-top). All seems to be ok. On small devices navbar collapses, page scrolls and navbar is fixed on top of page.

But not on Android devices and iPhone. Fixed position is not working and scrolling in page scrolls navbar.

I found, that it happens because of RadDock styles:

.RadDock {
 /* improves drag&drop in mobile browsers */
 -webkit-transform: rotate3d(0, 0, 1, 0);
 -webkit-backface-visibility: hidden;
 -webkit-perspective: 1000;
 -moz-transform: rotate3d(0, 0, 1, 0);
 -moz-backface-visibility: hidden;
 -moz-perspective: 1000;
 -o-transform: rotate3d(0, 0, 1, 0);
 -o-backface-visibility: hidden;
 -o-perspective: 1000;
 -ie-transform: rotate3d(0, 0, 1, 0);
 -ie-backface-visibility: hidden;
 -ie-perspective: 1000;
}

Problem is in -webkit-transform and -webkit-backface-visibility. I know it is some kind of fix for Android devices and fixed position, but if I remember, it should be placed only to fixed element, or not?

Check attached project:
http://raptor.cestiny.cz/Temp/TelerikBootstrapTest.rar

Simply run included page on Android device or in Chrome developer tools. See this picture for "config":
http://raptor.cestiny.cz/Temp/raddock.jpg

Selecting mode to any Android device (Nexus, iPhone, ...) will lead to not working fixed position. Non-android devices (Windows Phone, ...) works fine.

Any idea what to do?






Slav
Telerik team
 answered on 13 Nov 2014
2 answers
153 views
I used to have no problem embedding an instagram post using the RadEditor. But seems like instagram changed their embed code and now it is no longer working. RadEditor seems to do something to the instagram code. I have AllowScripts="true" ContentFilters="None" RenderMode="Lightweight". Not sure what else I can do.

<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-version="4" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAGFBMVEUiIiI9PT0eHh4gIB4hIBkcHBwcHBwcHBydr+JQAAAACHRSTlMABA4YHyQsM5jtaMwAAADfSURBVDjL7ZVBEgMhCAQBAf//42xcNbpAqakcM0ftUmFAAIBE81IqBJdS3lS6zs3bIpB9WED3YYXFPmHRfT8sgyrCP1x8uEUxLMzNWElFOYCV6mHWWwMzdPEKHlhLw7NWJqkHc4uIZphavDzA2JPzUDsBZziNae2S6owH8xPmX8G7zzgKEOPUoYHvGz1TBCxMkd3kwNVbU0gKHkx+iZILf77IofhrY1nYFnB/lQPb79drWOyJVa/DAvg9B/rLB4cC+Nqgdz/TvBbBnr6GBReqn/nRmDgaQEej7WhonozjF+Y2I/fZou/qAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div></div> <p style=" margin:8px 0 0 0; padding:0 4px;"> <a href="https://instagram.com/p/vQ-OYvoh4Q/" style=" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;" target="_top">For 14yrs, my cousin Ben proudly served as a Navy SEAL. Receiving two Bronze Star Medals and The Purple Heart. Willing to risk his life, so we can live ours - in freedom. Think about that for a moment... the life our families get to enjoy daily... are a direct result of very special men and women who are willing to sacrifice their own. War and combat is polarizing and I understand that. Everyone has a view. Rising above the politics of it all... I humbly say THANK YOU to our US veterans and current men and women in uniform. Love you Ben. Thank you brother - for everything. #VeteransDay #Gold #LongLiveTheBrotherhood #HolyShitYourHeadLooksBigInThisPicture</a></p> <p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;">Ein von therock (@therock) gepostetes Foto on <time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" datetime="2014-11-11T15:54:07+00:00">Nov 11, 2014 at 7:54 PST</time></p></div></blockquote><script async defer src="//platform.instagram.com/en_US/embeds.js"></script>

Mark
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 13 Nov 2014
1 answer
103 views
Hi!

With the 2014 Q3 release it seems to be impossible to draw an ellipsis. The circle is now only working with a radius (width OR height) and even an ellipsis-path (custom visual template) is rendered as a circle.
Am I wrong?

Best regards,
Hans
Niko
Telerik team
 answered on 13 Nov 2014
2 answers
225 views
Hi,

Could you implement export of svg as image without third party program(like inkSpace).
Tomislav
Top achievements
Rank 1
 answered on 13 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?