Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
69 views
Hello, I have come across an issue with wiring up a RadGrid to an OpenAccessDataSource in the 2012 Q1 release.

Basically, when I add an OpenAccessDataSource to a RadGrid, the grid will display all the columns returned by the data source (AutoGenerate Columns is on by default) but when I open the Editor, there are a number of problems.

- Initially, with the grid selected in the left hand pane, the right hand pane displays all the properties for the General tab, but if I select Paging, Style, Grouping or Client Settings, no properties at all are display in the right hand pane.
- If I select Master TableView from the left hand pane, all the info displays for the General tab but not for Paging, Styles, Grouping or Columns.
- Any changes i make to the properties displayed in either of the General tabs are NOT saved
- If I switch to Source View in VS 2010 and manually add properties to the code (eg add a DataKeyName), these properties are not displayed in the grid editor

I have tried connecting the same grid to an ObjectDataSource and the grid editor performs normally.

I use OpenAccessDataSources a lot for quickly creating admin pages to administer lookup tables in the database, so this is a real problem for me.

Everything was working fine in the previous release.

Please help!

Jegards,
Jonathan

Marin
Telerik team
 answered on 02 Apr 2012
1 answer
112 views
I have a radeditior on my page with a custom list of characters. I am having problems adding the & symbol to the symbols list. The space in the list where the & should show up appears blank. Please see the attached screenshot. The blank space (which appears gray because it is selected) after the percent sign should be where the & symbol appears. I have tried adding it by
editor.Symbols.Add("&")
 And by
editor.Symbols.Add("\u0026")

And receive the same results. Does anyone have any idea why this would happen?

Thanks!
Dobromir
Telerik team
 answered on 02 Apr 2012
6 answers
266 views
Hi - I'm struggling with something that I can't seem to figure out.  I want to be able to display a RadComboBox that can be used on each row.  I need this because setting up the data I'm using requires a selection be made for each row.  My grid markup is as follows:

 

<telerik:RadGrid ID="grdRules" runat="server" GridLines="None" AutoGenerateColumns="False" OnItemCreated="grdRules_ItemCreated"
HorizontalAlign="NotSet" OnNeedDataSource="grdRules_NeedDataSource" Width="99%" OnPreRender="grdRules_PreRender" PageSize="100">
    <MasterTableView DataKeyNames="ID" GridLines="None" Width="100%" EditMode="InPlace">
        <Columns>
            <telerik:GridCheckBoxColumn UniqueName="IncludeRuleColumn"/>
            <telerik:GridTemplateColumn UniqueName="RuleName" HeaderText="Name" DataField="Name" SortExpression="Name">
                <ItemTemplate>
                    <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Message" UniqueName="ValidationMessage" DataField="MessageText" SortExpression="Message.MessageText">
                <ItemTemplate>
                    <telerik:RadComboBox runat="server" ID="cbMessage" OnDataBinding="cbMessages_DataBinding" DataTextField="MessageText" DataValueField="ID"></telerik:RadComboBox>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Outcome" UniqueName="OutcomeType" SortExpression="OutcomeType">
                <ItemTemplate>
                    <telerik:RadComboBox runat="server" ID="cbOutcomeTypes" OnDataBinding="cbOutcomeTypes_DataBinding"></telerik:RadComboBox>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

When the grid displays, they all look like the RadComboBox, but they're all disabled and cannot be 'dropped down' to select an item.  I've tried forcing all of the rows into edit mode with EditItemTemplate entries as well, and that doesn't work either.  Here is the server side code I've tried that with:

protected void grdRules_PreRender(object sender, EventArgs e)
{
    foreach (GridItem item in grdRules.MasterTableView.Items)
    {
        if (item is GridEditableItem)
        {
            GridEditableItem editableItem = item as GridDataItem;
            editableItem.Edit = true;
        }
    }
    for (int i = 0; i < grdRules.PageSize; i++)
    {
        grdRules.EditIndexes.Add(i);
    }
    grdRules.Rebind();
}
protected void grdRules_ItemCreated(object sender, GridItemEventArgs e)
{
    if(!Page.IsPostBack && e.Item is GridEditableItem)
    {
        e.Item.Edit = true;
    }
}

Is what I'm explaining possible with the RadGrid?  What am I missing here?  I feel like I've tried everything today to get this to work, and to no avail.  Ideas please?  Thanks!

Pavlina
Telerik team
 answered on 02 Apr 2012
6 answers
214 views
Hallo,

I have a RadComboBox with set "CheckBoxes = true". The header displayes always "X items checked". I want to display an other text. How can I affect the header text?

Thanks
Kalina
Telerik team
 answered on 02 Apr 2012
1 answer
127 views
I'm having trouble initializing the spell check on mulitiple mvc editor controls.
I was able to init the speller check on 1 editor control by following the example on
http://www.telerik.com/community/forums/aspnet-mvc/editor/mvc-editor-with-spellcheck.aspx

However, I would like to check all editors.
I'm following the example on:
http://www.telerik.com/help/aspnet-ajax/spell-how-to-mutliple-textareas.html

but I'm not sure how to set the source list with the mvc controls.
i tried:

 

 

var sources =

 

[

new Telerik.Web.UI.Spell.HtmlElementTextSource('PurposeIframe'),

new Telerik.Web.UI.Spell.HtmlElementTextSource('ActivitiesIframe'),

new Telerik.Web.UI.Spell.HtmlElementTextSource('ScopeIframe')

 

];


and also

new Telerik.Web.UI.Spell.HtmlElementTextSource($('#PurposeIframe')),

 

 

 When i call

var

 

 

