Telerik Forums
UI for ASP.NET AJAX Forum
25 answers
778 views
I see your demo of the new AsyncUpload control claims:

RadAsyncUpload provides client-side event called OnClientValidationFailed. It is fired when the selected file has invalid extension or its size is higher than the MaxFileSize property.

The demo, however, is validating file size on the server. Is there still a problem with client-side filesize validation, or is the demo just not configured to use it?

Thanks,

Craig
Peter Filipov
Telerik team
 answered on 08 Apr 2011
1 answer
84 views
I am using a SharePoint 2007 PublishingPage to display a RadHtmlField as follows:

<

 

telerik:RadHtmlField ID="RadHtmlField1" FieldName="Content" runat="server" ToolsFile="/_wpresources/RadEditorSharePoint/5.8.6.0__1f131a624888eeed/Resources/QAAInternetToolsFile.xml" ConfigFile="/_wpresources/RadEditorSharePoint/5.8.6.0__1f131a624888eeed/Resources/QAAInternetConfigFile.xml"></telerik:RadHtmlField>

 

I wish to use Image Manager to insert images from both the SiteCollection and the current website. Looking at the documentation my ConfigFile.xml should look like this:

<configuration>
 <property name="ToolbarMode">Default</property>
 <property name="ToolsWidth">680px</property>
  <property name="ImagesPaths">
           <item>PublishingImages</item>
           <item>/SiteCollectionImages</item>
  </property>
</configuration>

When I click ImageManager it shows both folder locations defaulting to the current website image folder which is good. When I click on the second folder it displays the site collections images which is also fine. But, if I then click on the first folder again it will not change - it stays fixed on the site collection folder.

This looks like a bug. Is there a way around it?

Stanimir
Telerik team
 answered on 08 Apr 2011
4 answers
168 views

When there is a single column relating two tables defining GridRelationFields is straight forward:

GridRelationFields rf = new GridRelationFields();
rf.MasterKeyField = "col1";
rf.DetailKeyField = "col1";
tvProtocols.ParentTableRelation.Add(rf); 

However, how do you define a GridRelationFields when the keys are compound, such as:

GridRelationFields rf = new GridRelationFields();
rf.MasterKeyField = "col1,col2,col3";
rf.DetailKeyField = "col1,col2,col3";
tvProtocols.ParentTableRelation.Add(rf); 

This is not uncommon.

Must I create an autoincremented column in the parent table and then rely only upon that in the child table?

Mira
Telerik team
 answered on 08 Apr 2011
3 answers
79 views

I have asp.net web page that is using RadTabStrip & RadMultiPage. The multi page controls/tabs contain web parts.

When I use Ajax and click/switch to the Design Mode (WebPartManager.DesignDisplayMode) I don't have the web parts drag and drop feature, drop down verbs menu and other client functionality. What is the work arount to make it work with Telerik?

Tsvetoslav
Telerik team
 answered on 08 Apr 2011
1 answer
92 views
we written onNodeDragging event at client side, while draging the node it will fires automatically with out interruption.
here  we paste the code :
 function onNodeDragging(sender, args) {
            if (args._sourceNodes[0]._attributes._data.IsPrerequisiteQuestion == "True" || args._sourceNodes[0]._attributes._data.IsPrerequisiteAttribute == "True") {
                args.set_cancel(true);
                args.IsValid =false;
                return false;
            }
            else {
                args.set_cancel(false);
            }
        }
Shinu
Top achievements
Rank 2
 answered on 08 Apr 2011
2 answers
209 views
How can I bind the RadTimePicker to a SQL Server 2008 Time field? It would see the logical choice of control, but when I do, I get the error:-
Cannot convert value of parameter 'Time' from 'System.DateTime' to 'Nullable<System.TimeSpan>' 

Is there a work around,or plans to support this in the future? 
Vasil
Telerik team
 answered on 08 Apr 2011
1 answer
98 views
We have the following scenario: the grid's datasource comes from some business layer function, which filters the data based on the column filters. But some columns are too long, and we trim them. But if matched string is trimmed, than that row won't show up, because the grid does an internal filtering. Is there any way to turn off this internal filtering? I mean a property like "AllowCustomFiltering". I know that clearing the FilterExpression string does the trick, but in order to preserve the filtering on the UI, this string needs to be reassigned after DataBound. (There are many pages using RadGrid, and it would be a pain to hand-implement this save/load trick, and anyways, there is no reason that the grid should apply filtering as our business functions do it).


