Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views
I have loading panel like this:

        <telerik:RadAjaxLoadingPanel ID="ralpLoadingImage"  Width="100%" Height="100%" BackImageUrl="images/i_blank.gif" runat="server" Transparency="25">
            <asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." ImageUrl="~/images/loading_blue.gif" style="margin-top:10px" />
        </telerik:RadAjaxLoadingPanel>

I want to set different message like "Loading for John..." instead of "Loading..." for everyone. So here John is a value I want to passed in.

Is it possible to do this?



Cindy Wang
Top achievements
Rank 1
 answered on 25 Jun 2010
5 answers
347 views
Hi,

I just wanted to find out if it's possible to disable image resizing in the Design mode of the RadEditor?

The reason for doing this is that we want images to be pasted into the editor "as is".  If we need
to resize them, we want to do it in Photoshop or Gimp.  We've had the situation where a user uploads a 4Mb
image, then resizes it down to thumbnail size.

Thanks for the help.


Bart.
Dobromir
Telerik team
 answered on 25 Jun 2010
2 answers
407 views

I have a simple RadComboBox with a few items in it.  I have AutoPostBack="true" and am implementing the OnSelectedIndexChanged event in the code behind.

What I want to do is:
    If the user selects a certain value in the dropdown, pop up a javascript warning message that allows the user to cancel the change. (like Confirm("Are you sure?");)

My problem is if I use OnClientSelectedIndexChanging, I don't have access to the NEW selected value.  And in OnClientSelectingIndexChanged, I don't have a way to cancel the change (if they choose Cancel in the popup)

Is there any way to accomplish this?

Thanks,
Justin
Justin Lee
Top achievements
Rank 1
 answered on 25 Jun 2010
4 answers
202 views

In your Automatic Load On Demand demo page when user type text into combobox, only matching elements are listed AND letters that user typed are bolded on items. Is it possible to achieve that effect when not using Automatic Load On Demand but WCF load on demand?

I have more complex scenario with related combobox: I use second combo OnClientItemsRequesting event to add first combo's value to context and then WCF returns elements filtered by first combo value and typed text. It works great but it would be even better if I could apply bolding effect.

tomekm
Top achievements
Rank 1
 answered on 25 Jun 2010
2 answers
128 views
Hi, I have a grid that sometimes has a null value in a field for a record.  For example we might have three fields: Name, Address, and Phone number....  Phone number doesn't always have a value.  ( I can't fix that as I am pulling from another database, and can't actually put in values.  Just have select access to the data.)

Anyway, the grid lines will not appear for fields that are "empty" or "null".  Is there a way to correct this?

Thanks,
GP
GP
Top achievements
Rank 1
 answered on 25 Jun 2010
3 answers
199 views
I cannot seem to be able to display a negative value in the grid.  Is there something simple I am missing?

The field type is a numeric field in Sql Server 2000.


What I currently have:
<telerik:GridBoundColumn HeaderText="Total Amount Due" DataField="TOTAL_AMOUNT_DUE" DataFormatString="{0:c}">
</telerik:GridBoundColumn>


Radoslav
Telerik team
 answered on 25 Jun 2010
1 answer
173 views
Good Day all

I have  a the Following query

Declare @NumberOfSessions INT
set @NumberOfSessions = (select [Sessions] from dbo.TBL_TTBL)

SELECT   ID, Dy,  Sess,[Code],[Description],Description + '  Venue:'+ CAST(Venue AS VARCHAR) +' Student:'+ CAST(Students AS VARCHAR) +' StaffTerm:'+CAST(StaffTerm AS VARCHAR) + ' Term:'+ CAST(Term AS VARCHAR)  AS [SUBJECTS],Abrev,[Type],Number,
GrpName,GrpNumber,Duration,[Students],
[Venue],Capacity,
[Staff],[ModlID],[Term]
,[StaffTerm]
,CAST(STARTDATE AS DATETIME) as [STARTDATE], CAST(ENDDATE AS DATETIME) AS [ENDDATE],[Length],CAST(@NumberOfSessions AS INT) as [Number_of_Sessions]
FROM
 final_Timetable
