Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hi,

I'm using the latest version of the controls (2010.2.826.35).

I know I can set the Appointment's onmouseover attribute in client-side code (by using app.get_element().onmouseover), but I really want to do it in server-side code.

In the server-side AppointmentCreated event I've tried the following, but it does nothing:

 

  Dim jscript As String = "javascript:alert('hello');"

 

  e.Appointment.Attributes.Add(

"OnMouseOver", jscript)

Also, when I view the page's source, there are no OnMouseOver attributes.

Can I set an Appointment's OnMouseOver attribute from server-side code?

Thanks,
Michael

 

Peter
Telerik team
 answered on 15 Sep 2010
1 answer
113 views
Are the attached chart types possible?

If they are could you please provide me with some sample code on how to create these types of charts.

Thanks in advance
Fernando
Vladimir Milev
Telerik team
 answered on 15 Sep 2010
3 answers
181 views
I'm upgrading my ASP grid to a RadGrid and I have an issue with one of the columns.

On my web page, the user inputs a field for the title of their link, "sTitle" and the link itself, "sLink". When they press add, it inputs it to the grid.

This is the was the way the field worked before in ASP:

<asp:TemplateField HeaderText="Link" SortExpression="sLink">
    <ItemTemplate>
        <asp:HyperLink ID="HyperLink1" runat="server" 
            NavigateUrl='<%# Eval("sLink") %>' Target="_blank" 
            Text='<%# Eval("sTitle") %>'></asp:HyperLink>
    </ItemTemplate>
</asp:TemplateField>

When you click the link of the title it will open a new page of whatever link the user put into the field for sLink.

I have tried to get this to work using Radgrid:

<telerik:GridTemplateColumn 
   DataField="sLink" 
   HeaderText="Link" 
   UniqueName="sLink">
<ItemTemplate>
<asp:LinkButton id="sLink" runat="server" text='<%# Eval("sTitle") %>' CssClass="NoUnderLine"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>


What do I need to do to get this working?
Princy
Top achievements
Rank 2
 answered on 15 Sep 2010
1 answer
87 views

Our users have a question:
Is there an option that makes combobox  compatible for mobile applications?
I really appreciate if someone can send me a link to resources or answer to that question.
Thanks

Simon
Telerik team
 answered on 15 Sep 2010
2 answers
168 views
I have set a asp:TextBox with unique ID and put the ID into the ValidatedTextBoxID field of the RadCaptcha.
Also, I set the TextBox's property "AutoPostBack" to "True, when Text changed, returning the IsValid result of the RadCaptcha.
My problem is, it will only show false...may you please give me some help? Thanks!
Pero
Telerik team
 answered on 15 Sep 2010
1 answer
180 views
Hello,

we're programming a functionality to our RadGrids to be able to save current Filter settings to database for each user and to load up those settings again on page re-visit.
We're accessing CurrentFilterFunction/Value of RadGrid.MasterTableView to get the function and value of the filter to save in the database.
And Page_Load we read those functions and values from the database, set the CurrentFilterFunction/Value and compile a FilterExpression. Which all works fine, but when a user changes a filter, let's say in ColumnA from EqualTo to Contains, the CurrentFilterFunction will still hold "EqualTo" when saving, so I'm guessing that those values aren't getting reset on FilterCommand. If I catch the FilterCommand in RadGrids ItemCommand and reset it manually to "" the filtering stops working overall.

Regards
Aleš
Top achievements
Rank 1
 answered on 15 Sep 2010
3 answers
302 views
I have a radgrid, bound to a datasource, and AllowAutomaticInserts=True

I have the following in the code behind:

Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand<br>
        If e.CommandName = RadGrid.InitInsertCommandName Then<br>
            e.Canceled = True<br>
        End If<br>
    End Sub


Here's the problem: I still get the edit form after hitting the InsertButton.

(NOTE: Of course this isn't what I want it to ultimately do...but I do need to supress the form for the time being, intending to call InsertItem() later...but I can't ever get to that point because the edit form can't be supressed!)

Thank you,

Steven
Steven
Top achievements
Rank 1
 answered on 15 Sep 2010
1 answer
138 views
Hi, I am using the Menu component, and trying to use individual 'sprites' for each menu item
The items are created dynamically from data from a database, and each is assigned an image file to its ImageUrl property.
The images consist of the image in 2 states, horizontally in the file - the normal image and a highlight image.

When the menu is displayed, it shrinks the entire image to fit the 24px size, rather than trimming it.
My CSS is shown below.

.RadMenu img.rmLeftImage
{
  width: 24px;
  height: 24px;
  margin: 1px 2px 0 -3px;
  padding-bottom: 3px;
  background-position: -2px 0;
  background-repeat: no-repeat;
}

Is there a way to:
1. Trim the image instead of resizing it.
2. Change the source position so that the highlight image is shown on rollover.

Thankyou.

Paul
Kamen Bundev
Telerik team
 answered on 15 Sep 2010
7 answers
661 views
Hello,

I want to popup confirmation dialog to the user to update the record in the telerik grid. I have the editform mode of editing the record.
How can I add javascript for it?

Can anyone help me out on this issue.

<MasterTableView CommandItemDisplay="Top" DataKeyNames="brandid"
    EditMode="EditForms" AutoGenerateColumns="False" Width="100%">
    <CommandItemTemplate>
    <div style="padding:10px 0px;">
       <asp:LinkButton ID="btnUpdateEdited" runat="server"                    
             CommandName="UpdateEdited"
              Visible='<%# gridBrands.EditIndexes.Count > 0 %>'>
          <img style="border:0px;vertical-align:middle;" alt=""
               src="../Images/Update.gif" /> Update Record
           </asp:LinkButton> 
    </div>
     </CommandItemTemplate>
     <Columns>
    <telerik:GridEditCommandColumn ButtonType="ImageButton"
           EditImageUrl="~/images/Edit.gif" UniqueName="EditCommandColumn">
        <ItemStyle CssClass="MyImageButton" />
    </telerik:GridEditCommandColumn>
     </Columns>
</MasterTableView>
Tsvetina
Telerik team
 answered on 15 Sep 2010
6 answers
214 views
Hi Telerik Team,

I have a custom class that inherits from GridBoundColumn

I have overridden SetupFilterControls  method and  I am able to have a dropdown and able to bind value to the dropdown.

The dropdown contains username as textfield and UserID as value field.

Also I am able to fire the SelectedIndexChanged event - The code on the selected Indexed event is as follows

 

GridFilteringItem filterItem = (sender as RadComboBox).NamingContainer as GridFilteringItem;

 

 

RadComboBox ddList = filterItem["ResourceNames"].Controls[0] as RadComboBox;

 

 

if (ddList.SelectedValue == "All")

 

filterItem.FireCommandEvent(

"Filter", new Pair(GridKnownFunction.NoFilter.ToString(), this.UniqueName));

 

 

else

 

filterItem.FireCommandEvent(

"Filter", new Pair(GridKnownFunction.EqualTo.ToString(), this.UniqueName));

 


The command on the else part of the above thing is fired when I select a user name from the dropdown.
then  the code where the grid set to the datasource is executed

MyGrid.DataSource = BusinessLayer.GetAllTasks(projID)

However no rows on the grid are returned. it returns 0 rows.

How to make this work?

I am planning to rebind the grid by ensuring the filtered value is passed. How can I ensure that the value I selected on the dropdown is passed to GetAllTasks(ProjID) method so that I can manually filter the result set.









Kalyan
Top achievements
Rank 1
 answered on 15 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?