Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
113 views
hello i am trying Telerik asp net demo and I was using raddropdown, I caricoto a client of mine who has the very long name and appears in multiple lines instead I wish that the name be truncated then adding the 3-point suspension.

example: NON SOLO CAFFE' AL MONTE...

you can do this and how?
Fabio Cirillo
Top achievements
Rank 1
 asked on 18 Nov 2016
2 answers
123 views

Hi

Is it possible for the task name in the gantt to word wrap? For example, if the name of the task is longer than the bar that represents the duration of the task, the task name cannot be read. If the task bar could wrap, then the full task name can be seen, albeit on multiple lines. I do understand that hovering over the task will reveal a tool-tip that displays full details of the task.

Please note that I am using a GanttCustomerProvider to populate that gantt control. Please see attached Code.png.

Kind regards,

Rob

Rob
Top achievements
Rank 1
 answered on 18 Nov 2016
1 answer
85 views

Hi I am new to telerik and trying to group grid based on PG_C_ENTITY_ID. though this field is available in data source I am getting the error :Field PG_C_ENTITY_ID not found in the source table. Please check the expression syntax.

PFA the datasource image. please guide on the same.

 

on ascx page :

 

 <telerik:RadGrid RenderMode="Lightweight" ID="PricingGroupGrid" runat="server" PageSize="20"
                                    AllowMultiRowSelection="True" AllowPaging="True" ShowGroupPanel="True"
                                    AutoGenerateColumns="False" GridLines="none" OnNeedDataSource="PricingGroupGrid_NeedDataSource" 
                                    OnItemCommand="PricingGroupGrid_ItemCommand">
                                    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                                    <MasterTableView Width="100%">
                                        <GroupByExpressions>
                                            <telerik:GridGroupByExpression>
                                                <SelectFields>
                                                    <telerik:GridGroupByField FieldName="PG_C_ENTITY_ID"></telerik:GridGroupByField>
                                                </SelectFields>
                                                <GroupByFields>
                                                    <telerik:GridGroupByField FieldName="PG_C_ENTITY_ID"></telerik:GridGroupByField>
                                                </GroupByFields>
                                            </telerik:GridGroupByExpression>
                                        </GroupByExpressions>
                                        <Columns>
                                            <telerik:GridEditCommandColumn HeaderText="Edit" ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Font-Bold="true">
                                                <HeaderStyle Width="80px"></HeaderStyle>
                                                <ItemStyle CssClass="MyImageButton"></ItemStyle>
                                            </telerik:GridEditCommandColumn>
                                            <telerik:GridBoundColumn SortExpression="PricingTyp" HeaderText="Type" UniqueName="PricingTyp" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="PricingTyp">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="RatePlanId" HeaderText="Rate Plan Id" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="RatePlanId">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="DisplayStartDate" HeaderText="Start Date" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="DisplayStartDate">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="DisplayEndDate" HeaderText="End Date" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="DisplayEndDate">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="DisplayRate1" HeaderText="Rate" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="DisplayRate1">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="RateClass" UniqueName="RateClass" HeaderText="Rate Class" HeaderButtonType="TextButton" HeaderStyle-Font-Bold="true"
                                                DataField="RateClass">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                    <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowColumnsReorder="false">
                                        <Selecting AllowRowSelect="True"></Selecting>
                                        <Resizing AllowRowResize="false" AllowColumnResize="false" EnableRealTimeResize="false"
                                            ResizeGridOnColumnResize="False"></Resizing>
                                    </ClientSettings>
                                    <GroupingSettings ShowUnGroupButton="false"></GroupingSettings>
                                </telerik:RadGrid>

 

on ascx.cs page:

 

 int pgId = 0;
            IEnumerable<LGCPricingGroup> lgcPricingGroup = new Prospects().GetPricingGroups(dealsheetId);
            List<LGCPricingBlock> lstPricingBlocks = new List<LGCPricingBlock>();
            //IEnumerable<LGCPricingBlock> lgcPricingBlocks = Enumerable.Empty<LGCPricingBlock>();
            foreach (var lgcPgGroup in lgcPricingGroup)
            {
                pgId = lgcPgGroup.Id;
                List<LGCPricingBlock> lstPricingBlock = new List<LGCPricingBlock>();
                IEnumerable<LGCPricingBlock> lgcPricingBlocks = new Prospects().GetPricingBlocksByPricingGroup(pgId);
                lstPricingBlock = lgcPricingBlocks.ToList();
                foreach (var item in lstPricingBlock)
           {
                    //GridGroupByExpression expression = new GridGroupByExpression();
                    //GridGroupByField gridGroupByField = new GridGroupByField();
                    //gridGroupByField = new GridGroupByField();

                    //gridGroupByField.FieldName = "item.PG_C_ENTITY_ID";
                    //gridGroupByField.FieldAlias = "item.PG_C_ENTITY_ID";
                    //gridGroupByField.HeaderText = "Pricing Group" + lgcPgGroup.PricingGroupSeq;
                    //expression.SelectFields.Add(gridGroupByField);
                    //RadGrid1.MasterTableView.GroupByExpressions.Add(expression);
                    lstPricingBlocks.Add(item);
           }
            }
            PricingGroupGrid.DataSource = lstPricingBlocks;
            PricingGroupGrid.DataBind();