spell = GetRadSpell('ctl00_ctl00_MainContent_spell1');

 

spell.set_textSource(

 

new MultipleTextSource(sources));

 

spell.startSpellCheck();

 

 

 


i keep getting : No value or innerHTML attribute. Cannot access text.

Thanks in advance,
Michael

Rumen
Telerik team
 answered on 02 Apr 2012
3 answers
91 views
Hello telerik,

I use his code on IIS 7

<telerik:RadEditor ToolsFile="~/Admin/FEHTools.xml" Height="355px" Width="433px"
                                                                                                                            ContentFilters="RemoveScripts" CssClass="EditorCss" EnableResize="false" ID="radEditorWpContent"
                                                                                                                            runat="server">
                                                                                                                            <imagemanager viewpaths="~/editor/Images/" uploadpaths="~/editor/Images/"
                                                                                                                                deletepaths="~/editor/Images/" maxuploadfilesize="100000000" searchpatterns="*.*"
                                                                                                                                enableimageeditor="true" />
                                                                                                                            <flashmanager viewpaths="~/editor/flash/" uploadpaths="~/editor/flash/"
                                                                                                                                deletepaths="~/editor/flash/" maxuploadfilesize="100000000" />
                                                                                                                            <mediamanager viewpaths="~/editor/media/" uploadpaths="~/editor/media/"
                                                                                                                                deletepaths="~/editor/media/" maxuploadfilesize="100000000" searchpatterns="*.*" />
                                                                                                                            <documentmanager viewpaths="~/editor/documents/" uploadpaths="~/editor/documents/"
                                                                                                                                deletepaths="~/editor/documents/" maxuploadfilesize="100000000" searchpatterns="*.*" />
                                                                                                                            <cssfiles>
                                                                                                                                <telerik:EditorCssFile Value="~/CSS/RadEditor2.css" />
                                                                                                                            </cssfiles>
                                                                                                                        </telerik:RadEditor>

in a aspx file under a folder with this webconfig

<system.web>
  <authorization>
    <allow roles="admin"></allow>
    <deny users="?"/>
  </authorization>
</system.web>
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxUrl="8192" maxQueryString="4096" />
    </requestFiltering>
  </security>
</system.webServer>

Problem is: when i click on any of image/document/... manager to upload an image, then
it redirects the iframe containing the manager to the login page.
Before that it IIS complained that the request url is too big, which you can see i have increased.

WHY does it redirect?


Rumen
Telerik team
 answered on 02 Apr 2012
4 answers
199 views
I cannot reproduce this succesfully or consistently, but we are getting hundreds of reports that when users click on the radtextbox (which is in single line mode) field that they can't successfully put the cursor into the box. In some occasions, when this has happened to me, I've been able to succeed in putting the cursor into the box by clicking on the very top pixel or two of the box, but the rest of the box doesn't allow you to click into it.

Any ideas? I'm having to convert the entire site to asp:TextBox controls which suck.
Maria Ilieva
Telerik team
 answered on 02 Apr 2012
1 answer
114 views
Hi there.
i've a rad grid which has some columns.by clicking in each row I want to show a chart to user.
first of all i want to ask how I can put an image(chart image) and then how can I get selected value.
for instance
User_id       Name          LastName        Getchart
1                 aaa               aaaa               (chart.png)
2                 bbb               bbbb               (chart.png)
3                 ccc                ccc                  (chart.png)
4                 ddd               ddd                  (chart.png)
---------------------------------------
by clicking on chart.png I want get the value,for instance if user click on 1st row it should get User_id=1
and then I select my query:
select date ,price from customers where user_id=@user_id...
something like this.
any idea?
Princy
Top achievements
Rank 2
 answered on 02 Apr 2012
1 answer
46 views
So, I've worked around this, but I'm interested to know if there's any insight onto this issue I've run into.

It seems I cannot have a RadRibbonBar and an asp:requiredfieldValidator on the same page.  Doing so causes a new replica of the window to open when you use any buttons on the RadRibbonBar.  For example, using a button that simple closes the page does what it should (closes) but causes a new window to open with the page that was just closed.
Kate
Telerik team
 answered on 02 Apr 2012
1 answer
368 views
We are receiving the following error and am wondering if you have any ideas what might be happening. We have 100's of files being uploaded daily and this occurs pretty rarely.

I am thinking it might have to do with  temporaryfileexpiration but I couldn't find what the default value is

thanks

System.IO.FileNotFoundException: Could not find file 'C:\Applications\cmis.n3cn.org\Production\CaseManagement\App_Data\RadUploadTemp\dvjlo2lm.n2y'.

File name: 'C:\Applications\cmis.n3cn.org\Production\CaseManagement\App_Data\RadUploadTemp\dvjlo2lm.n2y'

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.File.Move(String sourceFileName, String destFileName)

   at Telerik.Web.UI.AsyncUploadedFile.SaveAs(String fileName, Boolean overwrite)

   at Telerik.Web.UI.UploadedFile.SaveAs(String fileName)

   at NCCCN.CMIS._dialog.UploadPatientAttachment.UploadPatientAttachment.buttonSubmit_Click(Object sender, EventArgs e) in D:\Websites\CMIS\QA\CMISWeb\_dialog\UploadPatientAttachment\UploadPatientAttachment.aspx.cs:line 73

   at Telerik.Web.UI.RadButton.OnClick(ButtonClickEventArgs e)

   at Telerik.Web.UI.RadButton.RaisePostBackEvent(String eventArgument)

   at Telerik.Web.UI.RadButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Plamen
Telerik team
 answered on 02 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?