Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
63 views

Hi,
We are using Telerik windows control in one of our "X" application, Data will be displayed in a grid where we can group by or arrange and filter the data. It is working on other operating systems except windows 10 anniversary version. i tried few steps to fix the issue process of doing that found out that the same code we are using in another "Y" application when i debugged there it is working fine in "Y" application which is in Windows 10 anniversary version and not working in "X" application. May be its compatibility issue in the "X" application i am not able to say exactly whats going on can you help me with this issue.

Thanks in advance,
Mannava

mannava
Top achievements
Rank 1
 asked on 18 Nov 2016
1 answer
93 views

I have the following:

 

<telerik:GridTemplateColumn DataField="password" >
             <ItemTemplate>
                                         
                     <telerik:RadComboBox runat="server" ID="ddlActions" Skin="Silk" Width="115" AutoPostBack="true" OnSelectedIndexChanged="ddlActions_SelectedIndexChanged">
                   <Items>
                    <telerik:RadComboBoxItem Value="-1" Text="Select Action" />
                    <telerik:RadComboBoxItem Value="0" Text="Edit" />
                    <telerik:RadComboBoxItem Value="1" Text="Opt-out" />
                    <telerik:RadComboBoxItem Value="2" Text="Save" />
                     <telerik:RadComboBoxItem Value="3" Text="View" />
                     </Items>
                 </telerik:RadComboBox>
         </ItemTemplate>
</telerik:GridTemplateColumn>

 

 

protected void ddlActions_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadComboBox rcb = (RadComboBox)sender;
            GridDataItem data = (GridDataItem)rcb.NamingContainer;
 
            string pwd = data.GetDataKeyValue("pwd").ToString();
            string rid = data.GetDataKeyValue("rid").ToString();
             
            switch(rcb.SelectedValue)
            {
                case "0":
.....

 

 

The switch works perfectly the first time any radcombobox in the grid is changed.  The problem I am having is that when a subsequent radcombobox is changed in a different row, the sender appears to be the first radcombobox which was changed, not the actual (second) changed radcombobox.

 

How do I work around this?

 

 

 

 

 

 

 

 

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 18 Nov 2016
8 answers
414 views
Is it possible to have a RadNumericTextbox that ends up with the HTML5 "type" field set to "numeric"?  As it is right now, when i click into my numerictextbox using an Ipad, it brings up the letter keyboard instead of the numeric one.
Mark
Top achievements
Rank 1
 answered on 18 Nov 2016
1 answer
144 views

Hi,

we are exploring the template control to verify if we can build something like the attached picture. This is basically a timesheet module where people enter hours worked on a given project each day.

The idea is something like:

  • use the month view
  • each day will only have a single item
  • for each day, show a custom template on View that displays some static labels and an editable textbox
  • have a button on the page that saves to DB all the values provided for the current month.

Is that possible on using the Scheduler control?

 

Peter Milchev
Telerik team
 answered on 18 Nov 2016
5 answers
315 views

How would I go about limiting filter options in the header context menu?

Any help would be greatly appreciated

Thanks

Rumen
Telerik team
 answered on 18 Nov 2016
1 answer
99 views

While in Batch Edit mode and using a hierarchy table I am getting an error in the BatchEditCommand event. 

foreach (GridBatchEditingCommand command in e.Commands)

{

    Hashtable newValues = command.NewValues;

Hashtable oldValues = command.OldValues;

string newFirstName = newValues["FirstName"].ToString();

}

In the foreach method there is an error thrown saying that a column with the unique name "System" cannot be found.

The SaveAllHiearchyLevels attribute is set to true.  When I set the SaveAllHiearchyLevels attribute to false I do not get the error, but the e.commands = 0;

Note: The Grid is also being created from code behind and added to the page in the Init page event.

 

 

Viktor Tachev
Telerik team
 answered on 18 Nov 2016
6 answers
812 views
Because of different user groups, we need to give different user access, so for some of them, we only want them to view the values of RadTextBox and RadDatePicker. So we disabled them. But the problem is the grey font color is too light to read. How can we change the font color of disabled RadTextBox and RadDatePicker?
Rumen
Telerik team
 answered on 18 Nov 2016
0 answers
149 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
136 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
91 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?