Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views
Hi,
I've created new copy of RadEditor.Dialogs.resx and renamed it as RadEditor.Dialogs.pl-PL.resx. This file is placed in "App_GlobalResources" folder of my WebApplication. Then I've replaced all texts connected with RadFileExplorer (I don't use RadEditor yet) with their Polish equivalences. The result of my work is:
- I had to explicitly set LocalizationPath of my file explorer ("~/App_GlobalResources"; while the documentation says that is it not neccessary in this case)
- I cannot find (in resx) some texts:
  • Copy (popup menu)
  • Close (closing X in dialogs)
  • Delete (the title of the deletion confirmation dialog)
  • No records to display (the grid with no files)

In the last case I've solved the problem by explicitly setting the localized text to: <fileExplorer>.Grid.MasterTableView.NoMasterRecordsText).

Is there any way to localize these texts?

Regards
Tomasz

 

Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
179 views
Hello, me again
I have one RadMultiPage and i have 7 tabs
in each tab i have some controls, radtextbox, asptextobos, radgrids, etc
i need access the control of any tab, from any tab

thanks for your time

Yana
Telerik team
 answered on 02 Feb 2010
11 answers
494 views
Hi

We are using the 2008 Q3 controls (2008.3.1314.35). We are having some problems with our application as it has become clear that the radgrid is leaking memory.

not sure how important this is but I will write a bit about how we are using the controls. The application we have has a default page with a master page around it. It is a very ajaxy app with doing everything on one page. The main page has a RadTabStrip with three tabs and ofcourse uses RadMultiPage. We use the RadGrid inside the modal popup, in some instances this modal popup has a RadTabStrip inside it with the multipage and RadGrids on each page.

The problems we are getting is whenever a user opens one of the modal popups with a grid in it, adds a new record to the grid (or updates one) and closes the window there is a memory leak left behind for the grids TBody (used sIEve to find leaks. There is either the data in the Grid as the innerHtml or the empty cell if no data in the grid if you check it beofre the memory leak afterwards theres not much to go on). After much experimenting we have managed to find the source of the problem is the AllowRowSelect client settings thats causing it, if we change this to false there are no more memory leaks. Can you suggest how we can stop this from happening or provide any information that may help us clean this up?

Thanks
Robert
ROBERT HUNTER
Top achievements
Rank 1
 answered on 02 Feb 2010
7 answers
197 views
When adding a Reusable Content to Rad Editor control, the Rad Editor control doesn't update with the new content  when the Reusable Content was changed. Is it a known issue?
Stanimir
Telerik team
 answered on 02 Feb 2010
4 answers
719 views
hi all,

i'm using GridDateTimeColumn in a grid, the DataFormatString is set to "{0:d/M/yyyy}", the problem is that the filter don't apply that DataFormatString. For example; i have a date in the grid displayed like this 10/1/2009, but if i type 10/1/2009 in the filter box i get "No records to display", because it's not taking the d/M/yyyy format.

how can i modify the DataFormatString for the filter??

thnx in advance

            <telerik:GridDateTimeColumn HeaderText="Start Date" SortExpression="startDate" UniqueName="startDate" AutoPostBackOnFilter="true" DataField="startDate" 
                FilterControlWidth="110px" PickerType="DatePicker" DataFormatString="{0:d/M/yyyy}">  
            </telerik:GridDateTimeColumn>  
FreshOne
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
117 views
Hi,
I've radgrid of fixed size. The problem is when my grid comes up filled with 10 items ,I get a scroll bar(which is obvious b'coz I've a small size grid. Now the probem i s when grid gets populated with 10 items, the first 3 gets hideen  and all 4- 10 gets viewed in the grid(the grid can display only 7 items. How do I make the first 7 items to be always visible and remaining 8 , 9 and 10th item to be hidden(ihidden means I can use scrollbar to view them)
Princy
Top achievements
Rank 2
 answered on 02 Feb 2010
3 answers
139 views
Hi,

I am using RadEditor for ASP.Net AJAX.  i have created custom EditorSplitButton with dropdownitems.

if i click one dropdownitem, it will fire the event correctly. after that the selected item wont be reset.how can i do that in javascript.

// Design
 <telerik:RadEditor runat="server" ID="RadEditor1" Skin="Sunset" EditModes="Design" OnClientCommandExecuting="OnClientCommandExecuting">
 <Tools>
 <telerik:EditorToolGroup>
<telerik:EditorSplitButton Name="FontSize" Text="Size" ItemsPerRow="1" ShowText="true"  Width="200px">
<telerik:EditorDropDownItem Name="Smallest"   Value="1"/>
<telerik:EditorDropDownItem Name="Smaller"   Value="2"/>
</telerik:EditorSplitButton>
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>

//Javascript

function OnClientCommandExecuting(editor, args)
            {
              if (name == "FontSize")
                {
                    var tool = args.get_tool();
                    var span = tool.get_element().getElementsByTagName("SPAN")[0];
                    span.style.backgroundImage = "url(" + val + ")";
                     editor.pasteHtml('[SIZE="' + val + '"]' + editor.getSelectionHtml() + '[/SIZE]');
                    args.set_cancel(true);
                    editor.getSelectedElement() = val;
                }

My question is initially the tool looks like , FontSize- within the dropdown Smallest,Smaller will come.
if i select Smaller, it fires the event and selected item is on the top.

but i want to reset the tool, so that Font Size will come on the top.

How to do that?

Please reply me early,

Thanks,
Mano.
Rumen
Telerik team
 answered on 02 Feb 2010
1 answer
86 views
Im a little confused as to what approach to take here.  I have a grid whos MastTableView uses bound columns and allowing auto edit/insert.  The datasource is an entity datasource (which uses a SQL Server View).  However, my edit/insert form obviously comes from a different datasource, and, multiple datasources at that.

Grid
   details > datasource1
   edit/insert form> datasource2
       listbox > datasource3
 
Should I connect the OnEditCommand for the grid and change its datasource accordingly?  I'm fine with doing this programmaticly, but not sure what approach to take.  Any good demos on this would be great or support articles.
Yavor
Telerik team
 answered on 02 Feb 2010
3 answers
126 views
Hi, 

 I am trying to use the gridbinary image in radgridview using linq. But its not displaying.
It works fine with the sql datasource but when i use linq no image is displayed.

Can any one suggest me how to write the code using linq for displaying the  image in radgridview

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="conditionalPostback">

 

 

 

<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />

 

 

 

<telerik:RadProgressArea ID="RadProgressArea1" runat="server" />

 

 

 

<telerik:RadGrid runat="server" ID="RadGrid1" onneeddatasource="RadGrid1_NeedDataSource" AllowPaging="True" AllowSorting="True"

 

 

 

AutoGenerateColumns="False" Width="97%" AllowAutomaticInserts="true"

 

 

 

AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" ShowStatusBar="True"

 

 

 

GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated" PageSize="3">

 

 

 

<PagerStyle Mode="NumericPages" AlwaysVisible="true" />

 

 

 

<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ImageID" >

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton">

 

 

 

<HeaderStyle Width="3%" />

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="ImageName" UniqueName="ImageName" SortExpression="ImageName">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblName" Text='<%# Eval("ImageTitle") %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox runat="server" Width="200px" ID="txbImageTitle" Text='<%# Bind("ImageTitle") %>' />

 

<

 

 

asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbImageTitle"

 

 

ErrorMessage

 

="Please, enter a ImageTitle!" Display="Dynamic" SetFocusOnError="true" />

 

 

 

</EditItemTemplate>

 

 

 

<HeaderStyle Width="30%" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="ImageDescription" UniqueName="ImageDescription" DataField="ImageDescription">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblDescription" runat="server" Text='<%# TrimDescription(Eval("ImageDescription") as string) %>' />

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox ID="txbDescription" Width="300px" runat="server" TextMode="MultiLine"

 

 

 

Text='<%# Bind("ImageDescription") %>' Height="150px" />

 

 

 

</EditItemTemplate>

 

 

 

<ItemStyle VerticalAlign="Top" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

 

 

 

<telerik:GridBinaryImageColumn DataField="ImageFile" HeaderText="Image" UniqueName="Upload" ImageAlign="NotSet"

 

 

 

ImageHeight="80px" ImageWidth="80px" ResizeMode="Fit" DataAlternateTextField="ImageDescription"

 

 

 

DataAlternateTextFormatString="Image of {0}" >

 

 

 

<HeaderStyle Width="10%" />

 

 

 

 

</telerik:GridBinaryImageColumn>

 

 

 

 

<telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton">

 

 

 

<HeaderStyle Width="2%" />

 

 

 

</telerik:GridButtonColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn ButtonType="ImageButton" />

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

 

</telerik:RadAjaxPanel>


.cs file

 

 

public void BindGrid()

 

{

 

 

 

// RadGrid1.DataSource = PR.ListAllImages();

 

 

 

 

 

 

 

int ImagTemp = Convert.ToInt32(Request.QueryString["TemplateID"]);

 

 

 

// RadGrid1.DataSource = PR.GetImageGalleryDetailByTemplateID(ImagTemp);

 

 

 

 

 

RadGrid1.MasterTableView.DataSource = PR.GetImageGalleryDetailByTemplateID(ImagTemp);

 

}

 

 

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

BindGrid();

 

}

 

 

 

//code added for edit update and delete data

 

 

 

 

 

 

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

 

 

GridBinaryImageColumnEditor editor = ((GridEditableItem)e.Item).EditManager.GetColumnEditor("Upload") as GridBinaryImageColumnEditor;

 

RadAjaxPanel1.ResponseScripts.Add(

 

string.Format("window['UploadId'] = '{0}';", editor.RadUploadControl.ClientID ));

 

}

}

 

 

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

 

 

GridBinaryImageColumnEditor editor = ((GridEditableItem)e.Item).EditManager.GetColumnEditor("Upload") as GridBinaryImageColumnEditor;

 

 

 

TableCell cell = (TableCell)editor.RadUploadControl.Parent;

 

 

 

CustomValidator validator = new CustomValidator();

 

validator.ErrorMessage =

 

"Please select file to be uploaded";

 

validator.ClientValidationFunction =

 

"validateRadUpload";

 

validator.Display =

 

ValidatorDisplay.Dynamic;

 

cell.Controls.Add(validator);

}

}

 

 

 

protected string TrimDescription(string description)

 

{

 

 

if (!string.IsNullOrEmpty(description) && description.Length > 200)

 

{

 

 

return string.Concat(description.Substring(0, 200), "...");

 

}

 

 

return description;

 

}

 

 

// end of code

 

 

 

Rosen
Telerik team
 answered on 02 Feb 2010
3 answers
118 views
hi,
i need help regarding the default focus in rad alert.

i am having the default focus for the page gets loaded.

when the page is firing the rad alert, after clicking "OK" button in rad alert the focus is lost.

i need solution fort he above problem


ThanQ,
Vara Prasad.M
prasad
Top achievements
Rank 2
 answered on 02 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?