So, I'm looking for a built-in method to turn off the internal filtering of RadGrid, but still preserving the filter controls behavior on the UI.
Martin
Telerik team
 answered on 08 Apr 2011
1 answer
223 views
I was very pleased to see that stylesheet combining was added for Q1 2011!  I did something like this and it worked as expected. 

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/Styles/Common.css"  />
    </StyleSheets>
</telerik:RadStyleSheetManager>

My question is, can someone tell me how it works behind the scenes?  Specifically I'm wondering if the file combination is done at every page request, or is done once and then cached somewhere? 

Also, what is IsCommonCss for?
Simon
Telerik team
 answered on 08 Apr 2011
0 answers
67 views

Hello.
I have a radgrid with gridtemplate column in it. In gridtemplate column i have placed filtertemplate with radcombox. I'm populating the grid with OnNeedDataSource method. Te code sample looks like this

<telerik:GridTemplateColumn DataField="Obraz" Visible="false" Resizable="false" UniqueName="TemplateColumn"   AllowFiltering="true">
<FilterTemplate>
 <telerik:RadComboBox ID="ComboFilterBox" runat="server" AppendDataBoundItems="true" OnSelectedIndexChanged="FilterCombo_SelectedIndexChanged" DataTextField="Text" DataValueField="Obraz" AutoPostBack="true">
  <items>
  <telerik:RadComboBoxItem Text="Bez filtra" value="1"/>
  <telerik:RadComboBoxItem Text="value1" value="~Gif/pic1.png"/>
  <telerik:RadComboBoxItem Text="value2" value="~/Gif/pic2.png"/>
  <telerik:RadComboBoxItem Text="value3" value="~/Gif/pic3.png"/>
  <telerik:RadComboBoxItem Text="value4" value=""/>
   </items>
   </telerik:RadComboBox>
   </FilterTemplate>
  <ItemTemplate>
  <asp:Image ID="Image1" runat="server" ImageUrl="<%# bind('Obraz') %>" ForeColor="White" />
  </ItemTemplate>
  <HeaderStyle Width="199px" />
   <ItemStyle Width="199px" />
   </telerik:GridTemplateColumn>

and then in server code i have

protected void FilterCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
  
            Session["selectedComboitem"] = e.Text;
  
            string filterExpression;
            if (e.Value != "")
            {
                filterExpression = "([Obraz] = '" + e.Value + "')";
            }
            else
            {
                filterExpression = "";
            }
            RadGrid1.MasterTableView.FilterExpression = filterExpression;
            RadGrid1.MasterTableView.Rebind();
        }

and the filtering is ok, but every time i change the radcombox item after the grid is filtered the combox looks like it is rebinded and it allways show as the selected item is the first item of ComboBox, the filter results are ok, but I realy need to remember the selected item, i have readed many post's and try to filter with client-side (http://www.telerik.com/help/aspnet-ajax/grid-filtertemplate.html) but it does not work for me. Can any one help me please?  
Tomasz
Top achievements
Rank 1
 asked on 08 Apr 2011
1 answer
224 views
The lookup page contains a radgrid and a radiobutton to select the row on which i populate the textboxes on the parent page.
RadGrid Version :2009.2.826.20
Trying to pass an object from a showmodaldialog from the child to the parent .
I get an alert that says undefined:

var o = new Object();
o.FirstName =
document.getElementById("first_name").innerHTML;
window.returnValue = 
o.FirstName;
window.close();


on the parent:

retval=window.showModalDialog ('searchMNI.aspx?lastname=' + temp);
alert("it 
is: " + retval.FirstName);

These are from a slightly larger context, but hope you get the picture from
these snippets.

The Actual problem occurs in Chrome Browser . When i select a row and return the value it is able to send the values through the windows.returnValue of the lookup .  But when i filter the grid for a cloumn and select the radiobutton the value on the parent becomes undefined . Any idea about this .
Maria Ilieva
Telerik team
 answered on 08 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?