Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 views
Hello everybody !

I'm actually using Telerik Scheduler Q2 2009, and when I add some ressources allowing multiple values (AllowMultipleValues = "true"), I obtains the following error

[OleDbException (0x80040e21): Multiple-step OLE DB operation generated errors.Check each OLE DB status value, if available. No work was done.]
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +16
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +77
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Insert(RadScheduler owner, Appointment appointmentToInsert) +130
Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +31
Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +106
Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +326
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I'm using a Microsoft Access 2003 Database, is it due to Access ? or is it an error i've done ?

Thanks you very much for your help
Andrew
Peter
Telerik team
 answered on 16 Jul 2009
1 answer
111 views

Hi,

We are using Rad window popup. The problem is on opening the popup we get scrollbars. We want to avoid horizontal scrollbar.

We are using the following code.

 

function OpenLookUp(url,width,Height)

    {

   

      var oWindow = window.radopen(url,null);

      oWindow.SetSize (width, Height);

              

    }

And we are calling this method from a column in grid.

<rad:GridTemplateColumn>

                                <ItemTemplate>

                                    <a href="javascript:OpenLookUp('LogDetails.aspx?ProductId=<%#Eval("logId")%>','700','550');">Details</a>

                                </ItemTemplate>

                            </rad:GridTemplateColumn>

 

It happens in all the popups even if the content is very less the scrollbar appears.

Regards,
Bala

Fiko
Telerik team
 answered on 16 Jul 2009
1 answer
183 views

Hi,
I want to override default close in radwindow (at top-right icon).
I tried in js:

TelerikTelerik.Web.UI.RadWindow.prototype.oldClose = Telerik.Web.UI.RadWindow.prototype.close;  
Telerik.Web.UI.RadWindow.prototype.close = function(callBackFnArg) {  
    //your code goes here     
    alert("closing");  
    //call old close method     
    this.oldClose(callBackFnArg);  
}; 
but I get an error about: no definition of 'Telerik'.
So how can I write my own close function in js?
Fiko
Telerik team
 answered on 16 Jul 2009
2 answers
76 views
Is it possible filter only 1 item at a time in the grid? For instance...if a user clicks the filter button, the row expands to display my controls. Now if the user filters a different row, i would like it to close the previous filtered row, then display the currently selected row.
I used the following example...
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx


Ben
Top achievements
Rank 1
 answered on 16 Jul 2009
3 answers
551 views

I'm trying to emulate the "Client-side" data binding demo page, but when i try to get the mastertableview in javascript, i get an error about it being null.  After some searching here in the forums, i saw that i couldn't get the mastertableview until after the gridCreated client event had fired.  I tried moving my code here, but the function isn't being called.  The code for the grid is attached below.

Thanks,
Matt

                <tel:RadGrid ID="kgSearch" runat="server" Skin="Vista">  
                   <MasterTableView TableLayout="Fixed">  
                        <Columns> 
                            <tel:GridBoundColumn DataField="USER_ID" HeaderText="User ID"></tel:GridBoundColumn> 
                            <tel:GridBoundColumn DataField="LAST_NAME" HeaderText="Last Name"></tel:GridBoundColumn> 
                            <tel:GridBoundColumn DataField="FIRST_NAME" HeaderText="First Name"></tel:GridBoundColumn> 
                            <tel:GridBoundColumn DataField="USERNAME" HeaderText="Username"></tel:GridBoundColumn> 
                        </Columns>                          
                   </MasterTableView> 
                   <ClientSettings> 
                    <ClientEvents OnGridCreated="gridCreated" /> 
                   </ClientSettings> 
                </tel:RadGrid> 
Matt
Top achievements
Rank 1
 answered on 16 Jul 2009
1 answer
106 views
anyone any idea why the width i am setting to my RadCombo box just isnt working???  I am using a TreeView within the combobox but have a width set but it just doesnt change...have tried a new radcombo without a treeview too but still doesnt change..please can u help??  many thank

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="700"

 

 

 

 

 

 

ShowToggleImage="True" Style="vertical-align: middle;" OnClientDropDownOpened="OnClientDropDownOpenedHandler"

 

 

 

EmptyMessage="Choose a business">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<div id="div1" style="width: 100%;">

 

 

 

 

 

 