group by dy,ID,Sess,[Code],[Description],Description,Abrev,[Type],Number,
GrpName,GrpNumber,Duration,[Students],
[Venue],Capacity,
[Staff],[ModlID],[Term]
,[StaffTerm],[STARTDATE],[ENDDATE],[Length]
order by dy,sess


i am binding this Data to the RadSchedular and the definition of my markup looks like this

  <telerik:RadScheduler ID="RadScheduler1" ColumnWidth="200px" RowHeaderWidth="200px" DayView-GroupingDirection="Vertical" RowHeaderHeight="400px"  runat="server" DataSourceID="SqlDataSource2"
            DataEndField="ENDDATE" DataKeyField="ID"  Skin="Telerik" Height="300px" Width="1600px" DataSubjectField="SUBJECTS"  DataStartField="STARTDATE" AllowDelete="False" AllowEdit="False" AllowInsert="False"   DayEndTime="20:00:00" DisplayRecurrenceActionDialogOnMove="True" OverflowBehavior="Expand" SelectedView="MonthView"  OnDataBound="RadScheduler1_DataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated" CssClass="ConfigurationPanel1" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound">
            <MultiDayView UserSelectable="True"   ReadOnly="True" GroupBy="Venue" GroupingDirection="Vertical" />
            <DayView GroupingDirection="Vertical" />
            <Localization AdvancedDay="DY" />
           <ResourceTypes>
            <telerik:ResourceType KeyField="Venue" Name="Venue" TextField="Venue" ForeignKeyField="Venue"
            DataSourceID="SqlDataSource2" />
            </ResourceTypes>
        </telerik:RadScheduler>
       
and my Datasource Controls is using a Sp and its defined like this

        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=(local);Initial Catalog=oDirectv3;Persist Security Info=True;User ID=o;Password=abacus"
            SelectCommand="sp_Timetable_View" DeleteCommand="sp_Timetable_View" ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" OnSelecting="SqlDataSource2_Selecting">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="" Name="selectionType" SessionField="viewOptions"
                    Type="String" />
                <asp:SessionParameter DefaultValue="" Name="selectedItems" SessionField="selectedItems"
                    Type="String" />
                <asp:SessionParameter DefaultValue="" Name="selectedTerms" SessionField="selectedTerms"
                    Type="String" />
            </SelectParameters>
            <DeleteParameters>
                <asp:Parameter Name="selectionType" Type="String" />
                <asp:Parameter Name="selectedItems" Type="String" />
                <asp:Parameter Name="selectedTerms" Type="String" />
            </DeleteParameters>
        </asp:SqlDataSource>

The Results from this datasource has all the fields i need to bind the Schedular. i have looked at the example in telerik site http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx

and here they have a different Datasource Control for Groupby, i am not sure why, but as you can see i have used the same DatasourceControl to Bind the Group by.

Now my problem is that the Schedular does not show the Group by Resource as in the Example. I tried to use a second SQlDatasource for a group by sake, and i get an error that is not descriptive "Object not set for an instance of a Class"

What is it i should put in mind while Doing the Group by

Thanks
 
 
Veronica
Telerik team
 answered on 25 Jun 2010
2 answers
119 views
Hello!

I currently have a RadGrid bound to a List containing a custom class. This list gets populated when a user drags a node from a TreeView.

I'd like to let the user select a value from the dropdown and enter their own value inside the "Value" field and then save this to the List.
I've tried doing this using the automatic edit column but inside the "RadGrid_UpdateCommand" I can't seem to find the new data! I'm probably missing something pretty simple. :)

Here's the code:

<telerik:RadGrid ID="conditionsGrid" runat="server" Width="252px"  
                Height="116px" GridLines="None" AllowMultiRowSelection="True"  
                onneeddatasource="conditionsGrid_NeedDataSource" Skin="Sunset" CssClass="addedTablesGrid"  
                    AutoGenerateEditColumn="True" onitemupdated="conditionsGrid_ItemUpdated"  
                    onupdatecommand="conditionsGrid_UpdateCommand"  
                    AllowAutomaticUpdates="true" onitemcommand="conditionsGrid_ItemCommand"> 
                <MasterTableView Width="100%"> 
                    <NoRecordsTemplate> 
                        Drag columns here. 
                    </NoRecordsTemplate> 
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Column" UniqueName="columnColumn" DataField="columnName" DataType="System.String" EmptyDataText="Ooops" ReadOnly="true"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Value" UniqueName="type1"> 
                            <ItemTemplate> 
                                <asp:DropDownList runat="server"> 
                                    <asp:ListItem Text="Equals" Value="="></asp:ListItem> 
                                    <asp:ListItem Text="Greater than" Value=">"></asp:ListItem> 
                                    <asp:ListItem Text="Less than" Value="<"></asp:ListItem> 
                                    <asp:ListItem Text="Not equal to" Value="!="></asp:ListItem> 
                                </asp:DropDownList> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn HeaderText="Value" UniqueName="valueColumn" DataField="value" > 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings AllowRowsDragDrop="true"> 
                    <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
                </ClientSettings> 
            </telerik:RadGrid> 



        protected void ColumnTreeView_NodeDrop(object sender, RadTreeNodeDragDropEventArgs e) 
        { 
            if (string.IsNullOrEmpty(e.HtmlElementID)) 
                return; 
 
            if (e.HtmlElementID == "MainBodyPlaceHolder_conditionsGrid") 
            { 
                List<GridConditionRow> added = AddedTableConditions; 
 
                foreach (RadTreeNode node in e.DraggedNodes) 
                { 
                    GridConditionRow Row = new GridConditionRow(); 
                    Row.columnName = node.Value; 
                    Row.value = ""; 
                    added.Add(Row);                     
                } 
                 
                AddedTableConditions = added; 
 
                conditionsGrid.DataSource = AddedTableConditions; 
                conditionsGrid.DataBind(); 
            } 
        } 
 
        protected void conditionsGrid_UpdateCommand(object source, GridCommandEventArgs e) 
        { 
            //It's here that I can't seem to find the updated information to alter the List with. 
        } 


Thanks! 
Ben.
Ben
Top achievements
Rank 1
 answered on 25 Jun 2010
2 answers
265 views
Hello sir,
             I am using RadListBox with its ItemTemplate like shown below:

        <telerik:RadListBox runat="server" ID="RadListOrderColumns" AllowReorder="true"
                        Height="200px" Width="350px" TransferMode="Move"
                        SelectionMode="Multiple">
                    <ItemTemplate>                   
                    <table>
                    <tr>
                    <td>
                            <asp:Label runat="server" Width="70px" Text='<%# DataBinder.Eval(Container, "DataItem.Database_Name") %>' ></asp:Label>
                     </td>
                     <td>                                                                                       
                         <input id="Text1" type="text" value="" />
                     </td>
                    </tr>                 
                     </table>
                    </ItemTemplate>                  
                  </telerik:RadListBox>
*******************************************************************************************************
So, when i enter any thing in that input (text box) and when i try to use 'delete' key it does not work.
               i can not delete anything using 'delete' key whereas 'backspace' works fine.
This is a strange problem, i have tried to use 'RadTextBox' and 'asp:textbox' in place of 'input' still i am facing same problem.

Please help, i can't understand how delete key stops working in a textbox.

Genady Sergeev
Telerik team
 answered on 25 Jun 2010
2 answers
99 views
I am using the new Telerik Dll and in doing so the grid pager style gets messed up. please suggest a way to fix this. The dll i am using is of version 2010.1.519.35. This problem was not there before.

Debojyoti
Top achievements
Rank 1
 answered on 25 Jun 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?