Eyup
Telerik team
 answered on 18 Nov 2016
2 answers
245 views

Hi. i like that AsyncUpload is able to automically create a new file upload control to allow multiple uploads. but i wants to know is it possible to add additional field to each row? i want to add a dropdown list for users to select the document type of the file he uploaded

 

My Code:

01.<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnClientFileUploaded="onClientFileUploaded" MultipleFileSelection="Automatic"></telerik:RadAsyncUpload>
02.
03.<script>
04.
05.    (function () {
06.
07.        window.onClientFileUploaded = function (radAsyncUpload, args) {
08.            var row = args.get_row(),
09.                inputName = radAsyncUpload.getAdditionalFieldID("documentType"),
10.                inputType = "text",
11.                inputID = inputName,
12.                input = createInput(),
13.                label = createLabel(inputID),
14.                br = document.createElement("br");
15.
16.            row.appendChild(br);
17.            row.appendChild(label);
18.            row.appendChild(input);
19.        }
20.
21.        function createInput() {
22.            var input = document.createElement("select");
23.              var option = new Option();
24.              option.value = "HR";
25.              option.text = "HR";
26.              input.options.add(option);
27.
28.           var option1 = new Option();
29.           option1.value = "Finance";
30.           option1.text = "Finance";
31.            input.options.add(option1);
32.
33.              var option2 = new Option();
34.              option2.value = "IT";
35.              option2.text = "IT";
36.              input.options.add(option2);
37.            return input;
38.        }
39.
40.        function createLabel(forArrt) {
41.            var label = document.createElement("label");
42.
43.            label.setAttribute("for", forArrt);
44.            label.innerHTML = "Document Type: ";
45.
46.            return label;
47.        }
48.    })();
49.</script>

 

i receive the error shown in attached image

Benjamin
Top achievements
Rank 1
 answered on 18 Nov 2016
5 answers
448 views

Hi,

All my radbutton found my application pages can be click even when it's disabled. Is it anything to do with the RadSkin that I'm using? Also my javascript popup for confirmation will still execute even when i click on the cancel button. Can anyone help me? Thanks in advance.

Regards,
Dylan
Rumen
Telerik team
 answered on 17 Nov 2016
8 answers
197 views
Hi,

I want to add a usercontrol into a node from treeview dynamically, and I think that this node will be inserted in a nodetemplate. I searched through forum, but I didn't find about it.

If someone knows please tell me.

Thanks
Aya
Top achievements
Rank 1
 answered on 17 Nov 2016
3 answers
530 views

Has anyone experienced a problem where the standard Previous button created by the RadWizard control always causes validation to occur when clicked?

The Telerik documentation states that the previous button does not cause validation, however when I click previous, any field validators that fail will stop the wizard from moving to the previous step.

I've looked through the object properties and methods but cannot find any way to modify the previous button properties.

The version I'm using is 2015.2.623.40 according to the DLL file information.

Ivan Danchev
Telerik team
 answered on 17 Nov 2016
1 answer
119 views
We need more space to see the file names as many filenames vary by only the last few characters. We are using version 2011.2.712.40. What do I need to do to increase the space for the filenames?
Rumen
Telerik team
 answered on 17 Nov 2016
1 answer
88 views

hi all,

I am new to telerik . I had a doubt regarding how to use radcombobox and editable textbox inside a radgrid.

I have attached the image for better understanding.

Each row in radgrid i need radcomboxbox and editable textbox and commands against them . Commands are edit,save,delete.

 

 

Eyup
Telerik team
 answered on 17 Nov 2016
4 answers
224 views

I have an ASP.Net page with Telerik controls like the RadMenu, RadButtons, RadTextBox, RadLabels, and RadioButtonList at the top of the page.

After the Telerik controls there is a Crystal Report Viewer control.

I need a way to keep all the Telerik controls at a fixed position at the top of the page so that no matter how the user scrolls the rest of the page including the Crystal Report Viewer, that all the Telerik controls will stay in view.  This needs to be able to work on mobile devices (Android, iOS, Windows) as well.

I have tried using CSS position: fixed with a div but that does not work well and gets even worse on Android devices.

Any ideas?

Please help.

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 16 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?