<telerik:RadTreeView runat="server" ID="RadTreeView1" OnClientNodeClicking="nodeClicking">

 

 

 

 

 

 

</telerik:RadTreeView>

 

 

 

 

 

 

</div>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<Items>

 

 

 

 

 

 

<telerik:RadComboBoxItem Text="" />

 

 

 

 

 

 

</Items>

 

 

 

 

 

 

</telerik:RadComboBox>

 

Caroline
Top achievements
Rank 1
 answered on 16 Jul 2009
0 answers
110 views
// I used a short string array for my ascx page names:  
    string[] userControlNames = { "0 Index", "FirstPage", "SecondPage", "ThirdPage" };  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!Page.IsPostBack)  
        {  
            AddTab("1st Tab", "1");  
            AddPageView(RadTabStrip1.FindTabByText("1st Tab"));  
            AddTab("2nd Tab", "2");  
            AddTab("3rd Tab", "3");  
        }  
    }  
 
    private void AddTab(string tabName, string tabID)  
    {  
        RadTab tab = new RadTab();  
        tab.Text = tabName;  
        tab.AccessKey = tabID;  
        RadTabStrip1.Tabs.Add(tab);  
    }  
 
    private void AddPageView(RadTab tab)  
    {  
        RadPageView pageView = new RadPageView();  
        pageView.ID = tab.AccessKey;  
        RadMultiPage1.PageViews.Add(pageView);  
        pageView.CssClass = "pageView";  
        tab.PageViewID = pageView.ID;  
    }  
 
    protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)  
    {  
        string userControlName = userControlNames[int.Parse(e.PageView.ID)].ToString() + "CS.ascx";  
 
        Control userControl = Page.LoadControl(userControlName);  
        userControl.ID = e.PageView.ID + "_userControl";  
 
        e.PageView.Controls.Add(userControl);  
    }  
 
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)  
    {  
        AddPageView(e.Tab);  
        e.Tab.PageView.Selected = true;  
    }

