Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
151 views

hi

I use last telerik version .

in radGrid with batch mode I use OnBatchEditOpened client side. OnBatchEditOpened is fired for all column but when I update my telerik dll it isn't fired for the column they I set display false.

why ?

Pavlina
Telerik team
 answered on 13 Apr 2015
1 answer
265 views

Hello,

I've used the resizeToFit() function to re-size my columns in the following function:

function pageLoad() {
                var grid = $find('<%= RadGrid2.ClientID %>');
                var master = grid.get_masterTableView();
                var columns = master.get_columns();
                for (var i = 0; i < columns.length; i++) {
                    columns[i].resizeToFit();
                }
            }

Which works very well - however after the re-size I'm left with a ton of white space to the right of my newly sized columns. I know this is cause in part by having static headers however I need to keep the static headers.

So is there a work around to keep the static headers and still re-size the RadGrid to fit the new column size?

Pavlina
Telerik team
 answered on 13 Apr 2015
1 answer
127 views

hello

is there a way to localize the button "Apply" and "Cancel" and the checkbox "Check All" in a grid with CheckList Filtering enabled?

 

thank you

Eyup
Telerik team
 answered on 13 Apr 2015
1 answer
358 views

I need to add a custom radio button control that I created based on an if condition to my GridView. My radiobutton will be enabled or disabled based on this condition and will have the text changed as well.I'm trying to figure out how to add a radiobutton object into my data row instead of a stringdt.Columns.Add("FirstName").

 

<telerik:RadGrid runat="server" ID="grd1" OnNeedDataSource="grd1_NeedDataSource">
<MasterTableView AutoGenerateColumns="False">
<Columns>
<telerik:GridTemplateColumn HeaderText="Radiobutton header" UniqueName="col1">
<ItemTemplate>
<asp:RadioButton ID="rbType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "rbEnableorDisable")%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
 
<telerik:GridTemplateColumn HeaderText="FirstName header" UniqueName="col2">
<ItemTemplate>
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>' runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

 Codebehind


dt= New DataTable
dt.Columns.Add("rbEnableorDisable")
dt.Columns.Add("FirstName")
 
Dim rb As RadioButton
rb = New RadioButton
 
For each item in itemlist //some data iteration declared elsewhere
dr = dt.NewRow()
If (Condition)
rb.Text = "Should be Disabled"
rb.Enabled = False
Else
rb.Text = "Should be Enabled"
rb.Enabled = True
End if
 
dr.Item("FirstName") = item.FirstName
dr.Item("rbEnableOrDisable") = rb//?Code for inserting a radio button object
dt.Rows.Add(dr)
Next
 
