Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
71 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
74 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
189 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
84 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
159 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
58 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
208 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
1 answer
92 views
Hi,
I am facing a problem which seems quite weird to me. I am using Rad controls(Grid) and my application is hosted on IIS 7. I am calling a wcf service hosted on different server on button click from my page .During the postback I am updating the rad grid in my page. In my rad grid I have column named as status and buyer. I also have two dropdown on top of the page for buyer name and status. If the buyer dropdown do  postback, staus drop down is updated for that buyer(It is only picking data not saving). This is the scenario of my application.

Now I am coming to my problem that I am finding in my dev server: If I select a buyer, then click on the button to call the wcf service from my pc and at the same time if my colleague change the buyer in dropdown from her pc, on my end after the postback radgrid is updated with the buyer name my colleague selected.

It seems the application domains are not created for each user separately. I would really appreciate if you can provide me any solution.

Thank you.

Regards
Sheikh omer
Junior Developer
E-Prospects
Iana Tsolova
Telerik team
 answered on 08 Apr 2011
3 answers
94 views
I need some help for the scenario below:

I have a telerik grid with GridTemplateColumn. This GridTemplateColumn contains telerik combox called "radTravelType" in the EditItemTemplate. This combobox has 3 RadComboBoxItem which are "Taxi", "Car" and "Public Transport". When I select "car" option, a field called "Vehicle No." should be validated(cannot be empty). however this vehicle no. field is not a field within the grid. How can I achieve this?
Tsvetina
Telerik team
 answered on 08 Apr 2011
16 answers
1.1K+ views
hi
good evening telrick team how are you

we are trying all of my web based app using your rad controls

it is working everything fine in local iis without any problems

but after uploading into my web server we got the following error
and especially while trying to display rad scheduler using iframe concept part of our arctecture

please provide solution for this problem asap
because our project deliverery very soon

thanks to your team once again

syna-g team







Server Error in '/' Application.

Not enough permissions.
Inherit your page class from RadAjaxPage if you are running under Medium trust level.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Not enough permissions.
Inherit your page class from RadAjaxPage if you are running under Medium trust level.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Not enough permissions.Inherit your page class from RadAjaxPage if you are running under Medium trust level.] Telerik.Web.UI.RadAjaxControl.AttachOnRender() +235 Telerik.Web.UI.RadAjaxControl.OnPagePreRenderComplete(Object sender, EventArgs e) +111 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
kalpesh
Top achievements
Rank 1
 answered on 08 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?