This is my codebehind file for my OnDemand loaded TabStrip. It's working fine.
Inside the first tabbed PageView I also have several RadComboBoxes wich also have an OnDemand loading feature 
(let's assume a Country--> City --> Region loader) like that one in your examples.

When I load the page the first tab is shown and inside it the ComboBox bind to country data waits for me to select a Country.
I select a country and the City Combobox is successfully ondemand bind to cities data and waits for me to select a city.
I select the city and now the last Combobox is ondemand bind to Region data wich I can select finally. No problems here.

Then, when I go to the second tab the loading panel is shown for a couple of seconds and the 2nd tab is shown. Still no problem.

But when I go back to the first tab all my selections inside the ComboBoxes disappear. Even the loaded items inside are lost except the Country combo which was filled on PageLoad. Also the country is still selected inside this ComboBox.

So I think when the RadMultiPage1_PageViewCreated event is fired the viewstate of my Comboboxes gets lost. You can see that my code is a little bit different than your example. The difference is that I set my ASCX page names from an array, but I keep in mind that giving unique ID's to PageView.Controls is important and I think my code does this exactly.

So why I am still losing the viewstate of my ondemand loaded ComboBoxes? Can anyone help me out of this please?

Many Thanks..
Ata Turkoglu
Top achievements
Rank 1
 asked on 16 Jul 2009
1 answer
206 views
Hi,

This is probably a stupid question and I am obviously missing something but I cannot seem to filter a grid from a panelbar. The panel bar is being populated by an sql datasource and this works fine, however getting the accompanying grid to list the appropriate item(s) from the database is causing me some confusion. I got this to work with a dropdownlist but the panelbar seems to be a different animal altogether. I have included the panelbar control and the grid control below. I have searched thoroughly through all forums and help documentation and can't find anything that offers some help here so any help with this would be much appreciated :)

The RadPanelBar:

<telerik:RadPanelBar runat="server" 
                                   id="LayoutPanelBar"
                                   Width="100%"
                                   Height="100%"
                                   ExpandMode="FullExpandedItem" 
                                   DataSourceID="LayoutPanelDataSource" 
                                   DataValueField="HashTableID" 
                                   Skin="Telerik" 
                                   DataFieldID="HashTableID" 
                                   DataTextField="hashText">
</telerik:RadPanelBar>
                                                
<asp:SqlDataSource ID="LayoutPanelDataSource" 
                                 runat="server" 
                                 ConnectionString="<%$ ConnectionStrings: [omitted] %>"
                                 SelectCommand="SELECT [HashTableID], [hashText], [sortOrder] FROM [tblHashTable] WHERE [Category] = 'Layouts' ORDER BY [sortOrder] ASC">
</asp:SqlDataSource>

The RadGrid:

<telerik:RadGrid ID="LayoutGridDetails" 
                          runat="server" 
                          DataSourceID="LayoutGridDataSource" 
                          GridLines="None" 
                          AllowPaging="true" 
                          PageSize="25">
    <PagerStyle Mode="NumericPages" />
    <MasterTableView TableLayout="Fixed">
        <ItemTemplate>
            <b>LayoutId:</b><%# Eval("LayoutId")%>
            <br />
            <b>LayoutName:</b><%# Eval("LayoutName")%>
            <br />
            <b>LayoutDescription:</b><%# Eval("LayoutDescription")%>
        </ItemTemplate>
    </MasterTableView>
</telerik:RadGrid>

<asp:SqlDataSource ID="LayoutGridDataSource" 
                                 runat="server" 
                                 ConnectionString="<%$ ConnectionStrings:[omitted] %>"
                                 SelectCommand="SELECT [LayoutId], [LayoutName], [LayoutDescription], [LayoutCategory] FROM [tblLayouts] WHERE [LayoutCategory] = @LayoutCategory">

    <SelectParameters>
        <asp:ControlParameter Name="LayoutCategory" PropertyName="DataTextField" ControlID="LayoutPanelBar" />
    </SelectParameters>
</asp:SqlDataSource>

I want to be able to filter the records in the tblLayouts.LayoutCategory based on the DataTextField="hashText" selected in the RadPanelBar. The hashText field from tblHashTable is nvarchar(50) and the LayoutCategory from tblLayouts is the same so there is no problem here. The DataField="HashTableID" is an Int32.

Any advice here would be appreciated, thank you.

Grant
Veselin Vasilev
Telerik team
 answered on 16 Jul 2009
1 answer
113 views
Hi all,
I am having trouble migrating my ASP.NET classic RadUpload custom skin to the new AJAX format. Please help.

Here is what it was:
/* r.a.d.upload default embedded skin skin */  
 
.RadUploadTable  
{  
    background: #f7f7f7;  
    border: solid 1px #e5e5e5;  
    border-collapse: collapse !important;  
    filter: progid:DXImageTransform.Microsoft.dropShadow(Color=e5e5e5,offX=2,offY=2,positive=true);  
    margin: 5px 0px;  
    width: 450px;  
    font: normal 8px Arial, Verdana, Sans-serif;  
    color: #333;  
}  
.RadUploadTable td  
{  
    padding: 4px;  
}  
.RadUploadButtonArea  
{  
    background: transparent;  
}  
 
.RadUploadButton,  
.radUploadButtonMedium  
{  
    background: white url('Img/radUploadBtnMedium.gif') no-repeat;  
    border: 0px;  
    height: 22px;  
    width: 115px;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
}  
 
.RadUploadButtonDisabled  
{  
    background: white url('Img/radUploadBtnMedium.gif') no-repeat;  
    border: 0px;  
    height: 22px;  
    width: 115px;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    filter:alpha(opacity=30);  
    -moz-opacity:0.5;  
    opacity: 0.5;  
}  
 
.RadUploadFileSelector  
{  
    /* checkbox */  
}  
 
.RadUploadInputField  
{  
    width: 300px;  
    border: solid 1px #cfcfcf;  
    background: white;  
    border-right: 0px;  
    vertical-align: top;  
    height: 17px;  
    _width: 300px;  
}  
 
input.RealFileInput  
{  
    position: relative;  
    -moz-opacity: 0;  
    filter: alpha(opacity: 0);  
    opacity: 0;  
    z-index: 2;  
    width: 400px;  
}  
 
.RadUploadSelectButton  
{  
    border: 0px;  
    background: transparent url('Img/select.gif') no-repeat;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 67px;  
}  
 
.RadUploadRemoveButton  
{  
    border: 0px;  
    background: transparent url(Img/radUploadBtnSmall.gif) no-repeat;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 68px;  
    float: right;  
}  
 
.RadUploadClearButton  
{  
    border: 0px;  
    background: transparent url('Img/radUploadBtnSmall.gif') no-repeat;  
    font: bold 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 68px;  
    float: right;  
}  
 
input.NoSkinnedFileUnput  
{  
    border: solid 1x #1f1f1f;  
} 

And here is what I have so far:
 
 
.RadUpload_MTCDefault   
{  
    background: #f7f7f7;  
    border: solid 1px #e5e5e5;  
    border-collapse: collapse !important;  
    filter: progid:DXImageTransform.Microsoft.dropShadow(Color=e5e5e5,offX=2,offY=2,positive=true);  
    margin: 5px 0px;  
    width: 450px;  
    font: normal 8px Arial, Verdana, Sans-serif;  
    color: #333;  
      
}  
.RadUpload_MTCDefault .RadUploadTable td  
{  
    padding: 4px;  
}  
.RadUpload_MTCDefault .ruButtonArea  
{  
    background: transparent;  
}  
 
.RadUpload_MTCDefault .ruButton,  
.RadUpload_MTCDefault .ruButtonMedium  
{  
    background: white url('Upload/radUploadBtnMedium.gif') no-repeat;  
    border: 0px;  
    height: 22px;  
    width: 115px;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
}  
 
.RadUpload_MTCDefault .ruDisabled  
{  
    background: white url('Upload/radUploadBtnMedium.gif') no-repeat;  
    border: 0px;  
    height: 22px;  
    width: 115px;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    filter:alpha(opacity=30);  
    -moz-opacity:0.5;  
    opacity: 0.5;  
}  
 
.RadUpload_MTCDefault .ruFileSelector  
{  
    /* checkbox */  
}  
 
.RadUpload_MTCDefault .ruInputField  
{  
    width: 300px;  
    border: solid 1px #cfcfcf;  
    background: white;  
    border-right: 0px;  
    vertical-align: top;  
    height: 17px;  
    _width: 300px;  
}  
 
.RadUpload_MTCDefault ruInput.RealFileInput  
{  
    position: relative;  
    -moz-opacity: 0;  
    filter: alpha(opacity: 0);  
    opacity: 0;  
    z-index: 2;  
    width: 400px;  
}  
 
.RadUpload_MTCDefault .ruBrowse  
{  
    border: 0px;  
    background: transparent url('Upload/select.gif') no-repeat;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 67px;  
}  
 
.RadUpload_MTCDefault .ruRemove  
{  
    border: 0px;  
    background: transparent url(Upload/radUploadBtnSmall.gif) no-repeat;  
    font: normal 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 68px;  
    float: right;  
}  
 
.RadUpload_MTCDefault .ruClear  
{  
    border: 0px;  
    background: transparent url('Upload/radUploadBtnSmall.gif') no-repeat;  
    font: bold 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 68px;  
    float: right;  
}  
 
.RadUpload_MTCDefault ruInput.NoSkinnedFileUnput  
{  
    border: solid 1x #1f1f1f;  
} 

The two items that are not working for me are:
.RadUpload_MTCDefault .RadUploadTable td  
{  
    padding: 4px;  
}  

and

.RadUpload_MTCDefault .ruClear  
{  
    border: 0px;  
    background: transparent url('Upload/radUploadBtnSmall.gif') no-repeat;  
    font: bold 11px Arial, Verdana, Sans-serif;  
    color: #666;  
    height: 22px;  
    width: 68px;  
    float: right;  
}  

How do you customize the look and feel of the Clear button in the new format? Can you specify padding between the cells of the table in a radupload?

Haven't had any luck with either issue. Any help would be appreciated.

Thanks,
Patrick
Kamen Bundev
Telerik team
 answered on 16 Jul 2009
1 answer
139 views
Grid filtering after button clicked
Hi,
1. I am using RadGrid, Bind data from database.
2. I want to filter my grid data, based on dates (from and to).
3. I have two text box From date, Todate field and one Go button
4. Select the dates  and hit the go button, I want the Grid to show the data between the selected two dates.
5. Any idea let me know.

Thanks
Sabarish
Princy
Top achievements
Rank 2
 answered on 16 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?