With grd1
.DataSource = dt
.DataBind()
End With

 So far with this code I am only able to display the radiobutton text if i havedr.Item("rbEnableOrDisable") = rb.Text.I need to display the whole radiobutton object(show the text and if it's enabled or disabled among others)I triedLocationData.Columns.Add(New DataColumn("rbType", GetType(RadioButton)))but it seems I need to append to the ItemTemplateAlso tried adding the whole column dynamic with:grd1.Controls.Add(rb)

 

Eyup
Telerik team
 answered on 13 Apr 2015
3 answers
450 views
Hi dear

How we can find controls(Radcombobox) in insert item of radgrid on client side.

Thanks
Eyup
Telerik team
 answered on 13 Apr 2015
4 answers
372 views
Dear Telerik Champs
is scheduler support Hijri calendar like this culture  (ar-SA)

I set the culture info as  (ar-SA) to the scheduler and every thing was ok
but When I begin to save a new appointment the date comming wrong like this one (12/10/2571)
so I try to search in the samples and  the thread but I found this demo link

I found that in the demo u r using only the Gregorian culture that means no supporting for Hijri or what?

I appreciate ur help
Plamen
Telerik team
 answered on 13 Apr 2015
17 answers
598 views
After adding the new EnableCheckAllItemsCheckBox, when checking the box the OnItemChecked is not fired. For all othe check boxes in the list it is.
Marcos
Top achievements
Rank 2
 answered on 13 Apr 2015
2 answers
214 views

I have an application page with 2 RadEditors on it. 

People enter content in one of the two and by clicking a button they submit the content to a Note field in SharePoint 2010( which is rich text, not enhanced rich text). Submission is done via C# custom code. 

My issue is that when I try to set the value of the field font name, font size, underline, font color and back color are stripped down in the field. My guess is that the field does not accept XHtml (correct my if I am wrong) so when I try to set the field value with the content :

 <span style="font-family: Arial; font-size: 48px;"><strong><em><span style="background-color: #ffff00; color: #ff0000; text-decoration: underline;">test</span></em></strong></span> which comes from RadEditor, some of these value do not get converted to something like:

<font style="background-color:#ffff00" color="#ff0000" size="7" face="Arial"><strong><em><u>Anisia 567</u></em></strong></font> that the field is expecting.

 This behavior is occuring with both of my RadEditors.

The configuration of editor is as follows:

<telerik:RadEditor runat="server" ID="TextBoxRich" EmptyMessage="msg1" Height="67px" Width="100%" BackColor="#dae4f1" CssClass="noteTextBox" BorderColor="Black" ToolTip="msg2">
                                                    <Tools>
                                                        <telerik:EditorToolGroup>
                                                            <telerik:EditorTool Name="FontName"/>
                                                            <telerik:EditorTool Name="FontSize"/>
                                                            <telerik:EditorTool Name="Bold"/>
                                                            <telerik:EditorTool Name="Italic"/>
                                                            <telerik:EditorTool Name="Underline"/>
                                                            <telerik:EditorTool Name="JustifyLeft"/>
                                                            <telerik:EditorTool Name="JustifyCenter"/>
                                                            <telerik:EditorTool Name="JustifyRight"/>
                                                            <telerik:EditorTool Name="InsertOrderedList"/>
                                                            <telerik:EditorTool Name="InsertUnorderedList"/>
                                                            <telerik:EditorTool Name="Outdent"/>
                                                            <telerik:EditorTool Name="Indent"/>
                                                            <telerik:EditorTool Name="ForeColor"/>
                                                            <telerik:EditorTool Name="BackColor"/>
                                                        </telerik:EditorToolGroup>
                                                    </Tools>
                                                </telerik:RadEditor>  

and in ShaPoint I set the value as follows:

SPFieldMultiLineText field = (SPFieldMultiLineText)Item.Fields["Note"];
 field.ParseAndSetValue(newItem, TextBoxRich.Content);

Any suggestion is greatly appreciated.

 Thank you.

Best regards,

Anisia Pop

Anisia Alexandra
Top achievements
Rank 1
 answered on 13 Apr 2015
1 answer
396 views

Just looking for some clarification here. Would it be true to say that the main difference between RadMenu and RadNavigation is the Responsive behavior of the RadNavigation control? 

 I am trying to figure out which control to use, and am just in the beginning of my research into the new PageLayour and related parts of the Responsive infrastructure that Telerik offers. Is it possible to use the RadNavigation with images or templates? Furthermore, can those templates be turned on or off depending on the browser type it is being viewed with?

I would like to have a rich template based menu when viewed on a desktop client and the simple text-based menu on tablet or smartphone browsers.

 Any feedback would be greatly appreciated as I try to wrap my brain around all this!

Plamen
Telerik team
 answered on 13 Apr 2015
4 answers
312 views
I get below form RadGrid.MasterVradGrid.MasterTableView.FilterExpression
filterExpression="(RequiredDate = DateTime.Parse("1/27/2015 12:00:00 AM"))"
if (!string.IsNullOrWhiteSpace(filterExpression))
{
      query = query.Where(filterExpression);
}

Happen Exception.
======================================================================================================
An exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll but was not handled in user code

Additional information: LINQ to Entities does not recognize the method 'System.DateTime Parse(System.String)' method, and this method cannot be translated into a store expression.
======================================================================================================

Because I use EF6 it no support 'System.DateTime.Parse' method

I want change filter expression ,I hope result below example.
query = query.Where("(RequiredDate >= DateTime(2015,1,29))");

How Override Filter Pattern from RadGrid?
小章
Top achievements
Rank 1
 answered on 13 Apr 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?